[OpenSIPS-Users] opensips 1.6.4 out of memory

Iulian Macare iulian.macare at gmail.com
Tue Mar 15 11:57:07 CET 2011


I think this is the problem;

I took a look in logs and I saw ERROR:core:print_rr_body: too many RR ....
more of this. Anyway since 3 days it didn't blocked anymore. I have
increased the parameter SHM_MEM ...

I still get from time to time those errors with too many RR and in that
moment the shm memory increasez ... but it doesn't reach to 512mb .. I don;t
know how to isolate the problem because I have so many calls....

#define SHM_MEM_SIZE 512

On Fri, Mar 11, 2011 at 1:21 PM, Vlad Paiu <vladpaiu at opensips.org> wrote:

>  Hello Iulian,
>
> I took a look at the error output, and something seems very wrong. The
> errors
>     ERROR:core:print_rr_body: too many RR
> suggest the fact the your SIP messages have more than 64 Record-Route
> headers, which is huge. Are you sure you are not having a traffic loop
> problem ? Please post a traffic capture of SIP messages that trigger the out
> of mem problems.
>
> Regards,
>
> --
> Vlad Paiu
> OpenSIPS Developer
>
>
>
> On 03/11/2011 11:23 AM, Iulian Macare wrote:
>
> 2-3 times per day my opensips configuration with 300 channels and a load
> balancer fails ; It's opensips 1.6.4 on centos 5.5. 32 bit
>
> The erors I get are :
>
> Any ideas?
>
> Mar 11 11:15:08 opensipsh /usr/local/sbin/opensips[1718]: ERROR:tm:new_t:
> out of mem
> Mar 11 11:15:08 opensipsh /usr/local/sbin/opensips[1701]:
> ERROR:tm:sip_msg_cloner: no more share memory
> Mar 11 11:15:08 opensipsh /usr/local/sbin/opensips[1716]:
> ERROR:dialog:dlg_create_dialog: could not add further info to the dialog
> Mar 11 11:15:08 opensipsh /usr/local/sbin/opensips[1706]:
> ERROR:dialog:dlg_create_dialog: could not add further info to the dialog
> Mar 11 11:15:08 opensipsh /usr/local/sbin/opensips[1727]:
> ERROR:tm:t_newtran: new_t failed
> Mar 11 11:15:08 opensipsh /usr/local/sbin/opensips[1704]:
> ERROR:tm:t_newtran: new_t failed
> Mar 11 11:15:08 opensipsh /usr/local/sbin/opensips[1700]:
> ERROR:load_balancer:do_load_balance: failed to create dialog
> Mar 11 11:15:07 opensipsh /usr/local/sbin/opensips[1698]:
> ERROR:tm:t_newtran: new_t failed
> Mar 11 11:15:07 opensipsh /usr/local/sbin/opensips[1723]:
> ERROR:tm:t_newtran: new_t failed
> Mar 11 11:15:07 opensipsh /usr/local/sbin/opensips[1725]:
> ERROR:core:print_rr_body: too many RR
> Mar 11 11:15:07 opensipsh /usr/local/sbin/opensips[1708]:
> ERROR:dialog:dlg_add_leg_info: Failed to resize legs array
> Mar 11 11:15:07 opensipsh /usr/local/sbin/opensips[1712]:
> ERROR:dialog:dlg_add_leg_info: Failed to resize legs array
> Mar 11 11:15:07 opensipsh /usr/local/sbin/opensips[1714]:
> ERROR:dialog:dlg_create_dialog: could not add further info to the dialog
> Mar 11 11:15:07 opensipsh /usr/local/sbin/opensips[1720]:
> ERROR:tm:t_newtran: new_t failed
> Mar 11 11:15:07 opensipsh /usr/local/sbin/opensips[1721]: ERROR:tm:new_t:
> out of mem
> Mar 11 11:15:07 opensipsh /usr/local/sbin/opensips[1710]:
> ERROR:tm:sip_msg_cloner: no more share memory
> Mar 11 11:15:07 opensipsh /usr/local/sbin/opensips[1718]:
> ERROR:tm:sip_msg_cloner: no more share memory
> Mar 11 11:15:07 opensipsh /usr/local/sbin/opensips[1701]:
> ERROR:tm:t_newtran: new_t failed
> Mar 11 11:15:07 opensipsh /usr/local/sbin/opensips[1716]:
> ERROR:dialog:init_leg_info: dlg_add_leg_info failed
> Mar 11 11:15:07 opensipsh /usr/local/sbin/opensips[1706]:
> ERROR:dialog:init_leg_info: dlg_add_leg_info failed
> Mar 11 11:15:07 opensipsh /usr/local/sbin/opensips[1727]: ERROR:tm:new_t:
> out of mem
> Mar 11 11:15:07 opensipsh /usr/local/sbin/opensips[1704]: ERROR:tm:new_t:
> out of mem
> Mar 11 11:15:07 opensipsh /usr/local/sbin/opensips[1700]:
> ERROR:dialog:dlg_create_dialog: could not add further info to the dialog
> Mar 11 11:15:07 opensipsh /usr/local/sbin/opensips[1698]: ERROR:tm:new_t:
> out of mem
> Mar 11 11:15:07 opensipsh /usr/local/sbin/opensips[1723]: ERROR:tm:new_t:
> out of mem
> Mar 11 11:15:07 opensipsh /usr/local/sbin/opensips[1708]:
> ERROR:tm:t_newtran: new_t failed
> Mar 11 11:15:07 opensipsh /usr/local/sbin/opensips[1712]:
> ERROR:tm:t_newtran: new_t failed
> Mar 11 11:15:04 opensipsh /usr/local/sbin/opensips[1701]:
> ERROR:tm:t_newtran: new_t failed
> Mar 11 11:15:04 opensipsh /usr/local/sbin/opensips[1716]: ERROR:tm:new_t:
> out of mem
> Mar 11 11:15:04 opensipsh /usr/local/sbin/opensips[1706]: ERROR:tm:new_t:
> out of mem
> Mar 11 11:15:04 opensipsh /usr/local/sbin/opensips[1727]:
> ERROR:dialog:get_routing_info: failed to print route records
> Mar 11 11:15:04 opensipsh /usr/local/sbin/opensips[1725]:
> ERROR:dialog:dlg_add_leg_info: Failed to resize legs array
> Mar 11 11:15:04 opensipsh /usr/local/sbin/opensips[1704]:
> ERROR:dialog:get_routing_info: failed to print route records
> Mar 11 11:15:04 opensipsh /usr/local/sbin/opensips[1700]:
> ERROR:dialog:get_routing_info: failed to print route records
> Mar 11 11:15:04 opensipsh /usr/local/sbin/opensips[1698]:
> ERROR:dialog:get_routing_info: failed to print route records
> Mar 11 11:15:04 opensipsh /usr/local/sbin/opensips[1723]:
> ERROR:dialog:dlg_add_leg_info: no more shm mem
> Mar 11 11:15:04 opensipsh /usr/local/sbin/opensips[1708]:
> ERROR:dialog:dlg_add_leg_info: Failed to resize legs array
> Mar 11 11:15:04 opensipsh /usr/local/sbin/opensips[1712]:
> ERROR:dialog:dlg_add_leg_info: Failed to resize legs array
> Mar 11 11:15:04 opensipsh /usr/local/sbin/opensips[1714]:
> ERROR:dialog:build_new_dlg: no more shm mem (202)
> Mar 11 11:15:04 opensipsh /usr/local/sbin/opensips[1720]:
> ERROR:tm:shm_clone_proxy: no more shm memory
> Mar 11 11:15:04 opensipsh /usr/local/sbin/opensips[1721]:
> ERROR:tm:sip_msg_cloner: no more share memory
> Mar 11 11:15:04 opensipsh /usr/local/sbin/opensips[1710]:
> ERROR:dialog:dlg_add_leg_info: Failed to resize legs array
> Mar 11 11:15:04 opensipsh /usr/local/sbin/opensips[1718]:
> ERROR:core:build_req_buf_from_sip_req: out of pkg memory
> Mar 11 11:15:04 opensipsh /usr/local/sbin/opensips[1701]: ERROR:tm:new_t:
> out of mem
> Mar 11 11:15:04 opensipsh /usr/local/sbin/opensips[1716]:
> ERROR:tm:sip_msg_cloner: no more share memory
> Mar 11 11:15:04 opensipsh /usr/local/sbin/opensips[1706]:
> ERROR:tm:sip_msg_cloner: no more share memory
> Mar 11 11:15:04 opensipsh /usr/local/sbin/opensips[1727]:
> ERROR:core:print_rr_body: too many RR
> Mar 11 11:15:03 opensipsh /usr/local/sbin/opensips[1725]:
> ERROR:dialog:get_routing_info: failed to print route records
> Mar 11 11:15:03 opensipsh /usr/local/sbin/opensips[1704]:
> ERROR:core:print_rr_body: too many RR
> Mar 11 11:15:03 opensipsh /usr/local/sbin/opensips[1700]:
> ERROR:core:print_rr_body: too many RR
> Mar 11 11:15:03 opensipsh /usr/local/sbin/opensips[1698]:
> ERROR:core:print_rr_body: too many RR
> Mar 11 11:15:03 opensipsh /usr/local/sbin/opensips[1708]:
> ERROR:dialog:get_routing_info: failed to print route records
> Mar 11 11:15:03 opensipsh /usr/local/sbin/opensips[1718]:
> ERROR:dialog:get_routing_info: failed to print route records
> Mar 11 11:15:03 opensipsh /usr/local/sbin/opensips[1725]:
> ERROR:core:print_rr_body: too many RR
> Mar 11 11:15:03 opensipsh /usr/local/sbin/opensips[1704]:
> ERROR:dialog:get_routing_info: failed to print route records
> Mar 11 11:15:03 opensipsh /usr/local/sbin/opensips[1706]:
> ERROR:dialog:get_routing_info: failed to print route records
> Mar 11 11:15:03 opensipsh /usr/local/sbin/opensips[1720]:
> ERROR:dialog:get_routing_info: failed to print route records
> Mar 11 11:15:03 opensipsh /usr/local/sbin/opensips[1708]:
> ERROR:core:print_rr_body: too many RR
> Mar 11 11:15:03 opensipsh /usr/local/sbin/opensips[1718]:
> ERROR:core:print_rr_body: too many RR
> Mar 11 11:15:03 opensipsh /usr/local/sbin/opensips[1704]:
> ERROR:core:print_rr_body: too many RR
> Mar 11 11:15:03 opensipsh /usr/local/sbin/opensips[1706]:
> ERROR:core:print_rr_body: too many RR
> Mar 11 11:15:03 opensipsh /usr/local/sbin/opensips[1720]:
> ERROR:core:print_rr_body: too many RR
> Mar 11 11:15:03 opensipsh /usr/local/sbin/opensips[1708]:
> ERROR:dialog:get_routing_info: failed to print route records
> Mar 11 11:15:03 opensipsh /usr/local/sbin/opensips[1718]:
> ERROR:dialog:get_routing_info: failed to print route records
> Mar 11 11:15:03 opensipsh /usr/local/sbin/opensips[1704]:
> ERROR:dialog:get_routing_info: failed to print route records
> Mar 11 11:15:03 opensipsh /usr/local/sbin/opensips[1706]:
> ERROR:dialog:get_routing_info: failed to print route records
> Mar 11 11:15:03 opensipsh /usr/local/sbin/opensips[1720]:
> ERROR:dialog:get_routing_info: failed to print route records
> Mar 11 11:15:03 opensipsh /usr/local/sbin/opensips[1700]:
> ERROR:dialog:get_routing_info: failed to print route records
> Mar 11 11:15:03 opensipsh /usr/local/sbin/opensips[1708]:
> ERROR:core:print_rr_body: too many RR
> Mar 11 11:15:03 opensipsh /usr/local/sbin/opensips[1718]:
> ERROR:core:print_rr_body: too many RR
> Mar 11 11:15:03 opensipsh /usr/local/sbin/opensips[1704]:
> ERROR:core:print_rr_body: too many RR
> Mar 11 11:15:03 opensipsh /usr/local/sbin/opensips[1706]:
> ERROR:core:print_rr_body: too many RR
> Mar 11 11:15:03 opensipsh /usr/local/sbin/opensips[1720]:
> ERROR:core:print_rr_body: too many RR
> Mar 11 11:15:02 opensipsh /usr/local/sbin/opensips[1700]:
> ERROR:dialog:get_routing_info: failed to print route records
> Mar 11 11:15:02 opensipsh /usr/local/sbin/opensips[1700]:
> ERROR:core:print_rr_body: too many RR
> Mar 11 11:15:02 opensipsh /usr/local/sbin/opensips[1700]:
> ERROR:dialog:get_routing_info: failed to print route records
> Mar 11 11:15:02 opensipsh /usr/local/sbin/opensips[1700]:
> ERROR:core:print_rr_body: too many RR
> Mar 11 11:15:02 opensipsh /usr/local/sbin/opensips[1704]:
> ERROR:dialog:get_routing_info: failed to print route records
> Mar 11 11:15:02 opensipsh /usr/local/sbin/opensips[1704]:
> ERROR:core:print_rr_body: too many RR
> Mar 11 11:15:02 opensipsh /usr/local/sbin/opensips[1704]:
> ERROR:dialog:get_routing_info: failed to print route records
> Mar 11 11:15:02 opensipsh /usr/local/sbin/opensips[1704]:
> ERROR:core:print_rr_body: too many RR
> Mar 11 11:15:02 opensipsh /usr/local/sbin/opensips[1704]:
> ERROR:dialog:get_routing_info: failed to print route records
> Mar 11 11:15:02 opensipsh /usr/local/sbin/opensips[1704]:
> ERROR:core:print_rr_body: too many RR
> Mar 11 11:15:02 opensipsh /usr/local/sbin/opensips[1700]:
> ERROR:dialog:get_routing_info: failed to print route records
> Mar 11 11:15:02 opensipsh /usr/local/sbin/opensips[1700]:
> ERROR:core:print_rr_body: too many RR
>
>
>
> _______________________________________________
> Users mailing list
> Users at lists.opensips.orghttp://lists.opensips.org/cgi-bin/mailman/listinfo/users
>
>
>
>
> _______________________________________________
> 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/20110315/bf129b3f/attachment-0001.htm>


More information about the Users mailing list