当前位置:网站首页>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 .
边栏推荐
- 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
- kingbaseES V8R3数据安全案例之---审计记录清除案例
- crm创建基于fetch自己的自定义报告
- SQL knowledge leak detection
- SQL common syntax records
- Comprehensive optimization of event R & D workflow | Erda version 2.2 comes as "7"
- Deployment of Jenkins under win7
- What should I do to prepare for the interview algorithm position during school recruitment?
- KingbaseES V8R3集群维护案例之---在线添加备库管理节点
- EBS Oracle 11g 克隆步骤(单节点)
猜你喜欢
Analysis and test of ModbusRTU communication protocol
張麗俊:穿透不確定性要靠四個“不變”
Realize the function of verifying whether the user has completed login when browsing the page
华为联机对战如何提升玩家匹配成功几率
Efficiency difference between row first and column first traversal of mat data types in opencv
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
递归查询多级菜单数据
Longest swing sequence [greedy practice]
Defect detection - Halcon surface scratch detection
2.2 basic grammar of R language
随机推荐
Golang(1)|从环境准备到快速上手
xlrd常见操作
張麗俊:穿透不確定性要靠四個“不變”
Emotional analysis of wechat chat records on Valentine's day based on Text Mining
Gcc9.5 offline installation
854. 相似度为 K 的字符串 BFS
Golang (1) | from environmental preparation to quick start
Detailed explanation of memset() function usage
What should I do to prepare for the interview algorithm position during school recruitment?
Alibaba cloud award winning experience: build a highly available system with polardb-x
Objects in the list, sorted by a field
Sitge joined the opengauss open source community to jointly promote the ecological development of the database industry
Clickhouse copy paste multi line SQL statement error
The primary key is set after the table is created, but auto increment is not set
让开发效率飞速提升的跨端方案
股票开户选择哪家证券公司比较好哪家平台更安全
GCC9.5离线安装
Evolution of zhenai microservice underlying framework from open source component encapsulation to self-development
MQ----activeMq
"Grain mall" -- Summary and induction