当前位置:网站首页>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已正常使用,服务器也恢复正常。
边栏推荐
- Sitge joined the opengauss open source community to jointly promote the ecological development of the database industry
- Opérations de lecture et d'écriture pour easyexcel
- Arcgis\qgis no plug-in loading (no offset) mapbox HD image map
- EasyExcel的读写操作
- 思特奇加入openGauss开源社区,共同推动数据库产业生态发展
- 秋招将临 如何准备算法面试、回答算法面试题
- The transformation based on vertx web sstore redis to realize the distributed session of vertx HTTP application
- Talk about my fate with some programming languages
- @Validated basic parameter verification, grouping parameter verification and nested parameter verification
- Reading and writing operations of easyexcel
猜你喜欢
2022-07-03-cka- latest feedback from fans
面试官:并发编程实战会吗?(线程控制操作详解)
Influence of oscilloscope probe on signal source impedance
第05章_存储引擎
Clion-MinGW编译后的exe文件添加ico图标
Pytoch practice -- MNIST dataset handwritten digit recognition
What should I do to prepare for the interview algorithm position during school recruitment?
張麗俊:穿透不確定性要靠四個“不變”
Feng Tang's "spring breeze is not as good as you" digital collection, logged into xirang on July 8!
Enclosed please find. Net Maui's latest learning resources
随机推荐
Clion configures Visual Studio (MSVC) and JOM multi-core compilation
驱动壳美国测试UL 2043 符合要求有哪些?
EN 438-7 laminated sheet products for building covering decoration - CE certification
Learning robots have no way to start? Let me show you the current hot research directions of robots
Li Kou ----- the maximum profit of operating Ferris wheel
uni-app 蓝牙通信
SQL knowledge leak detection
力扣------经营摩天轮的最大利润
selenium 查找b或p标签的内容
2.2.3 output of documents
Teach yourself to train pytorch model to Caffe (2)
Comprehensive optimization of event R & D workflow | Erda version 2.2 comes as "7"
Making global exception handling classes with aspect
Parker driver maintenance COMPAX controller maintenance cpx0200h
張麗俊:穿透不確定性要靠四個“不變”
Interviewer: will concurrent programming practice meet? (detailed explanation of thread control operation)
The reason why the ncnn converted model on raspberry pie 4B always crashes when called
Ethereum ETH的奖励机制
123456
Chapter 05_ Storage engine