On Wed, Jul 02, 2008 at 05:34:34PM +0100, Mateusz Pawlowski
wrote:> Hi,
>
> I have a strange problem, after some time my asterisk server starts
> using more and more CPU resource and after some time it becomes
> unusable. I need to kill the asterisk process before it renders the
> whole system unusable.
> I have a few SIP phones, IAX trunk to other system and voicemail running
> on that server.
>
> Now, how do I troubleshoot, which part of asterisk is causing the load
> on CPU ?
Do you see anything in the logs?
One thing to do is identifying which thread is confuming the CPU.
In top, use 'H' to see separate thread (or something like ps -eLf).
Also in top: is some of that time "system"? If so, this is not a pure
100% CPU loop, and strace may be able to provide some further hints.
You can then use:
strace -p <id of that thread>
--
Tzafrir Cohen
icq#16849755 jabber:tzafrir.cohen at xorcom.com
+972-50-7952406 mailto:tzafrir.cohen at xorcom.com
http://www.xorcom.com iax:guest at local.xorcom.com/tzafrir