< Previous by Date Date Index Next by Date >
  Thread Index Next in Thread >

[sipX-dev] memory leak problem


Hi~

 

I found memory leak at all sip server - sipregistrar, sipproxy...

but I don't know why memory leak is occured.

 

I tested using sipp program.

 

Initial memory usage of sipproxy is 5290 byte.

 

# ps -el | grep sip

0 S   502 18470 18426  0  76   0 -  5290 stext  ?        00:00:02 sipproxy

0 S   502 32498 18426  0  76   0 -  8657 stext  ?        00:00:00 sipregistrar

 

After 3745 times REGISTER test, memory usage of sipproxy is 25954 bytes.

 

# ps -el | grep sip

0 S   502 18470 18426  0  76   0 - 25954 stext  ?        00:01:35 sipproxy
0 S   502 32498 18426  0  76   0 - 15939 stext  ?        00:00:21 sipregistrar

and do not decrease.

 

First time I think it will be decrease when removeOldTransactions() function of SipTransactionList class is called. but it not work like I think.

 

=============================================================================================

sipp test command and test result is like below. 

 

C:\Program Files\SIPp>sipp -sf sipx-recv.xml -r 100 -rp 1 testserver.com
Warning: open file limit > FD_SETSIZE; limiting max. # of open files to FD_SETSIZ
E = 64
      Resolving remote host testserver.com... Done.
------------------------------ Scenario Screen -------- [1-9]: Change Screen --
  Call-rate(length)     Port   Total-time  Total-calls  Remote-host
 100.0(0 ms)/1.000s   5060     121.16 s         1139  1.1.1.1:5060(UDP)

  0 new calls during 0.150 s period      2 ms scheduler resolution
  944 calls (limit 1200)                 Peak was 1139 calls, after 11 s
  0 Running, 944 Paused, 0 Woken up
  325 out-of-call msg (discarded)
  1 open sockets

                                 Messages  Retrans   Timeout   Unexpected-Msg
    REGISTER ---------->         1139      3745      111
         401 <----------         1028      0                   0
    REGISTER ---------->         1028      5451      84
         200 <----------         944       0                   0
      INVITE <----------         0         0                   0

         180 ---------->         0         0
         200 ---------->         0         0         0
         ACK <----------  E-RTD1 0         0                   0

         BYE <----------         0         0                   0
         200 ---------->         0         0
       Pause [   4000ms]         0                             0
------------------------------ Test Terminated --------------------------------


----------------------------- Statistics Screen ------- [1-9]: Change Screen --
  Start Time             | 2007-04-06 16:23:38
  Last Reset Time        | 2007-04-06 16:25:39
  Current Time           | 2007-04-06 16:25:40
-------------------------+---------------------------+--------------------------
  Counter Name           | Periodic value            | Cumulative value
-------------------------+---------------------------+--------------------------
  Elapsed Time           | 00:00:00:183              | 00:02:01:275
  Call Rate              |    0.000 cps              |    9.392 cps
-------------------------+---------------------------+--------------------------
  Incoming call created  |        0                  |        0
  OutGoing call created  |        0                  |     1139
  Total Call created     |                           |     1139
  Current Call           |      944                  |
-------------------------+---------------------------+--------------------------
  Successful call        |        0                  |        0
  Failed call            |        0                  |      195
-------------------------+---------------------------+--------------------------
  Call Length            | 00:00:00:000              | 00:00:41:820
------------------------------ Test Terminated --------------------------------

2007-04-06 16:24:51: Discarding message which can't be mapped to a known SIPp cal
l:

 

 

파워 프로그래머

저는 윈도우/리눅스/유닉스 시스템 프로그래머 & 윈도우 UI 프로그래머입니다. *^^*
새로운 기부문화의 씨앗, 해피빈