使用 apache bench(ab)进行压力测试

使用 apache bench(ab)进行压力测试

安装

  • centos安装apache bench

    sudo yum install httpd-tools
    
  • ubuntu 安装 apache bench

    sudo apt-get install apache2-utils
    

进行测试

运行ab进行 压力测试 ,如 1000 个请求 100并发进行测试

``` bash
ab -n 1000 -c 100 http://localhost:6200/api/values
```

猜你喜欢

转载自blog.csdn.net/weixin_33747129/article/details/87092118