Hello all,<div><br></div><div>I&#39;m using Repoze.BFG, with paster to launch the webserver. This is a </div><div>similar issue to the one I emailed about before titled</div><div>&quot;server stops handling requests - nowhere near 100% CPU or Memory</div>
<div>used&quot;</div><div><br></div><div>The situation is the same. I used z3c.deadlockdebugger , and what</div><div>I notice is that, when the server is blocked, there are about 100</div><div>threads running (as opposed to 15 or so when the server has</div>
<div>just started), and all their stack traces look like this:</div><div><br></div><div><div>Thread 140269004887808:</div><div>  File &quot;/usr/lib/python2.6/threading.py&quot;, line 504, in __bootstrap</div><div>    self.__bootstrap_inner()</div>
<div>  File &quot;/usr/lib/python2.6/threading.py&quot;, line 532, in __bootstrap_inner</div><div>    self.run()</div><div>  File &quot;/usr/lib/python2.6/threading.py&quot;, line 484, in run</div><div>    self.__target(*self.__args, **self.__kwargs)</div>
<div>  File &quot;/home/tsa/env/lib/python2.6/site-packages/paste/httpserver.py&quot;, line 878, in worker_thread_callback</div><div>    runnable()</div><div>  File &quot;/home/tsa/env/lib/python2.6/site-packages/paste/httpserver.py&quot;, line 1052, in &lt;lambda&gt;</div>
<div>    lambda: self.process_request_in_thread(request, client_address))</div><div>  File &quot;/home/tsa/env/lib/python2.6/site-packages/paste/httpserver.py&quot;, line 1068, in process_request_in_thread</div><div>    self.finish_request(request, client_address)</div>
<div>  File &quot;/usr/lib/python2.6/SocketServer.py&quot;, line 322, in finish_request</div><div>    self.RequestHandlerClass(request, client_address, self)</div><div>  File &quot;/usr/lib/python2.6/SocketServer.py&quot;, line 617, in __init__</div>
<div>    self.handle()</div><div>  File &quot;/home/tsa/env/lib/python2.6/site-packages/paste/httpserver.py&quot;, line 442, in handle</div><div>    BaseHTTPRequestHandler.handle(self)</div><div>  File &quot;/usr/lib/python2.6/BaseHTTPServer.py&quot;, line 329, in handle</div>
<div>    self.handle_one_request()</div><div>  File &quot;/home/tsa/env/lib/python2.6/site-packages/paste/httpserver.py&quot;, line 437, in handle_one_request</div><div>    self.wsgi_execute()</div><div>  File &quot;/home/tsa/env/lib/python2.6/site-packages/paste/httpserver.py&quot;, line 287, in wsgi_execute</div>
<div>    self.wsgi_start_response)</div><div>  File &quot;/home/tsa/env/lib/python2.6/site-packages/repoze/zodbconn/connector.py&quot;, line 18, in __call__</div><div>    conn = self.db.open()</div><div>  File &quot;/home/tsa/env/lib/python2.6/site-packages/ZODB/DB.py&quot;, line 729, in open</div>
<div>    self._a()</div><div>  File &quot;/usr/lib/python2.6/threading.py&quot;, line 123, in acquire</div><div>    rc = self.__block.acquire(blocking)</div></div><div><br></div><div>The server gets to a blocked state every 24 hours or so. Simply restarting</div>
<div>the webserver works fine; however, i&#39;d like to know what the problem is so</div><div>restarting won&#39;t be necessary, and to prevent it from getting worse. Any ideas/</div><div>suggestions?</div><div><br></div>
<div>Thanks,</div><div>- Claudiu</div>