A 'poor mans' profiler for java is to send the java process sigquit (ctl-\ , 
kill -QUIT), each time you send it that it should dump the stacks of each 
thread to its stderr (console or log). If you do that a few times in a row 
while its churning you should be able to see which stack is busy and likely 
what its up to.

You can use 'lsof -p pid' to find out where stderr is going (filedescriptor 2) 
if you don't already know (its probably redirected to a log file in the usual 
place).

-Eric

On Jan 11, 2010, at 1:03 PM, Tony Graziano wrote:

> Intel(R) Pentium(R) Dual CPU E2220 @ 2.40GHz , 2 cores, 4GB Ram. 
> 
> System begins to not route calls via sipXbridge. Upon looking at the system, 
> there is a high CPU (50-60%) for one of the java processes.
> 
> Rebooting the system sees it crawl DOWN to 29% and then start creeping back 
> up within 10 minutes.
> 
> /usr/bin/java -Djava.io.tmpdir=/var/sipxdata/tmp 
> -Djetty.lib.dir=/usr/share/java/sipXecs/sipXconfig -Djett
> /usr/local/freeswitch/bin/freeswitch -conf /etc/sipxpbx/freeswitch/conf -db 
> /var/sipxdata/tmp/freeswitch -
> 
> Are consuming the CPU. Freeswitch seems to take over as soon as a call is 
> made to voicemail, even after removing the conference server role. The first 
> java process is consuming 1GB of ram, no swap is used and over 2.5GB of real 
> ram free.
> 
> How does one troubleshoot this?
> 
> -- 
> ======================
> Tony Graziano, Manager
> Telephone: 434.984.8430
> Fax: 434.984.8431
> 
> Email: [email protected]
> 
> LAN/Telephony/Security and Control Systems Helpdesk:
> Telephone: 434.984.8426
> Fax: 434.984.8427
> 
> Helpdesk Contract Customers:
> http://www.myitdepartment.net/gethelp/
> 
> Why do mathematicians always confuse Halloween and Christmas?
> Because 31 Oct = 25 Dec.
> 
> _______________________________________________
> sipx-users mailing list [email protected]
> List Archive: http://list.sipfoundry.org/archive/sipx-users
> Unsubscribe: http://list.sipfoundry.org/mailman/listinfo/sipx-users
> sipXecs IP PBX -- http://www.sipfoundry.org/

_______________________________________________
sipx-users mailing list [email protected]
List Archive: http://list.sipfoundry.org/archive/sipx-users
Unsubscribe: http://list.sipfoundry.org/mailman/listinfo/sipx-users
sipXecs IP PBX -- http://www.sipfoundry.org/

Reply via email to