当前位置:网站首页>The solution to the problem that Oracle hugepages are not used, causing the server to be too laggy
The solution to the problem that Oracle hugepages are not used, causing the server to be too laggy
2022-07-05 21:42:00 【Ruthless white】
reason :
It's too laggy to use through user reaction , After receiving the fault report , Login to the server requires almost 1 Minutes to connect , Let's take a brief look at the performance of the server , Development IO Very low 、 There is still a lot of memory left , At least there is 1GB above , either page in / page out, And the most obvious phenomenon is CPU Utilization is quite high , Keep it all the time 100%, meanwhile CPU Utilization SYS part , Both in 95% above , Due to insufficient physical memory , Page exchange is ongoing , Use swap Space .
By looking at oracle alert The log found that the large page memory was not used
view alert.log
Starting ORACLE instance (normal)************************ Large Pages Information *******************
Per process system memlock (soft) limit = 64 KB
Total Shared Global Region in Large Pages = 0 KB (0%)
Large Pages used by this instance: 0 (0 KB)
Large Pages unused system wide = 15362 (30 GB)
Large Pages configured system wide = 15362 (30 GB)Large Page size = 2048 KB
RECOMMENDATION:
Total System Global Area size is 30 GB. For optimal performance,
prior to the next instance restart: 1. Large pages are automatically locked into physical memory.
Increase the per process memlock (soft) limit to at least 30 GB to lock 100% System Global Area's large pages into physical memory
********************************************************************
Solution steps :
1. Check if it is set HugePages
cat /etc/sysctl.conf
cat /etc/sysctl.conf
net.core.rmem_default = 262144
net.core.rmem_max = 4194304
net.core.wmem_default = 262144
net.core.wmem_max = 1048576
vm.nr_hugepages = 15362
result : Have configuration HugePages
2. See if you want to set memlock unlimited
#<domain> <type> <item> <value>
#
#* soft core 0
#* hard rss 10000
#@student hard nproc 20
#@faculty soft nproc 20
#@faculty hard nproc 50
#ftp hard nproc 0
#@student - maxlogins 4
* soft nofile 131072
* hard nofile 131072
* soft nproc 131072
* hard nproc 131072
result : Didn't add
processing method : Add at the end oracle soft memlock unlimited oracle hard memlock unlimited
3. Restart the database 、 Restart the machine .
View correspondence alert There will be... In the log “Large Pages Information” Content :
cat alert.log | grep -A 3 “Large Pages Information”
-- No settings unlimited Previous logs
oracle soft memlock unlimited
oracle hard memlock unlimited
************************ Large Pages Information *******************
Per process system memlock (soft) limit = 64 KB
-- Set up memlock unlimited After the log
Total Shared Global Region in Large Pages = 0 KB (0%)
--
************************ Large Pages Information *******************
Per process system memlock (soft) limit = UNLIMITED
Total Shared Global Region in Large Pages = 30 GB (100%)
4. confirm HugePages Set up the success
View about HugePages Information about :
[[email protected] ~]$ grep Huge /proc/meminfo
AnonHugePages: 6144 kB
HugePages_Total: 15362
HugePages_Free: 563
HugePages_Rsvd: 562
HugePages_Surp: 0
Hugepagesize: 2048 kB
** result :** From logs and grep Huge /proc/meminfo Look at HugePages Used normally , The server is also back to normal .
边栏推荐
- Cross end solution to improve development efficiency rapidly
- 2022-07-03-cka- latest feedback from fans
- matlab绘制hsv色轮图
- Interviewer: will concurrent programming practice meet? (detailed explanation of thread control operation)
- HDU 4391 Paint The Wall 段树(水
- Pointer parameter passing vs reference parameter passing vs value parameter passing
- Oracle检查点队列–实例崩溃恢复原理剖析
- kingbaseES V8R3数据安全案例之---审计记录清除案例
- Exercise 1 simple training of R language drawing
- Wood board ISO 5660-1 heat release rate mapping test
猜你喜欢

MATLAB | App Designer·我用MATLAB制作了一款LATEX公式实时编辑器

PVC plastic sheets BS 476-6 determination of flame propagation properties

Alibaba cloud award winning experience: build a highly available system with polardb-x

MQ----activeMq

华为联机对战如何提升玩家匹配成功几率

2.2.3 output of documents

Zhang Lijun: penetrating uncertainty depends on four "invariants"

DBeaver同时执行多条insert into报错处理

KingbaseES V8R3集群维护案例之---在线添加备库管理节点

Incentive mechanism of Ethereum eth
随机推荐
Huawei fast game failed to call the login interface, and returned error code -1
2022-07-03-CKA-粉丝反馈最新情况
Longest swing sequence [greedy practice]
HYSBZ 2243 染色 (树链拆分)
QML reported an error expected token ";", expected a qualified name ID
[daily training -- Tencent select 50] 89 Gray code (only after seeing the solution of the problem)
uni-app 蓝牙通信
2.2 basic grammar of R language
基于 Ingress Controller 在集群外访问 Zadig 自测环境(最佳实践)
PostGIS installation geographic information extension
Four components of logger
Incentive mechanism of Ethereum eth
Selenium gets the verification code image in DOM
[daily training] 729 My schedule I
Advantages of robot framework
深信服X计划-网络协议基础 DNS
SQL common syntax records
EasyExcel的讀寫操作
MQ----activeMq
Teach yourself to train pytorch model to Caffe (III)