[OpenSIPS-Users] out of pkg mem

Brett Nemeroff brett at nemeroff.com
Fri Mar 20 15:00:12 CET 2009


Hi Bogdan,Yeah, I didn't think it would be related, but it's all that's
really changed.

The dialogs don't seem to be an issue. there are like 3-4 calls up (really).
It happens even if I kill the proc and start it back up.

Any ideas?


On Fri, Mar 20, 2009 at 7:21 AM, Bogdan-Andrei Iancu <bogdan at voice-system.ro
> wrote:

> Hi Brett,
>
> but there should be no relation about how many routes you have in CR (in
> shm) and printing the active dlgs (via pkg)....
>
> Do you have an estimation about the number of ongoing dialogs (see via
> stats) ? I mean you run some large number?
>
> Regards,
> Bogdan
>
> Brett Nemeroff wrote:
>
>> Hey All,
>> I'm using 1.4.4-notls with the carrierroute module. Everything was working
>> fine with about 6 routes loaded. Then I loaded an addition 120 routes and
>> now when I execute:
>> opensipsctl fifo dlg_list
>>
>> I get:
>> [root at sip1 opensips-1.4.4-notls]# opensipsctl fifo dlg_list
>> 500 command 'dlg_list' failed
>> [root at sip1 opensips-1.4.4-notls]# Mar 19 21:23:44 sip1
>> /usr/local/sbin/opensips[6115]: ERROR:core:create_mi_node: no more pkg mem
>> Mar 19 21:23:44 sip1 /usr/local/sbin/opensips[6115]:
>> ERROR:dialog:internal_mi_print_dlg: failed to add node Mar 19 21:23:44 sip1
>> /usr/local/sbin/opensips[6115]: ERROR:dialog:internal_mi_print_dlgs: failed
>> to print dialog Mar 19 21:23:44 sip1 /usr/local/sbin/opensips[6115]:
>> ERROR:mi_fifo:mi_fifo_server: command (dlg_list) processing failed
>> I've tried increasing the pkg mem in config.h:
>> #define PKG_MEM_POOL_SIZE 4*1024*1024           /*!< Used only if
>> PKG_MALLOC is defined*/
>> #define SHM_MEM_SIZE 32                         /*!< Used if SH_MEM is
>> defined*/
>>
>> And followed it up with a make / make install / restart
>>
>> And got the same result. I sent a SIGUSR1 to process 6115 and got the
>> following:
>>
>>
>> [root at sip1 opensips-1.4.4-notls]# Mar 19 21:21:25 sip1
>> /usr/local/sbin/opensips[6115]: Memory status (pkg): Mar 19 21:21:25 sip1
>> /usr/local/sbin/opensips[6115]: fm_status (0x819ac00): Mar 19 21:21:25 sip1
>> /usr/local/sbin/opensips[6115]:  heap size= 4194304 Mar 19 21:21:25 sip1
>> /usr/local/sbin/opensips[6115]:  used= 72488, used+overhead=681312,
>> free=3512992 Mar 19 21:21:25 sip1 /usr/local/sbin/opensips[6115]:  max used
>> (+overhead)= 4194448 Mar 19 21:21:25 sip1 /usr/local/sbin/opensips[6115]:
>> dumping free list: Mar 19 21:21:25 sip1 /usr/local/sbin/opensips[6115]: hash
>> =   1 fragments no.:     3, unused:     0              bucket size:
>> 8 -         8 (first         8) Mar 19 21:21:25 sip1
>> /usr/local/sbin/opensips[6115]: hash =   4 fragments no.: 20455, unused:
>> 0              bucket size:        32 -        32 (first        32) Mar 19
>> 21:21:25 sip1 /usr/local/sbin/opensips[6115]: hash =   5 fragments no.:
>> 20315, unused:     0              bucket size:        40 -        40 (first
>>        40) Mar 19 21:21:25 sip1 /usr/local/sbin/opensips[6115]: hash =   6
>> fragments no.:  9127, unused:     0              bucket size:        48 -
>>      48 (first        48) Mar 19 21:21:25 sip1
>> /usr/local/sbin/opensips[6115]: hash =   7 fragments no.:    96, unused:
>> 0              bucket size:        56 -        56 (first        56) Mar 19
>> 21:21:25 sip1 /usr/local/sbin/opensips[6115]: hash =   8 fragments no.:
>> 15195, unused:     0              bucket size:        64 -        64 (first
>>        64) Mar 19 21:21:25 sip1 /usr/local/sbin/opensips[6115]: hash =   9
>> fragments no.:  3881, unused:     0              bucket size:        72 -
>>      72 (first        72) Mar 19 21:21:25 sip1
>> /usr/local/sbin/opensips[6115]: hash =  10 fragments no.:  4311, unused:
>> 0              bucket size:        80 -        80 (first        80) Mar 19
>> 21:21:25 sip1 /usr/local/sbin/opensips[6115]: hash =  11 fragments no.:
>>  10, unused:     0              bucket size:        88 -        88 (first
>>      88) Mar 19 21:21:25 sip1 /usr/local/sbin/opensips[6115]: hash =  12
>> fragments no.:    16, unused:     0              bucket size:        96 -
>>      96 (first        96) Mar 19 21:21:25 sip1
>> /usr/local/sbin/opensips[6115]: hash =  13 fragments no.:    25, unused:
>> 0              bucket size:       104 -       104 (first       104) Mar 19
>> 21:21:25 sip1 /usr/local/sbin/opensips[6115]: hash =  14 fragments no.:
>> 4, unused:     0              bucket size:       112 -       112 (first
>>   112) Mar 19 21:21:25 sip1 /usr/local/sbin/opensips[6115]: hash =  15
>> fragments no.:     1, unused:     0              bucket size:       120 -
>>     120 (first       120) Mar 19 21:21:25 sip1
>> /usr/local/sbin/opensips[6115]: hash =  16 fragments no.:     1, unused:
>> 0              bucket size:       128 -       128 (first       128) Mar 19
>> 21:21:25 sip1 /usr/local/sbin/opensips[6115]: TOTAL:  73440 free fragments =
>> 3513160 free bytes
>>
>> Not sure what to do here... any ideas?
>>
>> Thanks,
>> Brett
>>
>> ------------------------------------------------------------------------
>>
>> _______________________________________________
>> Users mailing list
>> Users at lists.opensips.org
>> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>>
>>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.opensips.org/pipermail/users/attachments/20090320/3491e0f0/attachment.htm 


More information about the Users mailing list