<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    Hello,<br>
    <br>
    you can see the available pkg via sercmd, sending command pkg.stats
    (match the entry for the pid printing the error). If there is no
    free memory, then might be a leak.<br>
    <br>
    You can attach with gdb to the pid printing these errors and walk to
    pkg, you see the commands for gdb at:<br>
    <br>
    <meta http-equiv="content-type" content="text/html;
      charset=ISO-8859-1">
    <a class="moz-txt-link-freetext" href="http://www.asipto.com/pub/kamailio-devel-guide/#c04troubleshooting">http://www.asipto.com/pub/kamailio-devel-guide/#c04troubleshooting</a><br>
    <br>
    See if you have lot of allocated chunks from same place in source
    code (ignore those at the beginning, mainly related to cfg parsing)
    and send the details here.<br>
    <br>
    Cheers,<br>
    Daniel<br>
    <br>
    On 12/21/11 10:44 AM, laura testi wrote:
    <blockquote
cite="mid:CAHFjjJMGc9c9StnEy2wTKGV1PK3Afh8-=TP7N5n2PhgsewUtgg@mail.gmail.com"
      type="cite">
      <pre wrap="">Hi,
we are using the PUA_XMPP and PUA modules from the master branch. When
the modules are started, everything are ok, the presence events from
XMPP are sent to kamailio SIP servers (PUBLISH/SUBSCRIBE) and cached
in the hash. But when there are several thousands records in the hash
tabel, the update_pua function called in the hashT_clean gives a lot
of "No memory left" error when the hashT_clean is waked up from the
time:

ERROR: pua [send_subscribe.c]: No memory left
ERROR: pua [pua.c]: while building tm dlg_t structure

The failed call is:
        td = (dlg_t*)pkg_malloc(size);
        if(td == NULL)
        {
                LM_ERR("No memory left\n");
                return NULL;
        }

in dlg_t* pua_build_dlg_t(ua_pres_t* presentity) function in
send_subscribe.c. The size is about 400 and something... It's
strange.....

Is it the memory leak in the PUA module?



I also try to increase the pkg_memory from 4MB default to 16MB, but it
doesn't help.


Any Idea?

Thanks in advanced

Laura

_______________________________________________
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://www.asipto.com">http://www.asipto.com</a>
<a class="moz-txt-link-freetext" href="http://linkedin.com/in/miconda">http://linkedin.com/in/miconda</a> -- <a class="moz-txt-link-freetext" href="http://twitter.com/miconda">http://twitter.com/miconda</a></pre>
  </body>
</html>