[sr-dev] [tracker] Task opened: Kamailio doesn't to handle any SIP message at all after several dialogs... (CPU high usage)

sip-router bugtracker at sip-router.org
Fri Feb 21 11:17:44 CET 2014


THIS IS AN AUTOMATED MESSAGE, DO NOT REPLY.

A new Flyspray task has been opened.  Details are below. 

User who did this - Jack Wang (GoGoJack) 

Attached to Project - sip-router
Summary - Kamailio doesn't to handle any SIP message at all after several dialogs... (CPU high usage)
Task Type - Bug Report
Category - Core
Status - Unconfirmed
Assigned To - 
Operating System - Linux
Severity - Critical
Priority - Normal
Reported Version - 4.0
Due in Version - Undecided
Due Date - Undecided
Details - First, thanks for watching my poor English,
hope guys can understand what I want to show you :)


__issue __

  * Objective:  test the stability of kamailio with lots of registered users

  * Work: take 4~9 users registered and do call in\out with an MCU

I found it's OK for just doing registration actions , but a trouble always occured when doing call in\out for a time (5 minutes ~ 3hrs , frequently in 1~2hrs) - kamailio doesn't to handle SIP message anymore, this causes that all the registration failed and was changed to "expired" state in user location table of database so that I can't do call in\out for every register user until I restart kamailio.

It seems CPU usage of kamailio is too high after checking by typing "top" command:

**[normal state]**

<code> 
 CPU:  0.2% usr  0.2% sys  0.0% nic 99.5% idle  0.0% io  0.0% irq  0.0% sirq
 ...
 PID   PPID USER     STAT   VSZ %VSZ CPU %CPU COMMAND
 6169  6150 xxxxxxxx S    49476  2.3   3  0.0 ./kamailio -P /var/run/kamailio.pid -f /var/test/kamailio.cfg
 6168  6150 xxxxxxxx S    49472  2.3   3  0.0 ./kamailio -P /var/run/kamailio.pid -f /var/test/kamailio.cfg
 6171  6150 xxxxxxxx S    49472  2.3   3  0.0 ./kamailio -P /var/run/kamailio.pid -f /var/test/kamailio.cfg
 6172  6150 xxxxxxxx S    49472  2.3   0  0.0 ./kamailio -P /var/run/kamailio.pid -f /var/test/kamailio.cfg</code>

**[abnormal state]**

<code>  
 CPU: 11.4% usr 88.5% sys  0.0% nic  0.0% idle  0.0% io  0.0% irq  0.0% sirq 
 ...
 PID   PPID USER     STAT   VSZ %VSZ CPU %CPU COMMAND
 6216  6203 xxxxxxxx R    48308  2.3   0 24.2 ./kamailio -P /var/run/kamailio.pid -f /var/test/kamailio.cfg
 6218  6203 xxxxxxxx R    48308  2.3   3 24.1 ./kamailio -P /var/run/kamailio.pid -f /var/test/kamailio.cfg
 6217  6203 xxxxxxxx R    48308  2.3   1 23.7 ./kamailio -P /var/run/kamailio.pid -f /var/test/kamailio.cfg
 6221  6203 xxxxxxxx R    48308  2.3   2 22.4 ./kamailio -P /var/run/kamailio.pid -f /var/test/kamailio.cfg</code>


since the process doesn't crash , I can't do a core dump for this, and I can't find any rules for this bug because it may happen on anywhere, it's better to get suggestions from you. 

__other environment settings__

kamailio version: 4.0.5
CPU: ARM Cortex A8
Database: SQLite

More information can be found at the following URL:
http://sip-router.org/tracker/index.php?do=details&task_id=397

You are receiving this message because you have requested it from the Flyspray bugtracking system.  If you did not expect this message or don't want to receive mails in future, you can change your notification settings at the URL shown above.



More information about the sr-dev mailing list