<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><br><div><div>On 10.04.2011, at 8:35, Ronald Cepres wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite">Have you tried increasing the amount of allocated memory for OpenSIPS?</blockquote><blockquote type="cite"><br><div class="gmail_quote">On Sun, Apr 10, 2011 at 5:53 AM, Nauman Sulaiman <span dir="ltr">&lt;<a href="mailto:nauman762-home@yahoo.co.uk">nauman762-home@yahoo.co.uk</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0.8ex; border-left-width: 1px; border-left-color: rgb(204, 204, 204); border-left-style: solid; padding-left: 1ex; position: static; z-index: auto; ">Hi, I'm getting random crashes of Opensips 1.6.2, here are the entries in the log, seems to be out of memory, how should i try to solve this issue.<br>

<br>
ERROR:tm:_reply_light: failed to allocate shmem buffer<br>
ERROR:tm:_reply_light: failed to allocate shmem buffer<br>
ERROR:tm:relay_reply: no more share memory<br>
ERROR:core:new_avp: no more shm mem<br>
ERROR:core:add_avp: Failed to create new avp structure<font class="Apple-style-span" color="#000000"><font class="Apple-style-span" color="#144FAE"><br></font></font></blockquote></div></blockquote><br></div><div>I have same problem with OpenSIPS since 1.6.0 release. OpenSIPS has huge memory leak somewhere. Increasing the amount of allocated memory helps only delay crash.</div><div><br></div><div>Memory usage graph (1.6.4, KkB is MB):</div><div><a href="http://dev.sgu.ru/pub/opensips_memory_usage.png">http://dev.sgu.ru/pub/opensips_memory_usage.png</a></div><div><br></div><div>I use the following modules:</div><div><br></div><div><div>$ grep loadmodule opensips.cfg&nbsp;</div><div>loadmodule "signaling.so"</div><div>loadmodule "sl.so"</div><div>loadmodule "tm.so"</div><div>loadmodule "maxfwd.so"</div><div>loadmodule "rr.so"</div><div>loadmodule "textops.so"</div><div>loadmodule "localcache.so"</div><div>loadmodule "mi_fifo.so"</div><div>loadmodule "mi_datagram.so"</div><div>loadmodule "db_flatstore.so"</div><div>loadmodule "siptrace.so"</div><div>loadmodule "db_text.so"</div><div>loadmodule "db_postgres.so"</div><div>loadmodule "db_http.so"</div><div>loadmodule "usrloc.so"</div><div>loadmodule "registrar.so"</div><div>loadmodule "auth.so"</div><div>loadmodule "auth_db.so"</div><div>loadmodule "uri.so"</div><div>loadmodule "domain.so"</div><div>loadmodule "dialog.so"</div><div>loadmodule "mediaproxy.so"</div><div>loadmodule "nat_traversal.so"</div><div>loadmodule "permissions.so"</div><div>loadmodule "alias_db.so"</div><div>loadmodule "avpops.so"</div><div>loadmodule "mi_xmlrpc.so"</div><div>loadmodule "dialplan.so"</div><div>loadmodule "pike.so"</div><div>loadmodule "pua.so"</div><div>loadmodule "pua_usrloc.so"</div><div><br></div></div><div>
<div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; font-size: medium; "><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; font-size: medium; "><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div>--&nbsp;</div><div>WBR, John Khvatov</div></div></span></div></span></div></div>
</div>
<br></body></html>