当前位置:网站首页>Oracle HugePages没有被使用导致服务器很卡的解决方法
Oracle HugePages没有被使用导致服务器很卡的解决方法
2022-07-05 21:32:00 【无情白】
原因:
通过用户反应使用起来很卡,接到故障报告后,登录服务器需要差不多1分钟才能连接上去,先简单的看一下服务器的性能状况,发展IO极低、内存剩余还比较多,至少还有1GB以上,也没有page in / page out,而最显著的现象就是CPU利用率相当地高,一直保持在100%,同时CPU利用率的SYS部分,均在95%以上,因物理内存不足,正在不断的进行页面交换,使用swap空间。
通过查看oracle alert日志发现大页内存没有被使用
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
********************************************************************
解决步骤:
1.检查是否设置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
结果:有配置HugePages
2.查看是否设置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
结果: 没有加上
处理方法:在末尾加上oracle soft memlock unlimited oracle hard memlock unlimited
3.重启数据库、重启机器。
查看对应alert日志中会有“Large Pages Information”内容:
cat alert.log | grep -A 3 “Large Pages Information”
-- 没有设置unlimited之前日志
oracle soft memlock unlimited
oracle hard memlock unlimited
************************ Large Pages Information *******************
Per process system memlock (soft) limit = 64 KB
--设置memlock unlimited之后的日志
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.确认HugePages设置成功
查看关于HugePages的信息:
[[email protected] ~]$ grep Huge /proc/meminfo
AnonHugePages: 6144 kB
HugePages_Total: 15362
HugePages_Free: 563
HugePages_Rsvd: 562
HugePages_Surp: 0
Hugepagesize: 2048 kB
**结果:**从日志和grep Huge /proc/meminfo来看HugePages已正常使用,服务器也恢复正常。
边栏推荐
- 【日常训练】729. 我的日程安排表 I
- 2.2.3 output of documents
- 2022-07-03-CKA-粉丝反馈最新情况
- Xlrd common operations
- Pytoch practice -- MNIST dataset handwritten digit recognition
- LeetCode_ Hash table_ Difficulties_ 149. Maximum number of points on the line
- Teach yourself to train pytorch model to Caffe (I)
- 显示器要申请BS 476-7 怎么送样?跟显示屏一样吗??
- 冯唐“春风十里不如你”数字藏品,7月8日登录希壤!
- int GetMonth( ) const throw( ); What does throw () mean?
猜你喜欢
Pytoch practice -- MNIST dataset handwritten digit recognition
PVC 塑料片BS 476-6 火焰传播性能测定
Opérations de lecture et d'écriture pour easyexcel
Reading and writing operations of easyexcel
ArcGIS栅格重采样方法介绍
Zhang Lijun: la pénétration de l’incertitude dépend de quatre « invariants»
How to prepare for the algorithm interview and answer the algorithm interview questions
Teach yourself to train pytorch model to Caffe (2)
Introduction of ArcGIS grid resampling method
Pytorch实战——MNIST数据集手写数字识别
随机推荐
vant 源码解析 event.ts 事件处理 全局函数 addEventListener详解
Add ICO icon to clion MinGW compiled EXE file
Selenium finds the contents of B or P Tags
kingbaseES V8R3数据安全案例之---审计记录清除案例
Zhang Lijun: penetrating uncertainty depends on four "invariants"
Zhang Lijun: la pénétration de l’incertitude dépend de quatre « invariants»
vant 源码解析之 utils/index.ts 工具函数
XML modeling
1.2 download and installation of the help software rstudio
100 cases of shell programming
Teach yourself to train pytorch model to Caffe (I)
Modifiers of attributes of TS public, private, protect
Recursive query of multi-level menu data
Aitm2-0002 12s or 60s vertical combustion test
The transformation based on vertx web sstore redis to realize the distributed session of vertx HTTP application
The reason why the ncnn converted model on raspberry pie 4B always crashes when called
Test of incombustibility of cement adhesives BS 476-4
Simple interest mode - lazy type
EN 438-7 laminated sheet products for building covering decoration - CE certification
Utils/index TS tool function