当前位置:网站首页>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 .
边栏推荐
- An exception occurred in Huawei game multimedia calling the room switching method internal system error Reason:90000017
- int GetMonth( ) const throw( ); What does throw () mean?
- @Validated basic parameter verification, grouping parameter verification and nested parameter verification
- 事项研发工作流全面优化|Erda 2.2 版本如“七”而至
- SecureCRT使用提示
- 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
- Deeply convinced plan X - network protocol basic DNS
- Evolution of zhenai microservice underlying framework from open source component encapsulation to self-development
- Teach yourself to train pytorch model to Caffe (2)
- MMAP
猜你喜欢
Exercise 1 simple training of R language drawing
Implementing Lmax disruptor queue from scratch (IV) principle analysis of multithreaded producer multiproducersequencer
JMeter installation under win7
面试官:并发编程实战会吗?(线程控制操作详解)
Cross end solution to improve development efficiency rapidly
Display DIN 4102-1 Class B1 fire test requirements
Chapter 05_ Storage engine
资深电感厂家告诉你电感什么情况会有噪音电感噪音是比较常见的一种电感故障情况,如果使用的电感出现了噪音大家也不用着急,只需要准确查找分析出什么何原因,其实还是有具体的方法来解决的。作为一家拥有18年品牌
MySQL deep paging optimization with tens of millions of data, and online failure is rejected!
Simple interest mode - evil Chinese style
随机推荐
华为快游戏调用登录接口失败,返回错误码 -1
Establishment of terminal security capability verification environment and penetration test records
Four components of logger
张丽俊:穿透不确定性要靠四个“不变”
资深电感厂家告诉你电感什么情况会有噪音电感噪音是比较常见的一种电感故障情况,如果使用的电感出现了噪音大家也不用着急,只需要准确查找分析出什么何原因,其实还是有具体的方法来解决的。作为一家拥有18年品牌
Some common processing problems of structural equation model Amos software
Longest swing sequence [greedy practice]
有些事情让感情无处安放
Some things make feelings nowhere to put
Making global exception handling classes with aspect
Selenium's method of getting attribute values in DOM
MySQL deep paging optimization with tens of millions of data, and online failure is rejected!
Deeply convinced plan X - network protocol basic DNS
1.2 download and installation of the help software rstudio
【日常训练--腾讯精选50】89. 格雷编码(看题解才会的)
MMAP
The primary key is set after the table is created, but auto increment is not set
EasyExcel的讀寫操作
Cross end solution to improve development efficiency rapidly
Teach yourself to train pytorch model to Caffe (I)