简介 Memtester 是一个检测VPS 真实可分配内存的小工具,适用于检测VPS 超售情况。本程序检测的可分配内存指的是用户使用时最大能占用的内存量。 使用 Github地址:https://github.com/FunctionClub/Memtester 运行命令: #CentOS/RHEL系统 yum install wget -yyum groupinstall "Development Tools" -ywget -N --no-check-certificate https: gcc -l stdc++ memtester.cpp./a.out #Ubuntu/Debian系统 apt-get updateapt-get install wget build-essential -ywget -N --no-check-certificate https: gcc -l stdc++ memtester.cpp./a.out #脚本备份 https:
在进程被杀死前可以测出当时最大的内存占用。
|