[OpenSIPS-Users] no pkg mem

Kennard_White at logitech.com Kennard_White at logitech.com
Sat Jul 3 04:45:57 CEST 2010


Hi Brett,

While this doesn't address the root problem, we do two thing: (a) run with
~100MB of pkg mem (per process), and (b) run a monitor script checking
syslog for out of memory messages, and restart all the processes. Not
elegant, but better than zombies.

I noticed in your log that you're also out of shmem. Do you know which
comes first? (running out of pkg or shmem)?

Regards,
Kennard



From:	Brett Nemeroff <brett at nemeroff.com>
To:	users at lists.opensips.org
Date:	07/01/2010 05:47 AM
Subject:	[OpenSIPS-Users] no pkg mem
Sent by:	users-bounces at lists.opensips.org



Hello list,
Using dispatcher on 1.6.1-notls on a system with fairly high load. Config
is pretty vanilla, includes rtpproxy and acc.

After running for about 2 days, calls fail with no audio because no pkg mem
to parse stuff. I've recompiled with a 4 x multipler:
#define PKG_MEM_POOL_SIZE 4*1024*1024           /*!< Used only if
PKG_MALLOC is defined*/

Any ideas on how to fix? a big problem I have here is that the box still
replies to Option requests :/ so nothing fails over, just fails with no
audio.

Syslog shows the following:
Jul  1 08:40:40 opensips1 /usr/local/sbin/opensips 83
[local0.err] /usr/local/sbin/opensips[13559]: incoming reply
Jul  1 08:40:40 opensips1 /usr/local/sbin/opensips 83
[local0.err] /usr/local/sbin/opensips[13559]: ERROR:core:parse_headers: pkg
memory allocation failed
Jul  1 08:40:40 opensips1 /usr/local/sbin/opensips 83
[local0.err] /usr/local/sbin/opensips[13559]: ERROR:textops:has_body_f:
Failed to get bodies
Jul  1 08:40:40 opensips1 /usr/local/sbin/opensips 83
[local0.err] /usr/local/sbin/opensips[13559]: ERROR:core:del_lump: out of
pkg memory
Jul  1 08:40:40 opensips1 /usr/local/sbin/opensips 83
[local0.err] /usr/local/sbin/opensips[13559]:
ERROR:core:build_res_buf_from_sip_res: failed to remove first via
Jul  1 08:40:40 opensips1 /usr/local/sbin/opensips 83
[local0.err] /usr/local/sbin/opensips[13559]: ERROR:tm:relay_reply: no mem
for outbound reply buffer
Jul  1 08:40:40 opensips1 /usr/local/sbin/opensips 83
[local0.err] /usr/local/sbin/opensips[13559]:
ERROR:core:build_res_buf_from_sip_req: out of pkg memory  ; needs 464
Jul  1 08:40:40 opensips1 /usr/local/sbin/opensips 83
[local0.err] /usr/local/sbin/opensips[13562]: ERROR:core:parse_from_header:
out of pkg_memory
Jul  1 08:40:40 opensips1 /usr/local/sbin/opensips 83
[local0.err] /usr/local/sbin/opensips[13562]:
ERROR:siptrace:trace_onreply_in: cannot parse FROM header
Jul  1 08:40:40 opensips1 /usr/local/sbin/opensips 83
[local0.err] /usr/local/sbin/opensips[13562]: incoming reply
Jul  1 08:40:40 opensips1 /usr/local/sbin/opensips 83
[local0.err] /usr/local/sbin/opensips[13562]: ERROR:core:parse_headers: pkg
memory allocation failed
Jul  1 08:40:40 opensips1 /usr/local/sbin/opensips 83
[local0.err] /usr/local/sbin/opensips[13562]: ERROR:textops:has_body_f:
Failed to get bodies
Jul  1 08:40:40 opensips1 /usr/local/sbin/opensips 83
[local0.err] /usr/local/sbin/opensips[13562]: ERROR:core:del_lump: out of
pkg memory
Jul  1 08:40:40 opensips1 /usr/local/sbin/opensips 83
[local0.err] /usr/local/sbin/opensips[13562]:
ERROR:core:build_res_buf_from_sip_res: failed to remove first via
Jul  1 08:40:40 opensips1 /usr/local/sbin/opensips 83
[local0.err] /usr/local/sbin/opensips[13562]: ERROR:tm:relay_reply: no mem
for outbound reply buffer
Jul  1 08:40:40 opensips1 /usr/local/sbin/opensips 83
[local0.err] /usr/local/sbin/opensips[13562]:
ERROR:core:build_res_buf_from_sip_req: out of pkg memory  ; needs 464
Jul  1 08:40:41 opensips1 /usr/local/sbin/opensips 83
[local0.err] /usr/local/sbin/opensips[13563]: ERROR:core:via_builder: out
of pkg memory
Jul  1 08:40:41 opensips1 /usr/local/sbin/opensips 83
[local0.err] /usr/local/sbin/opensips[13563]:
ERROR:core:build_req_buf_from_sip_req: no via received!
Jul  1 08:40:41 opensips1 /usr/local/sbin/opensips 83
[local0.err] /usr/local/sbin/opensips[13563]: ERROR:tm:print_uac_request:
no more shm_mem
Jul  1 08:40:41 opensips1 /usr/local/sbin/opensips 83
[local0.err] /usr/local/sbin/opensips[13563]: ERROR:tm:t_forward_nonack:
failure to add branches
Jul  1 08:40:41 opensips1 /usr/local/sbin/opensips 83
[local0.err] /usr/local/sbin/opensips[13563]:
ERROR:core:build_res_buf_from_sip_req: out of pkg memory  ; needs 424
Jul  1 08:40:41 opensips1 /usr/local/sbin/opensips 83
[local0.err] /usr/local/sbin/opensips[13563]:
ERROR:core:build_res_buf_from_sip_req: out of pkg memory  ; needs 424
Jul  1 08:40:41 opensips1 /usr/local/sbin/opensips 83
[local0.err] /usr/local/sbin/opensips[13563]:
ERROR:sl:sl_send_reply_helper: response building failed
Jul  1 08:40:42 opensips1 /usr/local/sbin/opensips 83
[local0.err] /usr/local/sbin/opensips[13562]: ERROR:core:via_builder: out
of pkg memory
Jul  1 08:40:42 opensips1 /usr/local/sbin/opensips 83
[local0.err] /usr/local/sbin/opensips[13562]:
ERROR:core:build_req_buf_from_sip_req: no via received!
Jul  1 08:40:42 opensips1 /usr/local/sbin/opensips 83
[local0.err] /usr/local/sbin/opensips[13562]: ERROR:tm:print_uac_request:
no more shm_mem
Jul  1 08:40:42 opensips1 /usr/local/sbin/opensips 83
[local0.err] /usr/local/sbin/opensips[13562]: ERROR:tm:t_forward_nonack:
failure to add branches
Jul  1 08:40:42 opensips1 /usr/local/sbin/opensips 83
[local0.err] /usr/local/sbin/opensips[13562]:
ERROR:core:build_res_buf_from_sip_req: out of pkg memory  ; needs 425
Jul  1 08:40:42 opensips1 /usr/local/sbin/opensips 83
[local0.err] /usr/local/sbin/opensips[13562]:
ERROR:core:build_res_buf_from_sip_req: out of pkg memory  ; needs 425
Jul  1 08:40:42 opensips1 /usr/local/sbin/opensips 83
[local0.err] /usr/local/sbin/opensips[13562]:
ERROR:sl:sl_send_reply_helper: response building failed


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/20100702/ea8cec70/attachment-0001.htm 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: graycol.gif
Type: image/gif
Size: 105 bytes
Desc: not available
Url : http://lists.opensips.org/pipermail/users/attachments/20100702/ea8cec70/attachment-0001.gif 


More information about the Users mailing list