<html>
<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<p>Please start OpenSIPS using <b>memdump=1</b> option at the
beginning of your script. When the memory errors appear generate a
SIGUSR1 signal to all opensips processes</p>
<p><b>killall -SIGUSR1 opensips</b></p>
<p>and then please sent me the memory report you should see in your
logs. For more information check this tutorial[0], last section(<b>At
runtime</b>). You can either send the results here on the list
or privately, however you prefer.<br>
</p>
<p><br>
</p>
<p>[0]
<a class="moz-txt-link-freetext" href="http://www.opensips.org/Documentation/TroubleShooting-OutOfMem">http://www.opensips.org/Documentation/TroubleShooting-OutOfMem</a><br>
</p>
<pre class="moz-signature" cols="72">Regards,
Ionut Ionita
OpenSIPS Developer</pre>
<div class="moz-cite-prefix">On 02/07/2017 12:39 PM, Marco Hierl
wrote:<br>
</div>
<blockquote
cite="mid:5C2E161B18A0C1489E0674E6FC53663B3B21D4642D@EXCHANGE03.bln.nexnet.de"
type="cite">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="Generator" content="Microsoft Word 14 (filtered
medium)">
<style><!--
/* Font Definitions */
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
{font-family:Verdana;
panose-1:2 11 6 4 3 5 4 4 2 4;}
@font-face
{font-family:Tahoma;
panose-1:2 11 6 4 3 5 4 4 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0cm;
margin-bottom:.0001pt;
font-size:10.0pt;
font-family:"Verdana","sans-serif";
mso-fareast-language:EN-US;}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:blue;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{mso-style-priority:99;
color:purple;
text-decoration:underline;}
p.MsoAcetate, li.MsoAcetate, div.MsoAcetate
{mso-style-priority:99;
mso-style-link:"Sprechblasentext Zchn";
margin:0cm;
margin-bottom:.0001pt;
font-size:8.0pt;
font-family:"Tahoma","sans-serif";
mso-fareast-language:EN-US;}
span.SprechblasentextZchn
{mso-style-name:"Sprechblasentext Zchn";
mso-style-priority:99;
mso-style-link:Sprechblasentext;
font-family:"Tahoma","sans-serif";}
span.E-MailFormatvorlage19
{mso-style-type:personal-compose;
font-family:"Verdana","sans-serif";
color:windowtext;}
.MsoChpDefault
{mso-style-type:export-only;
font-size:10.0pt;
font-family:"Verdana","sans-serif";
mso-fareast-language:EN-US;}
@page WordSection1
{size:612.0pt 792.0pt;
margin:70.85pt 70.85pt 2.0cm 70.85pt;}
div.WordSection1
{page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
<div class="WordSection1">
<p class="MsoNormal"><span style="font-size:11.0pt" lang="EN-GB">Dear
all,<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt" lang="EN-GB"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt" lang="EN-GB">there
seems to be a limit of using $acc_extra() variables.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt" lang="EN-GB"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt" lang="EN-GB">I’m
using the ACC module to log accounting data into a file and
it’s working fine even with logging of extra_fields. <o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt" lang="EN-GB">But
when I come to the point that I used $acc_extra variables
more often (around 45 times) in the config file, I get “not
enough free pkg memory” during the OpenSIPS start.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt" lang="EN-GB"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt" lang="EN-GB">Ok,
so I set start option –M from 8 to 128… but the fault did
not change.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt" lang="EN-GB"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt" lang="EN-GB"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt" lang="EN-GB">Maybe
this part of my config file can explain it better. It is
running fine as long as I don’t remove one of the “<b>#</b>”-signs
below:<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt" lang="EN-GB"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt" lang="EN-GB">modparam("acc",
"extra_fields", "log: switch; internal_ci; related_inc_cdrs;
time; us; si; inroute; outroute; bno_in; bno_out; snr; ziel;
tu; anum; fu; diverting_no; cpc; privacy; ua; received;
p-germany-tariff; switch_dur; init; eos")<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt" lang="EN-GB"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt" lang="EN-GB">route{
<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt" lang="EN-GB">…<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt" lang="EN-GB">
do_accounting("log", "missed|failed", "");<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt" lang="EN-GB"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt" lang="EN-GB">
$acc_extra(switch)="sitename"; ..(and couple of
assignments/po’s more) …<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt" lang="EN-GB">
$acc_extra(si)="si”;<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt" lang="EN-GB">
$acc_extra(ua)="ua”;<o:p></o:p></span></p>
<p class="MsoNormal"
style="margin-left:35.4pt;text-indent:35.4pt"><span
style="font-size:11.0pt" lang="EN-GB">xlog("L_DBG","+++
$acc_extra(ua)");<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt" lang="EN-GB"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt" lang="EN-GB">
<b>#</b>$acc_extra(ua)="ua”;<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt" lang="EN-GB">
<b>#</b>$acc_extra(received)="yes";<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt" lang="EN-GB">
<b>#</b>xlog("L_DBG","+++ $acc_extra(ua)");<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt" lang="EN-GB">
<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt" lang="EN-GB">…<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt" lang="EN-GB">}<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt" lang="EN-GB"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt" lang="EN-GB">If
I remove any of the “#” above I get:<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt" lang="EN-GB"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt" lang="EN-GB">Feb
7 10:57:25 sbc-dtag-bln opensips[3282]: Not starting
opensips: invalid configuration file!<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt">Feb 7
10:57:25 sbc-dtag-bln opensips[3282]: -e<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt" lang="EN-GB">Feb
7 10:57:25 sbc-dtag-bln opensips[3282]: Feb 7 10:57:25
[3290] <a class="moz-txt-link-freetext" href="INFO:core:tr_parse_re">INFO:core:tr_parse_re</a>: preparing to parse param<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt" lang="EN-GB">Feb
7 10:57:25 sbc-dtag-bln opensips[3282]: Feb 7 10:57:25
[3290] <a class="moz-txt-link-freetext" href="INFO:cfgutils:shvar_init_locks">INFO:cfgutils:shvar_init_locks</a>: locks array size 16<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt" lang="EN-GB">Feb
7 10:57:25 sbc-dtag-bln opensips[3282]: Feb 7 10:57:25
[3290] <a class="moz-txt-link-freetext" href="INFO:core:tr_parse_re">INFO:core:tr_parse_re</a>: preparing to parse param<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt" lang="EN-GB">Feb
7 10:57:25 sbc-dtag-bln opensips[3282]: Feb 7 10:57:25
[3290] <a class="moz-txt-link-freetext" href="INFO:core:tr_parse_re">INFO:core:tr_parse_re</a>: preparing to parse param<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt" lang="EN-GB">Feb
7 10:57:25 sbc-dtag-bln opensips[3282]: Feb 7 10:57:25
[3290] <a class="moz-txt-link-freetext" href="INFO:core:tr_parse_re">INFO:core:tr_parse_re</a>: preparing to parse param<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt" lang="EN-GB">Feb
7 10:57:25 sbc-dtag-bln opensips[3282]: Feb 7 10:57:25
[3290] <a class="moz-txt-link-freetext" href="INFO:core:tr_parse_re">INFO:core:tr_parse_re</a>: preparing to parse param<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt" lang="EN-GB">Feb
7 10:57:25 sbc-dtag-bln opensips[3282]: Feb 7 10:57:25
[3290] <a class="moz-txt-link-freetext" href="INFO:core:fix_poll_method">INFO:core:fix_poll_method</a>: using epoll_lt as the IO
watch method (auto detected)<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt" lang="EN-GB">Feb
7 10:57:25 sbc-dtag-bln opensips[3282]: Feb 7 10:57:25
[3290] ERROR:core:qm_malloc: not enough free pkg memory (64
bytes left), please increase the "-M" command line
parameter!<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt" lang="EN-GB">Feb
7 10:57:25 sbc-dtag-bln opensips[3282]: Feb 7 10:57:25
[3290] ERROR:core:new_sock_info: pkg memory allocation error<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt" lang="EN-GB">Feb
7 10:57:25 sbc-dtag-bln opensips[3282]: Feb 7 10:57:25
[3290] ERROR:core:new_sock2list: new_sock_info failed<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt" lang="EN-GB">Feb
7 10:57:25 sbc-dtag-bln opensips[3282]: Feb 7 10:57:25
[3290] ERROR:core:add_interfaces: new_sock2list failed<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt" lang="EN-GB">Feb
7 10:57:25 sbc-dtag-bln opensips[3282]: Feb 7 10:57:25
[3290] ERROR:core:qm_malloc: not enough free pkg memory (64
bytes left), please increase the "-M" command line
parameter!<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt" lang="EN-GB">Feb
7 10:57:25 sbc-dtag-bln opensips[3282]: Feb 7 10:57:25
[3290] ERROR:core:new_sock_info: pkg memory allocation error<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt" lang="EN-GB">Feb
7 10:57:25 sbc-dtag-bln opensips[3282]: Feb 7 10:57:25
[3290] ERROR:core:new_sock2list: new_sock_info failed<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt" lang="EN-GB">Feb
7 10:57:25 sbc-dtag-bln opensips[3282]: Feb 7 10:57:25
[3290] ERROR:core:add_interfaces: new_sock2list failed<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt" lang="EN-GB">Feb
7 10:57:25 sbc-dtag-bln opensips[3282]: Feb 7 10:57:25
[3290] ERROR:core:fix_socket_list: could not resolve eth0<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt" lang="EN-GB">Feb
7 10:57:25 sbc-dtag-bln opensips[3282]: Feb 7 10:57:25
[3290] ERROR:core:fix_all_socket_lists: fix_socket_list for
1 failed<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt" lang="EN-GB">Feb
7 10:57:25 sbc-dtag-bln opensips[3282]: Feb 7 10:57:25
[3290] ERROR:core:main: failed to initialize list addresses<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt" lang="EN-GB">Feb
7 10:57:25 sbc-dtag-bln opensips[3282]: Feb 7 10:57:25
[3290] NOTICE:core:main: Exiting....<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt" lang="EN-GB"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt" lang="EN-GB">This
is for OpenSIPS 2.2 & 2.3, running on <o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt">Linux
3.16.0-4-amd64 #1 SMP Debian 3.16.36-1+deb8u2 (2016-10-19)
x86_64 GNU/Linux<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt" lang="EN-GB">Thanks
for your help<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt" lang="EN-GB">
Marco<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt" lang="EN-GB"><o:p> </o:p></span></p>
</div>
<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>