[asterisk-users] understand which asterisk thread is consuming CPU

2010-06-10 Thread nik600
Dear all

using top -H i can see that some asterisk thread are consuming many
CPU (sometimes more than 50%)

Is there a way to understand what is doing the process with pid 9429 ?

i've tried the core show thread command, but it doesn't seem to print
any PID information.

Thanks to all in advance

  PID USER  PR  NI  VIRT  RES  SHR S %CPU %MEMTIME+  COMMAND
 9429 root  20   0  662m  93m 5596 S   23  3.1  29:28.91 asterisk
13261 root  20   0  662m  93m 5596 S   10  3.1   0:04.54 asterisk
15646 root  20   0  662m  93m 5596 S4  3.1   0:00.82 asterisk
15648 root  20   0  662m  93m 5596 S3  3.1   0:00.88 asterisk
 9413 root  20   0  662m  93m 5596 S3  3.1   1:25.85 asterisk
13987 root  20   0  662m  93m 5596 S3  3.1   0:03.22 asterisk
15743 root  20   0  662m  93m 5596 S2  3.1   0:00.82 asterisk
 9432 root  20   0  662m  93m 5596 S1  3.1  13:06.55 asterisk
13778 root  20   0  662m  93m 5596 S1  3.1   0:04.82 asterisk
 9412 root  20   0  662m  93m 5596 S1  3.1   0:34.84 asterisk
 9465 root  20   0  662m  93m 5596 S1  3.1   0:39.63 asterisk
13351 root  20   0  662m  93m 5596 S1  3.1   0:03.02 asterisk
13654 root  20   0  662m  93m 5596 S1  3.1   0:02.64 asterisk
14758 root  20   0  662m  93m 5596 S1  3.1   0:02.22 asterisk
14911 root  20   0  662m  93m 5596 S1  3.1   0:03.28 asterisk
15004 root  20   0  662m  93m 5596 S1  3.1   0:02.04 asterisk
15006 root  20   0  662m  93m 5596 S1  3.1   0:02.68 asterisk
15126 root  20   0  662m  93m 5596 S1  3.1   0:02.50 asterisk
15127 root  20   0  662m  93m 5596 S1  3.1   0:02.82 asterisk
15711 root  20   0  662m  93m 5596 S1  3.1   0:00.76 asterisk
15892 root  20   0  662m  93m 5596 S1  3.1   0:00.68 asterisk
15956 root  20   0  662m  93m 5596 S1  3.1   0:00.68 asterisk

-- 
/*/
nik600
http://www.kumbe.it

-- 
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
   http://www.asterisk.org/hello

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


Re: [asterisk-users] understand which asterisk thread is consuming CPU

2010-06-10 Thread Tzafrir Cohen
On Thu, Jun 10, 2010 at 03:46:31PM +0200, nik600 wrote:
 Dear all
 
 using top -H i can see that some asterisk thread are consuming many
 CPU (sometimes more than 50%)
 
 Is there a way to understand what is doing the process with pid 9429 ?

  strace -p 9429

This would help if the thread actually does some system calls and not
not constantly in userland.

-- 
   Tzafrir Cohen
icq#16849755  jabber:tzafrir.co...@xorcom.com
+972-50-7952406   mailto:tzafrir.co...@xorcom.com
http://www.xorcom.com  iax:gu...@local.xorcom.com/tzafrir

-- 
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
   http://www.asterisk.org/hello

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