用于检测VPS内存是否超售的一键脚本,他来了
105 人阅读 | 时间:2023年06月19日 20:42
阿里云服务器 | 腾讯云服务器 | VPS2EZ:老牌低调VPS | ZJI:香港日本美国独服 |
LOCVPS服务周到 | HostKvm低调KVM VPS | 傲游主机:优质VPS | 80VPS:老牌VPS主机 |
搬瓦工:CN2 GIA线路 | CloudCone:性价比高 | JustMySocks科学上网 | RackNerd:超级便宜 |
JustMySocks科学上网 | 好用的宝塔面板 | 购买搬瓦工VPS | 恒创:香港CN2服务器 |
脚本已在GitHub上开源:https://github.com/uselibrary/memoryCheck
用于检测VPS内存是否超售的一键脚本,检测范围包括:
内存交换(Swap)
气球驱动(Balloon)
Kernel Samepage Merging(KSM内存合并)
一键脚本如下,若有超售,将以红色字体标注。
curl https://raw.githubusercontent.com/uselibrary/memoryCheck/main/memoryCheck.sh | bash
如果上述执行出错,可以尝试以下命令:
wget --no-check-certificate -O memoryCheck.sh https://raw.githubusercontent.com/uselibrary/memoryCheck/main/memoryCheck.sh && chmod +x memoryCheck.sh && bash memoryCheck.sh
示例
狗云香港BGP没有超售内存
CloudCone通过virtio_balloon超售内存。PS:大多数商家都会这么干。
评论专区