############################
stress 压力测试工具
############################
为了测试服务器的负载情况,给大家推荐Stress这个压力测试工具。Stress是一个Posix系统下生成Cpu/Memory/IO/Disk负载的工具。
项目址址: http://weather.ou.edu/~apw/pro
stress 安装:
centos7:
# 启用三方源
$ rpm -ivh http://apt.sw.be/redhat/el7/en/x86_64/rpmforge/RPMS/rpmforge-release-0.5.3-1.el7.rf.x86_64.rpm
# 安装Stress
$ yum install stress
centos6:
# 启用三方源
$ yum install epel-release
# 安装Stress
$ yum install stress
stress参数说明:
Usage: stress [OPTION [ARG]] ...
-?, --help show this help statement
--version show version statement
-v, --verbose be verbose
-q, --quiet be quiet
-n, --dry-run show what would have been done
-t, --timeout N timeout after N seconds
--backoff N wait factor of N microseconds before work starts
-c, --cpu N spawn N workers spinning on sqrt()
-i, --io N spawn N workers spinning on sync()
-m, --vm N spawn N w
stress 压力测试工具
最新推荐文章于 2024-07-18 14:29:32 发布
![](https://img-home.csdnimg.cn/images/20240711042549.png)