当前位置:网站首页>There is a hidden danger in CDH: the exchange memory used by the process of this role is XX megabytes. Warning threshold: 200 bytes
There is a hidden danger in CDH: the exchange memory used by the process of this role is XX megabytes. Warning threshold: 200 bytes
2022-07-02 12:14:00 【Small base o_ O】
List of articles
summary
CDH Warning message of a service on :
Existence hidden danger : The swap memory used by the process of this role is xx Megabytes . Warning threshold :200 byte
for example :
ZooKeeper The service process uses Swap memory , Lead to ZooKeeper Service slows down , It affects the cluster
Personal understanding of swap memory
- English name :swap space
- Translated names : Swap space or Swap memory
- paraphrase :
swap space It's a piece of space on the hard disk
When the physical memory of the system is insufficient , The memory of some programs that have not been operated for a long time will be released , The free space is temporarily saved to swap space
When the program is ready to operate , Again from swap space Restore data to memory - advantage : Enables the program to manipulate space larger than the actual physical memory
- shortcoming :swap space Will produce hard disk IO, Make the program slow
for example
Windows The system can run multiple programs at the same time , When switching to a program that has been ignored for a long time , You'll hear the hard drive “ Dada ” Direct sound
Swap memory related operations
View swap memory
free -h
swap space Total size 8G, Already used 2.2G, The remaining 5.8G
Enable swap memory
swapon -a
- Options
-a, --all - original text :
All devices marked asswapin/etc/fstabare made available, except for those with thenoautooption.
Devices that are already being used as swap are silently skipped. - translation :
All in/etc/fstabThe markedswapAll devices are available , Except withnoautoOptional device .
Devices that have been used as switching areas are silently skipped .
Disable swap memory
swapoff -a
A window executes
swapoff -a, Another window executesswapon
You can see , The used swap space is decreasing
CDH Hidden danger solution
Write a script , Set timing task , Regularly clean the used swap space
#!/bin/bash
# Disable all swap spaces
swapoff -a
# Enable all swap spaces
swapon -a
# Prompt after cleaning
echo " Clean up "
Clean up the used swap space after
边栏推荐
- drools执行String规则或执行某个规则文件
- CDH6之Sqoop添加数据库驱动
- 高德地图测试用例
- (C language) 3 small Codes: 1+2+3+ · · +100=? And judge whether a year is a leap year or a normal year? And calculate the circumference and area of the circle?
- 基于Arduino和ESP8266的连接手机热点实验(成功)
- The differences and relationships among port, targetport, nodeport and containerport in kubenetes
- kubenetes中port、targetPort、nodePort、containerPort的区别与联系
- Error in kubeadm join: [error port-10250]: port 10250 is in use [error fileavailable--etc kubernetes PKI
- Map and set
- Intel 内部指令 --- AVX和AVX2学习笔记
猜你喜欢

CDH存在隐患 : 该角色的进程使用的交换内存为xx兆字节。警告阈值:200字节

MySQL and PostgreSQL methods to grab slow SQL

Read the Flink source code and join Alibaba cloud Flink group..

Tas (file d'attente prioritaire)

arcgis js 4.x 地图中加入图片

CDA data analysis -- Introduction and use of aarrr growth model

drools中then部分的写法

Brush questions --- binary tree --2

寻找二叉树中任意两个数的公共祖先

Addition, deletion, modification and query of MySQL table (Advanced)
随机推荐
Dynamic debugging of multi file program x32dbg
Those logs in MySQL
Docker-compose配置Mysql,Redis,MongoDB
(C language) octal conversion decimal
Lekao: contents of the provisions on the responsibility of units for fire safety in the fire protection law
还不会安装WSL 2?看这一篇文章就够了
Go学习笔记—基于Go的进程间通信
Read the Flink source code and join Alibaba cloud Flink group..
初始JDBC 编程
Go learning notes - multithreading
Leetcode122 the best time to buy and sell stocks II
LeetCode—剑指 Offer 51. 数组中的逆序对
甜心教主:王心凌
Experiment of connecting mobile phone hotspot based on Arduino and esp8266 (successful)
Leetcode14 longest public prefix
(C language) 3 small Codes: 1+2+3+ · · +100=? And judge whether a year is a leap year or a normal year? And calculate the circumference and area of the circle?
Map和Set
[C language] Yang Hui triangle, customize the number of lines of the triangle
Input a three digit number and output its single digit, ten digit and hundred digit.
Larvel modify table fields


