当前位置:网站首页>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已正常使用,服务器也恢复正常。
边栏推荐
- Teach yourself to train pytorch model to Caffe (2)
- Chap2 steps into the palace of R language
- What should I do to prepare for the interview algorithm position during school recruitment?
- xlrd常见操作
- 2.2 basic grammar of R language
- Teach yourself to train pytorch model to Caffe (I)
- MMAP
- Ethereum ETH的奖励机制
- EN 438-7建筑覆盖物装饰用层压板材产品—CE认证
- ArcGIS\QGIS无插件加载(无偏移)MapBox高清影像图
猜你喜欢

The transformation based on vertx web sstore redis to realize the distributed session of vertx HTTP application

Pytorch实战——MNIST数据集手写数字识别

Li Kou ----- the maximum profit of operating Ferris wheel

Talk about my fate with some programming languages

面试官:并发编程实战会吗?(线程控制操作详解)

Five layer network protocol

Cold violence -- another perspective of objective function setting

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

2.2 basic grammar of R language

第05章_存储引擎
随机推荐
Teach yourself to train pytorch model to Caffe (2)
Parker驱动器维修COMPAX控制器维修CPX0200H
What should I do to prepare for the interview algorithm position during school recruitment?
Zhang Lijun: penetrating uncertainty depends on four "invariants"
【案例】定位的运用-淘宝轮播图
Add ICO icon to clion MinGW compiled EXE file
Aitm2-0002 12s or 60s vertical combustion test
Interviewer: will concurrent programming practice meet? (detailed explanation of thread control operation)
leetcode:1139. The largest square bounded by 1
WPF gets the control in the datagridtemplatecolumn of the specified row and column in the DataGrid
驱动壳美国测试UL 2043 符合要求有哪些?
【案例】元素的显示与隐藏的运用--元素遮罩
張麗俊:穿透不確定性要靠四個“不變”
Golang(1)|从环境准备到快速上手
终端安全能力验证环境搭建和渗透测试记录
MySQL 千万数据量深分页优化, 拒绝线上故障!
@Validated基础参数校验、分组参数验证和嵌套参数验证
【日常训练】729. 我的日程安排表 I
The reason why the ncnn converted model on raspberry pie 4B always crashes when called
"Grain mall" -- Summary and induction