<p>I recompiled with -DBG_MALLOC as suggested by liviu.</p>

<p>I started the proxy, opened a few tabs to register webrtc clients over wss, closed the tabs and repeated the process till the proxy ran out of memory.  I then sent sigusr1 signals to all the pids and got the following log output.</p>

<p><a href="https://gist.github.com/etamme/d1d96c08ea68f9873e40">https://gist.github.com/etamme/d1d96c08ea68f9873e40</a></p>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">&mdash;<br>Reply to this email directly or <a href="https://github.com/OpenSIPS/opensips/issues/743#issuecomment-170595551">view it on GitHub</a>.<img alt="" height="1" src="https://github.com/notifications/beacon/AFOcieHEs_KeK30mfaHMpoACOcjZE1AOks5pY8h4gaJpZM4G_AQe.gif" width="1" /></p>
<div itemscope itemtype="http://schema.org/EmailMessage">
<div itemprop="action" itemscope itemtype="http://schema.org/ViewAction">
  <link itemprop="url" href="https://github.com/OpenSIPS/opensips/issues/743#issuecomment-170595551"></link>
  <meta itemprop="name" content="View Issue"></meta>
</div>
<meta itemprop="description" content="View this Issue on GitHub"></meta>
</div>