当前位置:网站首页>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已正常使用,服务器也恢复正常。
边栏推荐
- sql常用语法记录
- Modifiers of attributes of TS public, private, protect
- Golang(1)|从环境准备到快速上手
- Longest swing sequence [greedy practice]
- Using webassembly to operate excel on the browser side
- Realize the function of verifying whether the user has completed login when browsing the page
- int GetMonth( ) const throw( );后面的throw( )什么意思?
- How to send samples when applying for BS 476-7 display? Is it the same as the display??
- PostGIS installation geographic information extension
- 基于 Ingress Controller 在集群外访问 Zadig 自测环境(最佳实践)
猜你喜欢
Making global exception handling classes with aspect
Five layer network protocol
leetcode:1139. The largest square bounded by 1
Recursive query of multi-level menu data
Add ICO icon to clion MinGW compiled EXE file
Ethereum ETH的奖励机制
2.2.5 basic sentences of R language drawing
Teach yourself to train pytorch model to Caffe (III)
Comprehensive optimization of event R & D workflow | Erda version 2.2 comes as "7"
秋招将临 如何准备算法面试、回答算法面试题
随机推荐
Explain various hot issues of Technology (SLB, redis, mysql, Kafka, Clickhouse) in detail from the architecture
Determine the best implementation of horizontal and vertical screens
Sorting out the problems encountered in MySQL built by pycharm connecting virtual machines
SYSTEMd resolved enable debug log
[case] Application of positioning - Taobao rotation map
Simple interest mode - evil Chinese style
Teach yourself to train pytorch model to Caffe (III)
基于vertx-web-sstore-redis的改造实现vertx http应用的分布式session
让开发效率飞速提升的跨端方案
Selenium finds the contents of B or P Tags
Learning notes of statistical learning methods -- Chapter 1 Introduction to statistical learning methods
Using webassembly to operate excel on the browser side
The transformation based on vertx web sstore redis to realize the distributed session of vertx HTTP application
Cold violence -- another perspective of objective function setting
2.2.3 output of documents
LeetCode_ Hash table_ Difficulties_ 149. Maximum number of points on the line
How to prepare for the algorithm interview and answer the algorithm interview questions
selenium 获取dom内属性值的方法
leetcode:1755. Sum of subsequences closest to the target value
Problems encountered in office--