[Asterisk-Users] 100% of cpu

Rafa ast at avproduc.com
Tue Feb 24 03:14:26 MST 2004


"Martin Pycko" <martinp at digium.com> wrote in message 
> news:<Pine.LNX.4.33.0401151423310.11173-100000 at hoochie>...
> > are you running safe_asterisk ?
> > If so try to modify safe_asterisk ... CONSOLE=yes to CONSOLE=no
> > 
> > or if not
> > list all the asteirsk threads 'ps -axum | grep asterisk'
> > find the thread that takes the most CPU and connect with gdb
> > 
> > gdb /usr/sbin/asterisk pid
> > 
> > and do 'bt'
> > 
> > and post the last few lines back ...
> > 
> > Martin


I'm using Asterisk CVS-02/04/04-08:53:25. Sometimes, when check the
processor activity I found one or more asterisk threads that are taking
100% of cpu. I have been reading about the problem and decided to post
this: 


GNU gdb 5.1.1
Copyright 2002 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you
are
welcome to change it and/or distribute copies of it under certain
conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for
details.
This GDB was configured as "i386-suse-linux"...
/root/11147: No such file or directory.
Attaching to program: /usr/sbin/asterisk, process 11147
Reading symbols from /lib/libdl.so.2...done.
Loaded symbols for /lib/libdl.so.2
Reading symbols from /lib/libpthread.so.0...done.
[New Thread 16384 (LWP 11147)]
Loaded symbols for /lib/libpthread.so.0
Reading symbols from /lib/libncurses.so.5...done.
Loaded symbols for /lib/libncurses.so.5
Reading symbols from /lib/libm.so.6...done.
Loaded symbols for /lib/libm.so.6
Reading symbols from /lib/libresolv.so.2...done.
Loaded symbols for /lib/libresolv.so.2
Reading symbols from /lib/libc.so.6...done.
Loaded symbols for /lib/libc.so.6
Reading symbols from /lib/ld-linux.so.2...done.
Loaded symbols for /lib/ld-linux.so.2
re_refresh (el=0x80d2f68) at refresh.c:212
212             cur.h = -1;             /* set flag in case I'm not set
*/
(gdb) bt
#0  re_refresh (el=0x80d2f68) at refresh.c:212
#1  0x0809464e in el_gets (el=0x80d2f68, nread=0xbffff1cc) at read.c:410
#2  0x08081ec5 in ast_remotecontrol (data=0x0) at asterisk.c:1143
#3  0x08082873 in main (argc=2, argv=0xbffff694) at asterisk.c:1362
#4  0x40109857 in __libc_start_main () from /lib/libc.so.6
(gdb) 


I hope you will find this useful. 
Thank you.

Rafa




More information about the asterisk-users mailing list