<html>
  <head>
    <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <p>Hello,</p>
    <p>it seems that the pkg is out of free space, not shm. You can
      check it with:</p>
    <p>kamcmd pkg.stats</p>
    <p>and look for the same pid that printed the log messages.</p>
    <p>To troubleshoot, it is good to print the pkg summary, see:</p>
    <p>  -
<a class="moz-txt-link-freetext" href="https://www.kamailio.org/docs/modules/stable/modules/corex.html#corex.rpc.pkg_summary">https://www.kamailio.org/docs/modules/stable/modules/corex.html#corex.rpc.pkg_summary</a></p>
    <p>Then get the log messages from syslog printed by the command and
      send them over here.</p>
    <p>Cheers,<br>
      Daniel<br>
    </p>
    <br>
    <div class="moz-cite-prefix">On 19/09/16 14:02, Phil Lavin wrote:<br>
    </div>
    <blockquote
cite="mid:VI1PR03MB184043BC224421523F5CB7A889F40@VI1PR03MB1840.eurprd03.prod.outlook.com"
      type="cite">
      <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
      <meta name="Generator" content="Microsoft Word 15 (filtered
        medium)">
      <style><!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;
        mso-fareast-language:EN-US;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:#0563C1;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:#954F72;
        text-decoration:underline;}
span.EmailStyle17
        {mso-style-type:personal-compose;
        font-family:"Calibri",sans-serif;
        color:windowtext;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-family:"Calibri",sans-serif;
        mso-fareast-language:EN-US;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:72.0pt 72.0pt 72.0pt 72.0pt;}
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">Hi all,<o:p></o:p></p>
        <p class="MsoNormal"><o:p> </o:p></p>
        <p class="MsoNormal">Kamailio stopped performing some functions
          earlier today, citing OOM errors. An excerpt from the log is
          below.<o:p></o:p></p>
        <p class="MsoNormal"><o:p> </o:p></p>
        <p class="MsoNormal">SHM usage, at the time, looked fine. Also
          see below for that output.<o:p></o:p></p>
        <p class="MsoNormal"><o:p> </o:p></p>
        <p class="MsoNormal">A restart of Kamailio resolved the issue.
          Is this SHM related or OS memory manager related?<o:p></o:p></p>
        <p class="MsoNormal"><o:p> </o:p></p>
        <p class="MsoNormal"><span style="font-family:"Courier
            New"">root@ua-proxy-01:~# kamctl stats shmem<o:p></o:p></span></p>
        <p class="MsoNormal"><span style="font-family:"Courier
            New"">shmem:fragments = 910<o:p></o:p></span></p>
        <p class="MsoNormal"><span style="font-family:"Courier
            New"">shmem:free_size = 104131224<o:p></o:p></span></p>
        <p class="MsoNormal"><span style="font-family:"Courier
            New"">shmem:max_used_size =  51590800<o:p></o:p></span></p>
        <p class="MsoNormal"><span style="font-family:"Courier
            New"">shmem:real_used_size = 30086504<o:p></o:p></span></p>
        <p class="MsoNormal"><span style="font-family:"Courier
            New"">shmem:total_size = 134217728<o:p></o:p></span></p>
        <p class="MsoNormal"><span style="font-family:"Courier
            New"">shmem:used_size =  19558800<o:p></o:p></span></p>
        <p class="MsoNormal"><span style="font-family:"Courier
            New""><o:p> </o:p></span></p>
        <p class="MsoNormal"><span style="font-family:"Courier
            New"">Sep 19 11:35:56 ua-proxy-01
            /sbin/kamailio[20218]: ERROR: <core>
            [data_lump.c:161]: insert_new_lump_before(): out of memory<o:p></o:p></span></p>
        <p class="MsoNormal"><span style="font-family:"Courier
            New"">Sep 19 11:40:10 ua-proxy-01
            /sbin/kamailio[20218]: ERROR: <core>
            [msg_translator.c:2390]: build_res_buf_from_sip_req(): out
            of memory; needs 423<o:p></o:p></span></p>
        <p class="MsoNormal"><span style="font-family:"Courier
            New"">Sep 19 11:40:16 ua-proxy-01
            /sbin/kamailio[20218]: ERROR: <core>
            [msg_translator.c:2390]: build_res_buf_from_sip_req(): out
            of memory; needs 453<o:p></o:p></span></p>
        <p class="MsoNormal"><span style="font-family:"Courier
            New"">Sep 19 11:42:46 ua-proxy-01
            /sbin/kamailio[20218]: ERROR: <core>
            [data_lump.c:136]: insert_new_lump_after(): out of memory<o:p></o:p></span></p>
        <p class="MsoNormal"><span style="font-family:"Courier
            New"">Sep 19 11:42:46 ua-proxy-01
            /sbin/kamailio[20218]: ERROR: <core> [ut.c:163]:
            as_asciiz(): Out of memory<o:p></o:p></span></p>
        <p class="MsoNormal"><span style="font-family:"Courier
            New"">Sep 19 11:42:57 ua-proxy-01
            /sbin/kamailio[20218]: ERROR: <core> [ut.c:163]:
            as_asciiz(): Out of memory<o:p></o:p></span></p>
        <p class="MsoNormal"><span style="font-family:"Courier
            New"">Sep 19 11:43:12 ua-proxy-01
            /sbin/kamailio[20218]: ERROR: <core>
            [data_lump.c:361]: anchor_lump(): out of memory<o:p></o:p></span></p>
        <p class="MsoNormal"><span style="font-family:"Courier
            New"">Sep 19 11:43:12 ua-proxy-01
            /sbin/kamailio[20218]: ERROR: <core>
            [data_lump.c:361]: anchor_lump(): out of memory<o:p></o:p></span></p>
        <p class="MsoNormal"><span style="font-family:"Courier
            New"">Sep 19 11:43:12 ua-proxy-01
            /sbin/kamailio[20218]: ERROR: <core>
            [data_lump.c:306]: del_lump(): out of memory<o:p></o:p></span></p>
        <p class="MsoNormal"><span style="font-family:"Courier
            New"">Sep 19 11:43:12 ua-proxy-01
            /sbin/kamailio[20218]: ERROR: <core>
            [data_lump.c:306]: del_lump(): out of memory<o:p></o:p></span></p>
        <p class="MsoNormal"><span style="font-family:"Courier
            New"">Sep 19 11:43:12 ua-proxy-01
            /sbin/kamailio[20218]: ERROR: <core>
            [msg_translator.c:326]: received_builder(): out of memory<o:p></o:p></span></p>
        <p class="MsoNormal"><span style="font-family:"Courier
            New"">Sep 19 11:43:12 ua-proxy-01
            /sbin/kamailio[20218]: ERROR: <core>
            [msg_translator.c:326]: received_builder(): out of memory<o:p></o:p></span></p>
        <p class="MsoNormal"><span style="font-family:"Courier
            New"">Sep 19 11:43:12 ua-proxy-01
            /sbin/kamailio[20218]: ERROR: <core>
            [msg_translator.c:326]: received_builder(): out of memory<o:p></o:p></span></p>
        <p class="MsoNormal"><span style="font-family:"Courier
            New"">Sep 19 11:43:16 ua-proxy-01
            /sbin/kamailio[20218]: ERROR: <core>
            [data_lump.c:136]: insert_new_lump_after(): out of memory<o:p></o:p></span></p>
        <p class="MsoNormal"><span style="font-family:"Courier
            New"">Sep 19 11:43:16 ua-proxy-01
            /sbin/kamailio[20218]: ERROR: <core> [ut.c:163]:
            as_asciiz(): Out of memory<o:p></o:p></span></p>
        <p class="MsoNormal"><span style="font-family:"Courier
            New"">Sep 19 11:44:18 ua-proxy-01
            /sbin/kamailio[20218]: ERROR: <core>
            [data_lump.c:161]: insert_new_lump_before(): out of memory<o:p></o:p></span></p>
        <p class="MsoNormal"><span style="font-family:"Courier
            New"">Sep 19 11:45:07 ua-proxy-01
            /sbin/kamailio[20218]: ERROR: <core> [ut.c:163]:
            as_asciiz(): Out of memory<o:p></o:p></span></p>
        <p class="MsoNormal"><span style="font-family:"Courier
            New"">Sep 19 11:45:30 ua-proxy-01
            /sbin/kamailio[20218]: ERROR: acc [acc_extra.c:267]:
            extra2strar(): extra2strar: out of memory.<o:p></o:p></span></p>
        <p class="MsoNormal"><span style="font-family:"Courier
            New"">Sep 19 11:45:43 ua-proxy-01
            /sbin/kamailio[20218]: ERROR: <core>
            [data_lump.c:186]: insert_subst_lump_after(): out of memory<o:p></o:p></span></p>
        <p class="MsoNormal"><span style="font-family:"Courier
            New"">Sep 19 11:45:52 ua-proxy-01
            /sbin/kamailio[20218]: ERROR: <core>
            [data_lump.c:161]: insert_new_lump_before(): out of memory<o:p></o:p></span></p>
        <p class="MsoNormal"><span style="font-family:"Courier
            New""><o:p> </o:p></span></p>
        <p class="MsoNormal" style="line-height:13.2pt;background:white"><span
            style="font-family:"Courier
            New";color:black;mso-fareast-language:EN-GB"><o:p></o:p></span></p>
      </div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:sr-users@lists.sip-router.org">sr-users@lists.sip-router.org</a>
<a class="moz-txt-link-freetext" href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users</a>
</pre>
    </blockquote>
    <br>
    <pre class="moz-signature" cols="72">-- 
Daniel-Constantin Mierla
<a class="moz-txt-link-freetext" href="http://twitter.com/#!/miconda">http://twitter.com/#!/miconda</a> - <a class="moz-txt-link-freetext" href="http://www.linkedin.com/in/miconda">http://www.linkedin.com/in/miconda</a>
Kamailio Advanced Training, Berlin, Oct 24-26, 2016 - <a class="moz-txt-link-freetext" href="http://www.asipto.com">http://www.asipto.com</a></pre>
  </body>
</html>