I don't think that is_alive would be the cause of this, it looks like
a simple enough view. But if your server uses a thread pool, and all
the other threads are now occupied by something that got locked up,
then it could be that the server is not answering your is_alive
request at all
Ah, so it seems that, as I leave the server running longer longer,
more more threads are taken up with a `.recv()` call. I think one of
my clients opens requests and does not read them/close them. Eventually
all the threads are blocking in that fashion.
I will fix my clients. But, is
Le 20/04/2012 16:06, Claudiu Saftoiu a écrit :
Ah, so it seems that, as I leave the server running longer longer,
more more threads are taken up with a `.recv()` call. I think one of
my clients opens requests and does not read them/close them.
Eventually
all the threads
On Fri, Apr 20, 2012 at 10:06:40AM -0400, Claudiu Saftoiu wrote:
Ah, so it seems that, as I leave the server running longer longer,
more more threads are taken up with a `.recv()` call. I think one of
my clients opens requests and does not read them/close them.
Does not write, rather.
On Thu, Apr 19, 2012 at 17:20, Claudiu Saftoiu csaft...@gmail.com wrote:
My question is: what could possibly be causing the server to 'lock up', even
on a
simple view like 'is_alive', without using any memory or CPU? Is there some
ZODB
resource that might be getting gradually exhausted
On Thu, Apr 19, 2012 at 11:33 AM, Martijn Pieters m...@zopatista.com wrote:
On Thu, Apr 19, 2012 at 17:20, Claudiu Saftoiu csaft...@gmail.com wrote:
My question is: what could possibly be causing the server to 'lock up',
even
on a
simple view like 'is_alive', without using any memory or
On Thu, Apr 19, 2012 at 18:22, Claudiu Saftoiu csaft...@gmail.com wrote:
Are there locks that could possibly be used for the 'is_alive' function?
Here is the
definition in its entirety.
In 'configure.zcml':
view
view=.views.is_alive
name=is_alive
renderer=json
/
in
I have no idea; all you told is that you use the ZODB, not what server
framework you use to register your views. Is this Grok, Bluebream,
Repoze.BFG, Zope 2 or something else?
Ah yes, sorry about that. I'm using Repoze.BFG . Does that help any?
I don't think that is_alive would be the cause
I don't know, anything could lock up your site if something is waiting
for a lock, for example.
Use http://pypi.python.org/pypi/z3c.deadlockdebugger to figure out
what the threads are doing at this time. Preferably, trigger the
dump_threads() method of that module on SIGUSR1, like the Zope