Hello,
i am running a turbogears 2.2.2 (same for tg 2.2) app behind apache with mod proxy.
From time to time (once/twice a week) the service is not usable anymore because a new request produces a MemoryError. Then i have to restart the process and its working again.
My read is, that somewhere in the app resp. in the framework, there is a memory leak or something. Does this assumption make sense?
Well, i don't have a idea what and where i should search for. Do you have an ideas? Maybe any common pitfalls? I attached the errorstack.
thanks in advance.
best,
Kai
----------------------------------------
Unexpected exception in worker <function <lambda> at 0xb0098374>
Traceback (most recent call last):
File "/home/kai/tg222env/lib/python2.6/site-packages/Paste-1.7.5.1-py2.6.egg/paste/httpserver.py", line 878, in worker_thread_callback
runnable()
File "/home/kai/tg222env/lib/python2.6/site-packages/Paste-1.7.5.1-py2.6.egg/paste/httpserver.py", line 1052, in <lambda>
lambda: self.process_request_in_thread(request, client_address))
File "/home/kai/tg222env/lib/python2.6/site-packages/Paste-1.7.5.1-py2.6.egg/paste/httpserver.py", line 1068, in process_request_in_thread
self.finish_request(request, client_address)
File "/usr/lib/python2.6/SocketServer.py", line 322, in finish_request
self.RequestHandlerClass(request, client_address, self)
File "/usr/lib/python2.6/SocketServer.py", line 617, in __init__
self.handle()
File "/home/kai/tg222env/lib/python2.6/site-packages/Paste-1.7.5.1-py2.6.egg/paste/httpserver.py", line 442, in handle
BaseHTTPRequestHandler.handle(self)
File "/usr/lib/python2.6/BaseHTTPServer.py", line 329, in handle
self.handle_one_request()
File "/home/kai/tg222env/lib/python2.6/site-packages/Paste-1.7.5.1-py2.6.egg/paste/httpserver.py", line 431, in handle_one_request
self.raw_requestline = self.rfile.readline()
File "/usr/lib/python2.6/socket.py", line 444, in readline
data = self._sock.recv(self._rbufsize)
MemoryError