banner
moeyy

moeyy

一条有远大理想的咸鱼。
github
mastodon
email

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.moeyy.cn/usr/shell/memtester.cpp

在进程被杀死前可以测出当时最大的内存占用。

加载中...
此文章数据所有权由区块链加密技术和智能合约保障仅归创作者所有。