Search found 9 matches
- February 5th, 2013, 5:08 pm
- Forum: Bug Reports
- Topic: cherrypy shutdown - sabnzbd still running
- Replies: 19
- Views: 16824
Re: cherrypy shutdown - sabnzbd still running
If you don't see min_spare and max_spare in __init__.py then you will not see DOS.
- February 5th, 2013, 4:48 pm
- Forum: Bug Reports
- Topic: cherrypy shutdown - sabnzbd still running
- Replies: 19
- Views: 16824
Re: cherrypy shutdown - sabnzbd still running
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...
- February 5th, 2013, 4:30 pm
- Forum: Bug Reports
- Topic: cherrypy shutdown - sabnzbd still running
- Replies: 19
- Views: 16824
Re: cherrypy shutdown - sabnzbd still running
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 Soft...
- February 5th, 2013, 4:19 pm
- Forum: Bug Reports
- Topic: cherrypy shutdown - sabnzbd still running
- Replies: 19
- Views: 16824
Re: cherrypy shutdown - sabnzbd still running
Looks like you are using threadpool but not sure if you are using recent cherrypy. In any case if you check wsgiserver/__init__.py and don't see min_spare and max_spare, then your setup is not vunerable. It's the introduction of min_spare and max_spare that has caused the problem. class ThreadPool(o...
- February 5th, 2013, 3:44 pm
- Forum: Bug Reports
- Topic: cherrypy shutdown - sabnzbd still running
- Replies: 19
- Views: 16824
Re: cherrypy shutdown - sabnzbd still running
The problem happens if there are >150 (also depends on the system capability) concurrent connection, number of threads of the process will drop down.
ab -n 5000 -c 200 <host:port>
But before that you may want to check _cpserver.py threadpool settings. May be you are not using thread pool.
ab -n 5000 -c 200 <host:port>
But before that you may want to check _cpserver.py threadpool settings. May be you are not using thread pool.
- February 5th, 2013, 2:45 pm
- Forum: Bug Reports
- Topic: cherrypy shutdown - sabnzbd still running
- Replies: 19
- Views: 16824
- February 5th, 2013, 12:26 pm
- Forum: Bug Reports
- Topic: cherrypy shutdown - sabnzbd still running
- Replies: 19
- Views: 16824
Re: cherrypy shutdown - sabnzbd still running
To trigger it with default setting you need lot of VM's. For single system test, you may want to make following changes in _cpserver.py thread_pool = 5 thread_pool_max = -1 thread_pool_min_spare = 2 thread_pool_max_spare = 5 Start appserver. run pstack and make sure there are no more than 10 threads...
- February 4th, 2013, 1:00 am
- Forum: Bug Reports
- Topic: cherrypy shutdown - sabnzbd still running
- Replies: 19
- Views: 16824
Re: cherrypy shutdown - sabnzbd still running
It very easy to re-produce. Just connect to http port in a loop. Or download some test tool to hit http port.
I have posted patch fix for above bug. Let me know if anyone need fix.
I have posted patch fix for above bug. Let me know if anyone need fix.
- February 4th, 2013, 12:50 am
- Forum: Bug Reports
- Topic: cherrypy shutdown - sabnzbd still running
- Replies: 19
- Views: 16824
Re: cherrypy shutdown - sabnzbd still running
I also saw same issue during high load. Fixed issue and opened a bug for upstream cherrypy.
https://bitbucket.org/cherrypy/cherrypy ... nder-heavy
https://bitbucket.org/cherrypy/cherrypy ... nder-heavy