当前位置:网站首页>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
边栏推荐
- Natural language processing series (II) -- building character level language model using RNN
- 5g era, learning audio and video development, a super hot audio and video advanced development and learning classic
- (C language) octal conversion decimal
- Fresh, 2022 advanced Android interview must know 100 questions (interview questions + answer analysis)
- ES集群中节点与分片的区别
- 基于Arduino和ESP8266的连接手机热点实验(成功)
- Sort---
- Orb-slam2 data sharing and transmission between different threads
- 单指令多数据SIMD的SSE/AVX指令集和API
- 输入一个三位的数字,输出它的个位数,十位数、百位数。
猜你喜欢
随机推荐
初始JDBC 编程
Jenkins voucher management
CDA数据分析——AARRR增长模型的介绍、使用
WSL 2 will not be installed yet? It's enough to read this article
Post request body content cannot be retrieved repeatedly
MySQL indexes and transactions
HR wonderful dividing line
Intel 内部指令 --- AVX和AVX2学习笔记
Performance tuning project case
Leetcode122 the best time to buy and sell stocks II
The blink code based on Arduino and esp8266 runs successfully (including error analysis)
Map和Set
Error in kubeadm join: [error port-10250]: port 10250 is in use [error fileavailable--etc kubernetes PKI
字符串回文hash 模板题 O(1)判字符串是否回文
Codeforces 771-div2 C (trouble, permutation is not very good)
CDA data analysis -- Introduction and use of aarrr growth model
JZ63 股票的最大利润
怎样写一篇赏心悦目的英文数学论文
conda常用命令汇总
drools中then部分的写法












