当前位置:网站首页>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 .
边栏推荐
- PIP install beatifulsoup4 installation failed
- KingbaseES V8R3集群维护案例之---在线添加备库管理节点
- 123456
- Yolov5 training custom data set (pycharm ultra detailed version)
- leetcode:1139. The largest square bounded by 1
- Test of incombustibility of cement adhesives BS 476-4
- Postgres establish connection and delete records
- Why can't Chinese software companies produce products? Abandon the Internet after 00; Open source high-performance API gateway component of station B | weekly email exclusive to VIP members of Menon w
- 从零开始实现lmax-Disruptor队列(四)多线程生产者MultiProducerSequencer原理解析
- Aitm 2-0003 horizontal combustion test
猜你喜欢

EN 438-7 laminated sheet products for building covering decoration - CE certification

Opérations de lecture et d'écriture pour easyexcel

How to prepare for the algorithm interview and answer the algorithm interview questions

Realize the function of verifying whether the user has completed login when browsing the page

Why can't Chinese software companies produce products? Abandon the Internet after 00; Open source high-performance API gateway component of station B | weekly email exclusive to VIP members of Menon w

2.2.5 basic sentences of R language drawing

Kingbasees v8r3 cluster maintenance case -- online addition of standby database management node

Experienced inductance manufacturers tell you what makes the inductance noisy. Inductance noise is a common inductance fault. If the used inductance makes noise, you don't have to worry. You just need

资深电感厂家告诉你电感什么情况会有噪音电感噪音是比较常见的一种电感故障情况,如果使用的电感出现了噪音大家也不用着急,只需要准确查找分析出什么何原因,其实还是有具体的方法来解决的。作为一家拥有18年品牌

面试官:并发编程实战会吗?(线程控制操作详解)
随机推荐
Sitge joined the opengauss open source community to jointly promote the ecological development of the database industry
Four components of logger
Simple interest mode - evil Chinese style
How can Huawei online match improve the success rate of player matching
Poj3414广泛搜索
Incentive mechanism of Ethereum eth
selenium 获取dom内属性值的方法
PVC plastic sheets BS 476-6 determination of flame propagation properties
力扣------经营摩天轮的最大利润
Oracle HugePages没有被使用导致服务器很卡的解决方法
QML reported an error expected token ";", expected a qualified name ID
Introduction of ArcGIS grid resampling method
如何组织一场实战攻防演练
Access Zadig self-test environment outside the cluster based on ingress controller (best practice)
Parker driver maintenance COMPAX controller maintenance cpx0200h
Deployment of Jenkins under win7
HDU 4391 Paint The Wall 段树(水
HYSBZ 2243 染色 (树链拆分)
What are the requirements of UL 2043 test for drive housing in the United States?
Efficiency difference between row first and column first traversal of mat data types in opencv