Heimo Laukkanen wrote at 2004-5-18 14:10 +0300:
> ...
>At the moment with testing setup under load test ZServer dies - leaving 
>all but one thread at almost 0% cpu and that one thread working in high 
>loads of 90%. Testing similar zeo-setup with development instances do 
>not produce this.

Provided, you work under Linux, you can try to attach
to the process with GDB and analyse the thread behaviour.

I use the functions "ps" (Print String) and "pfr" (Print FRame)
during such analysis. They are defined by:

def ps
x/s ({PyStringObject}$arg0)->ob_sval

def pfr
ps f->f_code->co_filename
ps f->f_code->co_name
p f->f_lineno

You can apply "ps" to an string object.

You can call "pfr" in an "eval_frame" frame context.


Zope-Dev maillist  -  [EMAIL PROTECTED]
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope )

Reply via email to