[Zope-dev] debugging wedged zopes

Leonardo Rochael Almeida leo@hiper.com.br
07 May 2002 19:21:32 -0300


Hi guys,

You guys remember that Zope of mine that used to segfault? well, it
obviously isn't segfaulting anymore, but now it's behaving in a weird
manner. I'm positive it has nothing to do with the segfaults it used to
have (don't worry, Matt, I won't drag you to IRC once again :-), but to
the complex Zope application it is running (it's full of ZClasses and
PythonsScripts and stuff).

sometimes it's sitting there nicely by itself at 196MB of RSS memory,
suddenly it starts eating memory like a pig and responding VERY slowly.

When that happens, usually one of Zope threads is pegged at
ninety-something %CPU.

Is there a way to know what a Zope thread is doing at a certain point in
time, or at least what request it is trying to serve?

If I where to roll my own, where would I get the data to do a data
structure to keep track of what request the threads are servicing?

Cheers, Leo

-- 
Ideas don't stay in some minds very long because they don't like
solitary confinement.