Page 2 of 2

Re: cherrypy shutdown - sabnzbd still running

Posted: February 5th, 2013, 4:30 pm
by hsrawat
I think you might be seeing the problem.
Otherwise a successful report should look like.
[root@localhost ]# ab -n400 -c40 http://localhost:8000/
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)
Completed 100 requests
Completed 200 requests
Completed 300 requests
Completed 400 requests
Finished 400 requests


Server Software: CherryPy/3.1.2
Server Hostname: localhost
Server Port: 8000

Document Path: /
Document Length: 109 bytes

Concurrency Level: 40
Time taken for tests: 1.571 seconds
Complete requests: 400
Failed requests: 0
Write errors: 0
Non-2xx responses: 400
Total transferred: 167600 bytes
HTML transferred: 43600 bytes
Requests per second: 254.64 [#/sec] (mean)
Time per request: 157.084 [ms] (mean)
Time per request: 3.927 [ms] (mean, across all concurrent requests)
Transfer rate: 104.19 [Kbytes/sec] received

Connection Times (ms)
min mean[+/-sd] median max
Connect: 0 3 8.7 0 33
Processing: 8 148 31.1 155 198
Waiting: 4 146 31.5 154 197
Total: 38 151 25.6 156 199

Percentage of the requests served within a certain time (ms)
50% 156
66% 159
75% 162
80% 164
90% 169
95% 175
98% 182
99% 189
100% 199 (longest request)

Re: cherrypy shutdown - sabnzbd still running

Posted: February 5th, 2013, 4:48 pm
by hsrawat
This is how I re-produced.

ab -n3000 -c300 http://localhost:8000/
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_poll: The timeout specified has expired (70007)

Cherrypy is not accepting any further connections even though the test is over.

Re: cherrypy shutdown - sabnzbd still running

Posted: February 5th, 2013, 4:53 pm
by sander
Each time I get "apr_socket_recv: Connection reset by peer (104)" after a few hundred connections, but the webserver is still reachable when I try again one second later.

So I would say I can't reproduce.

Re: cherrypy shutdown - sabnzbd still running

Posted: February 5th, 2013, 5:08 pm
by hsrawat
If you don't see min_spare and max_spare in __init__.py then you will not see DOS.

Re: cherrypy shutdown - sabnzbd still running

Posted: May 20th, 2015, 2:11 am
by keithm
hsrawat wrote:If you don't see min_spare and max_spare in __init__.py then you will not see DOS.
I think you onto something about the threads. See this Chromium bug, they say increasing threads worked.

https://code.google.com/p/chromium/issu ... ?id=348188