cherrypy shutdown - sabnzbd still running

Report & discuss bugs found in SABnzbd
Forum rules
Help us help you:
  • Are you using the latest stable version of SABnzbd? Downloads page.
  • Tell us what system you run SABnzbd on.
  • Adhere to the forum rules.
  • Do you experience problems during downloading?
    Check your connection in Status and Interface settings window.
    Use Test Server in Config > Servers.
    We will probably ask you to do a test using only basic settings.
  • Do you experience problems during repair or unpacking?
    Enable +Debug logging in the Status and Interface settings window and share the relevant parts of the log here using [ code ] sections.
hsrawat
Newbie
Newbie
Posts: 9
Joined: February 4th, 2013, 12:44 am

Re: cherrypy shutdown - sabnzbd still running

Post 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)
hsrawat
Newbie
Newbie
Posts: 9
Joined: February 4th, 2013, 12:44 am

Re: cherrypy shutdown - sabnzbd still running

Post 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.
User avatar
sander
Release Testers
Release Testers
Posts: 9062
Joined: January 22nd, 2008, 2:22 pm

Re: cherrypy shutdown - sabnzbd still running

Post 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.
hsrawat
Newbie
Newbie
Posts: 9
Joined: February 4th, 2013, 12:44 am

Re: cherrypy shutdown - sabnzbd still running

Post by hsrawat »

If you don't see min_spare and max_spare in __init__.py then you will not see DOS.
keithm
Newbie
Newbie
Posts: 11
Joined: April 19th, 2008, 11:37 am

Re: cherrypy shutdown - sabnzbd still running

Post 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
Post Reply