[asterisk-bugs] [Asterisk 0013886]: CPU Usage Increases and then Asterisk Crashes
Asterisk Bug Tracker
noreply at bugs.digium.com
Wed Apr 1 01:55:11 CDT 2009
A NOTE has been added to this issue.
======================================================================
http://bugs.digium.com/view.php?id=13886
======================================================================
Reported By: nasirq
Assigned To: file
======================================================================
Project: Asterisk
Issue ID: 13886
Category: General
Reproducibility: random
Severity: crash
Priority: normal
Status: feedback
Asterisk Version: 1.4.22
Regression: No
SVN Branch (only for SVN checkouts, not tarball releases): N/A
SVN Revision (number only!):
Request Review:
======================================================================
Date Submitted: 2008-11-12 08:45 CST
Last Modified: 2009-04-01 01:55 CDT
======================================================================
Summary: CPU Usage Increases and then Asterisk Crashes
Description:
I am using Asterisk in a Call Center Environment. I am using
AgentCallbackLogin for Agents. The Agents are on SIP phones (Polycom).
I am using the Asterisk::Manager perl api for connection to the manager
interface for CTI. One perl script runs (using Asterisk::Manager) and does
two things. First it send Action: Status every 500 ms to get the list of
currently active channels and populates them in a MySQL table. Secondly it
reads a directory for files, which if created consists Managers Actions. It
reads the file, sends the actions to Asterisk and deletes the file. This
way I can send many Managers actions while having only one manager
connection to the Asterisk.
I have used this approach to reduce the load on Asterisk if many clients
need to read the Events or send actions.
The problem I am facing is that sometimes (and I am unable to find the
steps to reproduce) when sending actions, this interface seems to hang. No
more actions get processed and the CPU usage starts to climb up. Using top
I have seen more than two and sometimes five to six asterisk threads using
a lot of CPU. Some times new calls go through and sometimes not. Sometimes
after the active calls are hanged up everything gets back to normal and
some times it gets worst. Using soft hangup on CLI does not work and even
using restart now does not do anything. The only option left is using
killall -9 asterisk.
At this stage of this issue, I need expert guidance to enable me to
further dig in to find out what could be wrong when this occurs.
Please help me out.
======================================================================
----------------------------------------------------------------------
(0102526) nasirq (reporter) - 2009-04-01 01:55
http://bugs.digium.com/view.php?id=13886#c102526
----------------------------------------------------------------------
One more thing. I tried to telnet into the manager interface. Doing Action:
Status the first time showed the result, but then it did'nt work.
Action: Status
Response: Success
Message: Channel status will follow
Event: Status
Privilege: Call
Channel: SIP/807-01e6cd60
CallerID: 807
CallerIDNum: 807
CallerIDName: <unknown>
Account:
State: Up
Link: Local/807 at extensions-96f8,2
Uniqueid: 1238563323.13158
Event: Status
Privilege: Call
Channel: Agent/1004
CallerID: unknown
CallerIDNum: unknown
CallerIDName: unknown
Account:
State: Up
Link: SIP/901-ec051ae0
Uniqueid: 1238563323.13157
Event: Status
Privilege: Call
Channel: Local/807 at extensions-96f8,2
CallerID: unknown
CallerIDNum: unknown
CallerIDName: unknown
Account:
State: Up
Context: extensions
Extension: 807
Priority: 1
Seconds: 2975
Link: SIP/807-01e6cd60
Uniqueid: 1238563323.13156
Action: Status
Action: Status
Issue History
Date Modified Username Field Change
======================================================================
2009-04-01 01:55 nasirq Note Added: 0102526
======================================================================
More information about the asterisk-bugs
mailing list