一个测试HTTP服务器极限的好方法就是模拟高负载下的HTTP服务器, 有5款自由软件是您的最好选择: curl-loader, httperf, Siege, Tsung, and Apache JMeter.
- httperf
测试5000次连接,每次50个请求1httperf --server=localhost --uri=/ --num-conns=5000 --num-calls=50高级应用
1
2
3httperf --client=0/1 --server=localhost --port=80 --uri=/ \
--send-buffer=4096 --recv-buffer=16384 \
--num-conns=5000 --num-calls=50你也可以尝试一下一个更简单的类httperf软件http_load.
- Siege
和httperf类似, 上手非常简单1siege localhost利用sproxy连接代理服务器
1sproxy -v -o urls.txt使用代理服务器
1siege -v --internet --file=urls.txt
Recent Comments