On Thu, Jan 24, 2008 at 10:12:59AM +0100, marek cervenka wrote:
> hi,
> 
> i'm testing asterisk 1.6/1.4/1.2 in the following scenario
> centos5/cpu quad xeon E5335 2.0Ghz
> - test clients behind nat
> - 1500+ testing instances - reregister option from 1min to 1hour
> - qualify set to 5000
> 
> top shows over 100% cpu. cpu cores sometimes go to 95%
> with htop i see ~16threads but only one child have ~95% cpu
> (how i can get info about that thread? what he is doing?)

The simplest way:

  strace -p PID_OF_THREAD

(On standard top you need to press H to see each thread separatelly)

This can give a very good hint in many situations. Unless the thread is
in a loop that is 100% userspace code and no system calls.

In that case you may try:

  gdb -p PID_OF_THREAD

But that is more intrusive.


-- 
               Tzafrir Cohen
icq#16849755              jabber:[EMAIL PROTECTED]
+972-50-7952406           mailto:[EMAIL PROTECTED]
http://www.xorcom.com  iax:[EMAIL PROTECTED]/tzafrir

_______________________________________________
--Bandwidth and Colocation Provided by http://www.api-digital.com--

asterisk-dev mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-dev

Reply via email to