当前位置:网站首页>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 asswap
in/etc/fstab
are made available, except for those with thenoauto
option.
Devices that are already being used as swap are silently skipped. - translation :
All in/etc/fstab
The markedswap
All devices are available , Except withnoauto
Optional 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
边栏推荐
- 自然语言处理系列(三)——LSTM
- CDH存在隐患 : 该角色的进程使用的交换内存为xx兆字节。警告阈值:200字节
- 记录一下MySql update会锁定哪些范围的数据
- Deep understanding of NN in pytorch Embedding
- Codeforces 771 div2 B (no one FST, refers to himself)
- Go learning notes - multithreading
- Day12 control flow if switch while do While guessing numbers game
- CDA数据分析——AARRR增长模型的介绍、使用
- 倍增 LCA(最近公共祖先)
- SVO2系列之深度滤波DepthFilter
猜你喜欢
随机推荐
(C language) octal conversion decimal
LeetCode—剑指 Offer 51. 数组中的逆序对
CDA数据分析——AARRR增长模型的介绍、使用
(C language) input a line of characters and count the number of English letters, spaces, numbers and other characters.
Small guide for rapid formation of manipulator (VII): description method of position and posture of manipulator
CDA data analysis -- common knowledge points induction of Excel data processing
LeetCode—剑指 Offer 59 - I、59 - II
Sparkcontext: error initializing sparkcontext solution
高德地图测试用例
CDA数据分析——Excel数据处理的常见知识点归纳
【C语言】十进制数转换成二进制数
CDH6之Sqoop添加数据库驱动
[QT] Qt development environment installation (QT version 5.14.2 | QT download | QT installation)
Full link voltage measurement
Deep understanding of P-R curve, ROC and AUC
Thesis translation: 2022_ PACDNN: A phase-aware composite deep neural network for speech enhancement
mysql索引和事务
MSI announced that its motherboard products will cancel all paper accessories
Error in kubeadm join: [error port-10250]: port 10250 is in use [error fileavailable--etc kubernetes PKI
Sort---