apachebench

Why does a simple Thin server stop responding at 16500 requests when benchmarking? [duplicate]

余生颓废 提交于 2019-11-29 20:43:02
问题 This question already has answers here : Closed 7 years ago . Possible Duplicate: 'ab' program freezes after lots of requests, why? Here's a simple test server: require 'rubygems' require 'rack' require 'thin' class HelloWorld def call(env) [200, {"Content-Type" => "text/plain"}, "OK"] end end Rack::Handler::Thin.run HelloWorld.new, :Port => 9294 #I've tried with these added too, 'rack.multithread' => true, 'rack.multiprocess' => true Here's a test run: $ ab -n 20000 http://0.0.0.0:9294/sdf

Load Testing with AB … fake failed requests (length)

自古美人都是妖i 提交于 2019-11-29 18:43:59
To do some load testing, for my own curiosity, on my server I ran: ab -kc 50 -t 200 http://localhost/index.php This opens up 50 keep-alive connections for 200 seconds and just slams my server with requests for index.php In my results, I get: Concurrency Level: 50 Time taken for tests: 200.007 seconds Complete requests: 33106 Failed requests: 32951 (Connect: 0, Receive: 0, Length: 32951, Exceptions: 0) Write errors: 0 Keep-Alive requests: 0 Total transferred: 1948268960 bytes HTML transferred: 1938001392 bytes Requests per second: 165.52 [#/sec] (mean) Time per request: 302.071 [ms] (mean) Time

How do I fix “ssl handshake failed” with ApacheBench?

时光毁灭记忆、已成空白 提交于 2019-11-29 02:57:55
When I use ApacheBench to test https, the error is returned, "ssl handshake failed". How can I use ApacheBench to test https? ApacheBench doesn't seem to be capable of ignoring certificate problems (at least some of them) so I wrote this script: #!/bin/bash K=200; HTTPSA='https://192.168.1.103:443/' date +%M-%S-%N>wgetres.txt for (( c=1; c<=$K; c++ )) do wget --no-check-certificate --secure-protocol=SSLv3 --spider $HTTPSA done date +%M-%S-%N>>wgetres.txt It's not as precise as AB, but gives the idea. Does well in comparison tests. comb httperf is also single threaded, but as of today (Aug 31,

ab is erroring out with apr_socket_recv: Connection refused (61)

╄→尐↘猪︶ㄣ 提交于 2019-11-28 17:17:29
问题 I am testing eventlet out, and I am getting this error: ~>ab -n 10 -c 1 http://localhost:8090/ This is ApacheBench, Version 2.3 <$Revision: 655654 $> Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/ Licensed to The Apache Software Foundation, http://www.apache.org/ Benchmarking localhost (be patient)...apr_socket_recv: Connection reset by peer (54) Total of 2 requests completed The website works at localhost:8090/ and returns 200 OK. I had the same issue with tomcat,

How to install Apache Bench on Windows 7? [closed]

ぃ、小莉子 提交于 2019-11-28 16:02:47
I want to install Apache Bench on Windows, can someone tell me which MSI to get? I did install some MSI but it seems to have installed apache http server. I just need to run Apache Bench, as I am testing an IIS asp.net application. TMB It sounds like you don't want to install Apache, but you do want Apache Bench . May I recommend XAMPP ? Download the zip or 7zip versions (much larger download than regular Apache but you won't have to install). Unzip the download. This is where what I would recommend, and where you currently are converge. Since you already have Apache installed you should

'ab' program freezes after lots of requests, why?

白昼怎懂夜的黑 提交于 2019-11-27 06:19:25
Whenever I use 'ab' to benchmark a web server, it will freeze for a while after having sent lots of requests, only to continue after 20 seconds or so. Consider the following HTTP server simulator, written in Ruby: require 'socket' RESPONSE = "HTTP/1.1 200 OK\r\n" + "Connection: close\r\n" + "\r\n" + "\r\n" buffer = "" server = TCPServer.new("127.0.0.1", 3000) # Create TCP server at port 3000. server.listen(1024) # Set backlog to 1024. while true client = server.accept # Accept new client. client.write(RESPONSE) # Write a stock "HTTP" response. client.close_write # Shutdown write part of the

apache ab压力测试报错(apr_socket_recv: Connection reset by peer (104))

旧城冷巷雨未停 提交于 2019-11-27 05:14:04
apache ab压力测试报错(apr_socket_recv: Connection reset by peer (104)) apache ab压力测试报错(apr_socket_recv: Connection reset by peer (104)) 今天用apache 自带的ab工具测试,当并发量达到1000多的时候报错如下: [root@aa~]# This is ApacheBench, Version 2.3 <$Revision: 655654 $> Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/ Licensed to The Apache Software Foundation, http://www.apache.org/ Benchmarking 192.168.1.176 (be patient) Completed 300 requests Completed 600 requests Completed 900 requests apr_socket_recv: Connection reset by peer (104) Total of 1085 requests completed 查看应用服务器和数据库均未报错,连接被重置,bingyi了以下

&#39;ab&#39; program freezes after lots of requests, why?

我的未来我决定 提交于 2019-11-26 11:56:49
问题 Whenever I use \'ab\' to benchmark a web server, it will freeze for a while after having sent lots of requests, only to continue after 20 seconds or so. Consider the following HTTP server simulator, written in Ruby: require \'socket\' RESPONSE = \"HTTP/1.1 200 OK\\r\\n\" + \"Connection: close\\r\\n\" + \"\\r\\n\" + \"\\r\\n\" buffer = \"\" server = TCPServer.new(\"127.0.0.1\", 3000) # Create TCP server at port 3000. server.listen(1024) # Set backlog to 1024. while true client = server.accept