stress模拟压力

安装

yum install -y epel-release
yum install -y stress

耗尽1个CPU

stress --cpu 1 --timeout 60
top

耗尽内存

stress --vm 1 --vm-bytes 2G --vm-keep
free -h

耗尽磁盘IO

stress -d 1 --hdd-bytes 5G
iostat -x 1 5

参考资料

压力测试之stress 

posted on 2023-04-15 13:53  王景迁  阅读(31)  评论(0编辑  收藏  举报

导航