<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<div class="moz-cite-prefix"><tt>Hi Miha,<br>
<br>
Your problem is related to the PKG memory (memory which is
private per process) and it is not affected by the load on
OpenSIPS (as it is used only for storing only data related to
the processing of the current message).<br>
<br>
You should try to chart it (use OpenSIPS CP) and see if the
value of the used pkg (note this is per process) is continuously
increasing - if so, it is a leak and I will instruct you
further.<br>
<br>
Regards,<br>
</tt>
<pre class="moz-signature" cols="72">Bogdan-Andrei Iancu
OpenSIPS Founder and Developer
<a class="moz-txt-link-freetext" href="http://www.opensips-solutions.com">http://www.opensips-solutions.com</a></pre>
On 28.02.2014 08:49, Miha wrote:<br>
</div>
<blockquote cite="mid:5310316E.7030909@softnet.si" type="cite">
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
HI Liviu,<br>
<br>
just one thing. On this opensips server is about 15k registered
users. Opensips is used for registrations, radiusd accouting,
load_balancing,...<br>
<br>
Will this be enought?<br>
<br>
How can I know how much private and how much shared memory should
I use?<br>
<br>
tnx!<br>
<br>
miha<br>
<br>
<div class="moz-cite-prefix">Dne 2/27/2014 2:29 PM, piše Liviu
Chircu:<br>
</div>
<blockquote cite="mid:530F3DD2.1060509@opensips.org" type="cite">
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
<div class="moz-cite-prefix">Hi Miha,<br>
<br>
You can run <i>opensips -h</i> in order to get a list of
useful startup options. You're looking for:<br>
<br>
<b>-M</b> option - controls the private memory for each
process (or pkg). Default is 2MB. Seems it is not enough in
your case.<br>
<b>-m</b> option - controls the shared memory between all
processes (or shm). Default is 32MB. You should be fine with
512MB of shared memory.<br>
<br>
You should try increasing the pkg mem with <b>-M 32</b>
first, and see if the problem persists.<br>
<br>
Best regards,<br>
<pre class="moz-signature" cols="72">Liviu Chircu
OpenSIPS Developer
<a moz-do-not-send="true" class="moz-txt-link-freetext" href="http://www.opensips-solutions.com">http://www.opensips-solutions.com</a></pre>
On 02/27/2014 03:12 PM, Miha wrote:<br>
</div>
<blockquote cite="mid:530F39C5.1020704@softnet.si" type="cite">HI,
<br>
<br>
I went back looking for logs. This is what I have found: <br>
<br>
Which memory is too low? I can see that only 4% of system
memory is used. Opensips is started with 512 <br>
<br>
Feb 27 07:43:47 sip2 /usr/sbin/opensips[30332]:
WARNING:core:fm_malloc: Not enough free memory, will atempt
defragmenation <br>
Feb 27 07:43:47 sip2 /usr/sbin/opensips[30330]:
ERROR:core:build_res_buf_from_sip_req: out of pkg memory ;
needs 549 <br>
Feb 27 07:43:47 sip2 /usr/sbin/opensips[30330]:
ERROR:sl:sl_send_reply_helper: response building failed <br>
Feb 27 07:43:47 sip2 /usr/sbin/opensips[30330]:
ERROR:signaling:sig_send_reply_mod: failed to send reply with
sl module <br>
Feb 27 07:43:47 sip2 /usr/sbin/opensips[30330]:
ERROR:auth:challenge: failed to send the response <br>
Feb 27 07:43:47 sip2 /usr/sbin/opensips[30332]:
ERROR:core:build_res_buf_from_sip_req: out of pkg memory ;
needs 547 <br>
Feb 27 07:43:47 sip2 /usr/sbin/opensips[30332]:
ERROR:sl:sl_send_reply_helper: response building failed <br>
Feb 27 07:43:47 sip2 /usr/sbin/opensips[30332]:
ERROR:signaling:sig_send_reply_mod: failed to send reply with
sl module <br>
Feb 27 07:43:47 sip2 /usr/sbin/opensips[30332]:
ERROR:auth:challenge: failed to send the response <br>
<br>
Feb 27 07:43:46 sip2 /usr/sbin/opensips[30332]:
WARNING:core:fm_malloc: Not enough free memory, will atempt
defragmenation <br>
Feb 27 07:43:46 sip2 /usr/sbin/opensips[30332]:
ERROR:core:new_credentials: no pkg memory left <br>
Feb 27 07:43:46 sip2 /usr/sbin/opensips[30332]:
ERROR:core:parse_credentials: failed to create new credentials
<br>
Feb 27 07:43:46 sip2 /usr/sbin/opensips[30332]:
ERROR:auth:find_credentials: failed to parse credentials <br>
Feb 27 07:43:46 sip2 /usr/sbin/opensips[30332]:
ERROR:auth:pre_auth: failed to find credentials <br>
Feb 27 07:43:46 sip2 /usr/sbin/opensips[30332]:
WARNING:core:fm_malloc: Not enough free memory, will atempt
defragmenation <br>
Feb 27 07:43:46 sip2 /usr/sbin/opensips[30332]:
ERROR:core:build_res_buf_from_sip_req: out of pkg memory ;
needs 403 <br>
Feb 27 07:43:46 sip2 /usr/sbin/opensips[30332]:
ERROR:sl:sl_send_reply_helper: response building failed <br>
Feb 27 07:43:46 sip2 /usr/sbin/opensips[30332]:
ERROR:signaling:sig_send_reply_mod: failed to send reply with
sl module <br>
Feb 27 07:43:46 sip2 /usr/sbin/opensips[30332]:
ERROR:auth:pre_auth: failed to send 400 reply <br>
Feb 27 07:43:46 sip2 /usr/sbin/opensips[30330]: SCRIPT: stored
password is rR62Tsm <br>
Feb 27 07:43:46 sip2 /usr/sbin/opensips[30330]:
WARNING:core:fm_malloc: Not enough free memory, will atempt
defragmenation <br>
Feb 27 07:43:46 sip2 /usr/sbin/opensips[30330]:
ERROR:core:parse_headers: pkg memory allocation failed <br>
Feb 27 07:43:46 sip2 /usr/sbin/opensips[30330]:
ERROR:rr:find_first_route: failed to parse headers <br>
Feb 27 07:43:46 sip2 /usr/sbin/opensips[30330]:
WARNING:core:fm_malloc: Not enough free memory, will atempt
defragmenation <br>
Feb 27 07:43:46 sip2 /usr/sbin/opensips[30330]:
ERROR:core:anchor_lump: out of pkg memory <br>
Feb 27 07:43:46 sip2 /usr/sbin/opensips[30330]:
WARNING:core:fm_malloc: Not enough free memory, will atempt
defragmenation <br>
Feb 27 07:43:46 sip2 /usr/sbin/opensips[30330]:
ERROR:core:anchor_lump: out of pkg memory <br>
Feb 27 07:43:46 sip2 /usr/sbin/opensips[30330]:
ERROR:rr:record_route: failed to create an anchor <br>
Feb 27 07:43:46 sip2 /usr/sbin/opensips[30330]:
WARNING:core:fm_malloc: Not enough free memory, will atempt
defragmenation <br>
Feb 27 07:43:46 sip2 /usr/sbin/opensips[30330]:
ERROR:core:parse_headers: pkg memory allocation failed <br>
Feb 27 07:43:46 sip2 /usr/sbin/opensips[30330]:
ERROR:core:build_res_buf_from_sip_req: parse_headers failed <br>
Feb 27 07:43:46 sip2 /usr/sbin/opensips[30330]:
ERROR:sl:sl_send_reply_helper: response building failed <br>
<br>
thx! <br>
<br>
miha <br>
Dne 2/27/2014 8:11 AM, piše Miha: <br>
<blockquote type="cite">Hi, <br>
<br>
strange thig happend to me today. Opensips did not replay to
invites/registrations... <br>
<br>
After opensips (service) restart all loogs good. When this
was happening load was 0, so this was not an issue. <br>
<br>
Could this be causing domain setup. <br>
<br>
I have dns srv record sip.xxxxx.net which points to two
domain's (geo redundency). Than I have A record which point
to the same domain sip.xxxxx.net (dns srv domain). <br>
All was lookig goog, last week we enter this A record which
is the same as DNS SRV record. Could be this a problem? <br>
<br>
tnx! <br>
<br>
Opensips verison from repo (using centos, TLS is not used) :
<br>
<br>
OpenSIPS (1.10.0beta-tls (x86_64/linux)) <br>
<br>
<br>
_______________________________________________ <br>
Users mailing list <br>
<a moz-do-not-send="true" class="moz-txt-link-abbreviated"
href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a>
<br>
<a moz-do-not-send="true" class="moz-txt-link-freetext"
href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a>
<br>
<br>
</blockquote>
<br>
<br>
_______________________________________________ <br>
Users mailing list <br>
<a moz-do-not-send="true" class="moz-txt-link-abbreviated"
href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a>
<br>
<a moz-do-not-send="true" class="moz-txt-link-freetext"
href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a>
<br>
</blockquote>
<br>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
Users mailing list
<a moz-do-not-send="true" class="moz-txt-link-abbreviated" href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a>
<a moz-do-not-send="true" class="moz-txt-link-freetext" href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a>
</pre>
</blockquote>
<br>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
Users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a>
<a class="moz-txt-link-freetext" href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a>
</pre>
</blockquote>
<br>
</body>
</html>