Memtester一键脚本:检测VPS真实可分配内存及超售情况

Memtester是一个检测VPS真实可分配内存的小工具,适用于检测VPS超售情况。本程序检测的可分配内存指的是用户使用时最大能占用的内存量。

Github地址:https://github.com/FunctionClub/Memtester

运行命令:在进程被杀死前可以测出当时最大的内存占用

#CentOS/RHEL系统
yum install wget -y
yum groupinstall "Development Tools" -y
wget -N --no-check-certificate https://raw.githubusercontent.com/FunctionClub/Memtester/master/memtester.cpp
gcc -l stdc++ memtester.cpp
./a.out

#Ubuntu/Debian系统
apt-get update
apt-get install wget build-essential -y
wget -N --no-check-certificate https://raw.githubusercontent.com/FunctionClub/Memtester/master/memtester.cpp
gcc -l stdc++ memtester.cpp
./a.out

原文地址:https://www.moerats.com/archives/546/

Last modification:August 19th, 2018 at 04:31 pm
If you think my article is useful to you, please feel free to appreciate

Leave a Comment