<div dir="ltr"><br><div class="gmail_quote">On Fri, Sep 26, 2008 at 6:24 PM, mayamatakeshi <span dir="ltr"><<a href="mailto:mayamatakeshi@gmail.com">mayamatakeshi@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div dir="ltr"><br><div class="gmail_quote"><div class="Ih2E3d">On Tue, Sep 23, 2008 at 6:00 PM, Daniel-Constantin Mierla <span dir="ltr"><<a href="mailto:miconda@gmail.com" target="_blank">miconda@gmail.com</a>></span> wrote:<br>
</div><div class="Ih2E3d"><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hello,<div><br>
<br>
On 09/23/08 10:31, mayamatakeshi wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hello,<br>
we have openser 1.3.3 running in production (current rev.: 4943).<br>
For 3 times in 50 days we had to restart openser to correct pkg memory problem.<br>
</blockquote></div>
openser 1.3.3 was released 3 weeks ago, so I guess you were running previous version before, but it happened again since you upgraded to 1.3.3, right?<div><br>
<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
After some time logging messages like this:<br>
/openser.log:Aug 19 10:39:18 ipx022 /usr/local/sbin/openser[16991]: ERROR:core:new_credentials: no pkg memory left,<br>
openser will eventually run out of pkg memory and refuse all subsequent requests.<br>
<br>
We are trying to recreate this in our lab so that we can follow memory troubleshooting instructions at <a href="http://kamailio.net/dokuwiki/doku.php/troubleshooting:memory" target="_blank">http://kamailio.net/dokuwiki/doku.php/troubleshooting:memory</a>, but so far we were unable to do it even when generating millions of calls and registration transactions (we are using SIPp to generate normal call flows and even abnormal call flows detected when reading openser.log, like 'invalid cseq for aor', malformed SIP messages etc).<br>
</blockquote></div>
We can spot memory leaks even the "out of memory" message is not printed. Just archive the logs (the most important is the shut down time) and made them available for download so they can be investigated.<br>
<br>
There could be two reasons:<br>
- there is memory leak but happens in some cases that you don't reproduce in lab, but they are in the production environment<br>
- you get memory fragmentation<br>
<br>
Let's see first the debug messages...</blockquote></div><div><br>Hello,<br>here are the link for openser.log and cfg files:<br><a href="http://www.yousendit.com/download/bVlEV0o4R3NoeWJIRGc9PQ" target="_blank">http://www.yousendit.com/download/bVlEV0o4R3NoeWJIRGc9PQ</a><br>
<br>After compilation with debug flags for memory manager, I left openser running in production for 24 hours. Then, I moved all traffic to another host and waited for more than 30 minutes before stopping openser.<br>In the openser.cfg, I set debug=2. If you need, I can run it again with a higher value (but I hope it doesn't have to be too high, due to overhead concerns).</div>
</div></div></blockquote><div> </div><div>Sorry, I forgot to tell one thing: the last revision that showed this problem was 4809, so we reverted back to that revision before performing the above.<br> </div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div dir="ltr"><div class="gmail_quote"><div> <br>regards,<br>takeshi<br></div><div class="Ih2E3d"><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<br><div>
<br>
<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
And this is much more than in our production environment, with just 600 subscribers and about 2000 calls a day.<br>
<br>
The frequency the problem happens is increasing with the number of subscribers, so we are performing periodic restart of openser (actually, what we do is to switch over to the standby server). We already recompiled openser with pkg memory pool size set to 4MB so that this will not have to be done frequently.<br>
<br>
Since we cannot recreate this in our lab, we suspect there is a situation happening in production that might not be having been properly handled by openser.cfg. So my question is: would it be possible to an overlooked detail in openser.cfg to cause pkg memory problem?<br>
<br>
<br>
In case someone could take a look at it, here's our cfg file:<br>
<br>
</blockquote></div>
[...]<br><font color="#888888">
<br>
-- <br>
Daniel-Constantin Mierla<br>
<a href="http://www.asipto.com" target="_blank">http://www.asipto.com</a><br>
<br>
</font></blockquote></div></div><br></div>
</blockquote></div><br></div>