码迷,mamicode.com
首页 > Web开发 > 详细

网站压力测试

时间:2015-07-10 19:08:08      阅读:129      评论:0      收藏:0      [点我收藏+]

标签:openssl   压力测试   工具   

  • 网站压力测试工具
    使用siege这个工具去进行压力测试,这个既可以进行http和https进行压力测试。
  • 编译方法
    wget http://download.joedog.org/siege/siege-latest.tar.gz
    tar -zxvf siege-latest.tar.gz
  • 使用方式
   sudo apt-get install openssl openssh-server openssh-client
   sudo apt-get install gcc g++
  • 编译方法
  cd siege-3.1.0/
  su root
  password input
  ./configure -with-ssl=你的opensslv.h的路径
  请使用which指令  which openssl
  或者使用find命令 find /usr -name openssl*
  make
  make install  
  • 使用方法
可以去修改配置文件 vim ~/.siegerc
修改log日志的配置路径
sudo siege -c 500 -r 200000 -u "https://域名/接口/参数"---GET请求
sudo siege -c 500 -r 200000 -u "https://域名/接口 POST 参数"
具体的使用参数使用方式是  man siege
  • 使用方法
Lifting the server siege..      done.
Transactions:                   1921 hits
Availability:                  65.38 %
Elapsed time:                 167.65 secs
Data transferred:             302.45 MB
Response time:                 36.38 secs
Transaction rate:              11.46 trans/sec
Throughput:                     1.80 MB/sec
Concurrency:                  416.80
Successful transactions:        1921
Failed transactions:            1017
Longest transaction:           69.42
Shortest transaction:           1.58

版权声明:本文为博主原创文章,未经博主允许不得转载。

网站压力测试

标签:openssl   压力测试   工具   

原文地址:http://blog.csdn.net/berguiliu/article/details/46832989

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!