<html><head></head><body><div style="color:#000; background-color:#fff; font-family:Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;font-size:10px"><div id="yui_3_16_0_ym19_1_1505280545342_7094">Hello,</div><div id="yui_3_16_0_ym19_1_1505280545342_7094">I'm running opensips 2.1.5 within a RedHat 7 VM:</div><div id="yui_3_16_0_ym19_1_1505280545342_7094"><br></div><div id="yui_3_16_0_ym19_1_1505280545342_7094" dir="ltr">NOTICE:core:main: version: opensips 2.1.5 (x86_64/linux)<br></div><div id="yui_3_16_0_ym19_1_1505280545342_7094" dir="ltr">Red Hat Enterprise Linux Server release 7.3 (Maipo)<br></div><div id="yui_3_16_0_ym19_1_1505280545342_7094" dir="ltr"><br></div><div id="yui_3_16_0_ym19_1_1505280545342_7094" dir="ltr">The system is still in development so it only gets occasional SIP requests, however, despite the lack of traffic the OpenSIPS has been complaining that it has run out of memory. Even after a "killall opensips" and starting the program again. Here are the messages it's outputting:</div><div dir="ltr" id="yui_3_16_0_ym19_1_1505280545342_11099">Sep 12 22:06:53 [22490] ERROR:core:new_avp: no more shm mem</div><div dir="ltr" id="yui_3_16_0_ym19_1_1505280545342_11100">Sep 12 22:06:53 [22490] ERROR:core:add_avp: Failed to create new avp structure</div><div dir="ltr" id="yui_3_16_0_ym19_1_1505280545342_11101">Sep 12 22:06:53 [22490] ERROR:core:pv_set_avp: error - cannot add AVP</div><div dir="ltr" id="yui_3_16_0_ym19_1_1505280545342_11102">Sep 12 22:06:53 [22490] ERROR:core:do_assign: setting PV failed</div><div dir="ltr" id="yui_3_16_0_ym19_1_1505280545342_11103">Sep 12 22:06:53 [22490] ERROR:core:do_assign: error at /usr/local//etc/opensips/opensips.cfg:119</div><div dir="ltr" id="yui_3_16_0_ym19_1_1505280545342_11104">Sep 12 22:06:53 [22490] WARNING:core:fm_malloc: Not enough free memory, will attempt defragmentation</div><div dir="ltr" id="yui_3_16_0_ym19_1_1505280545342_11105"><br id="yui_3_16_0_ym19_1_1505280545342_11106"></div><div dir="ltr" id="yui_3_16_0_ym19_1_1505280545342_11105">Concurrent with that, here is the memory section from "top:"</div><div dir="ltr" id="yui_3_16_0_ym19_1_1505280545342_11105"><div dir="ltr" id="yui_3_16_0_ym19_1_1505280545342_11172">KiB Mem :  3880064 total,  1994460 free,   597692 used,  1287912 buff/cache</div><div dir="ltr" id="yui_3_16_0_ym19_1_1505280545342_11173">KiB Swap:  8388604 total,  8388604 free,        0 used.  2771860 avail Mem</div><div dir="ltr" id="yui_3_16_0_ym19_1_1505280545342_11173"><br></div><div dir="ltr" id="yui_3_16_0_ym19_1_1505280545342_11173">CPU usage is also at 0.</div><div dir="ltr" id="yui_3_16_0_ym19_1_1505280545342_11173"><br></div><div dir="ltr" id="yui_3_16_0_ym19_1_1505280545342_11173">It's harder to replicate but I do occasionally get "timer_ticker" errors from OpenSIPS when there are no con-current calls up on the device:</div><div dir="ltr" id="yui_3_16_0_ym19_1_1505280545342_11173"><span style="color: rgba(0, 0, 0, 0.87); font-family: "Roboto Slab", "Times New Roman", serif; font-size: 14px; font-variant-ligatures: none; white-space: pre-wrap; background-color: rgb(250, 250, 250);" id="yui_3_16_0_ym19_1_1505280545342_11219">Sep  7 15:54:32 [11076] WARNING:core:timer_ticker: timer task <blcore-expire> already scheduled for 63646530 ms (now 63727200 ms), it may overlap..</span><br></div><div dir="ltr" id="yui_3_16_0_ym19_1_1505280545342_11173"><span style="color: rgba(0, 0, 0, 0.87); font-family: "Roboto Slab", "Times New Roman", serif; font-size: 14px; font-variant-ligatures: none; white-space: pre-wrap; background-color: rgb(250, 250, 250);"><br></span></div><div dir="ltr" id="yui_3_16_0_ym19_1_1505280545342_11173"><span style="color: rgba(0, 0, 0, 0.87); font-family: "Roboto Slab", "Times New Roman", serif; font-size: 14px; font-variant-ligatures: none; white-space: pre-wrap; background-color: rgb(250, 250, 250);">There are a few things to note: Opensips itself is spawned by another process (a perl plackup server). Is it possible the process that spawns it is limiting it's memory?</span></div><div dir="ltr" id="yui_3_16_0_ym19_1_1505280545342_11173"><span style="color: rgba(0, 0, 0, 0.87); font-family: "Roboto Slab", "Times New Roman", serif; font-size: 14px; font-variant-ligatures: none; white-space: pre-wrap; background-color: rgb(250, 250, 250);"><br></span></div><div dir="ltr" id="yui_3_16_0_ym19_1_1505280545342_11173"><span style="color: rgba(0, 0, 0, 0.87); font-family: "Roboto Slab", "Times New Roman", serif; font-size: 14px; font-variant-ligatures: none; white-space: pre-wrap; background-color: rgb(250, 250, 250);" id="yui_3_16_0_ym19_1_1505280545342_13072">As an alternative do people normally create a service file for OpenSIPS on RHEL? I need to be able to restart OpenSIPS via a web interface so I can't manually start and stop it all of the time. The way I figured out was to have the webserver start it but potentially I could have the web-server make calls to systemd</span></div></div></div></body></html>