用weighttp对jetty做压力测试
1、对静态网页数据(可以确定数据长度)的访问测试,包括长连接和短连接,正常
2、对动态网页,servet的长连接访问,正常
3、对动态网页、servlet的短连接访问,request failed
示例:
1、静态页面
[root@server1 ~]# weighttp -n 1 -k http://192.168.30.13:8080
weighttp - a lightweight and simple webserver benchmarking tool
Request (94):
==========
GET / HTTP/1.1
Host: 192.168.30.13:8080
User-Agent: weighttp/0.3
Connection: keep-alive
==========
host: '192.168.30.13', port: 8080
starting benchmark...
spawning thread #1: 1 concurrent requests, 1 total requests
progress: 100% done
finished in 0 sec, 38 millisec and 626 microsec, 25 req/s, 56 kbyte/s
requests: 1 total, 1 started, 1 done, 1 succeeded, 0 failed, 0 errored
status codes: 1 2xx, 0 3xx, 0 4xx, 0 5xx
traffic: 2237 bytes total, 203 bytes http, 2034 bytes data
2、数据
[root@server1 ~]# weighttp -n 1 -k http://192.168.30.13:8080/d.txt
weighttp - a lightweight and simple webserver benchmarking tool
Request (99):
==========
GET /d.txt HTTP/1.1
Host: 192.168.30.13:8080
User-Agent: weighttp/0.3
Connection: keep-alive
==========
host: '192.168.30.13', port: 8080
starting benchmark...
spawning thread #1: 1 concurrent requests, 1 total requests
pr