<p>Hey Raz,</p>

<p>I cought opensips when it ran out of memory again and sent SIGUSR1 to all the PID's to get them to dump memory.</p>

<p>Here is the log before the memory dump, showing the out of memory</p>

<pre><code>Jan  8 13:52:57 voipphreaker /usr/local/opensips/sbin/opensips[12073]: INFO:core:probe_max_sock_buff: using snd buffer of 509 kb
Jan  8 13:52:57 voipphreaker /usr/local/opensips/sbin/opensips[12073]: INFO:core:init_sock_keepalive: TCP keepalive enabled on socket 41
Jan  8 13:52:59 voipphreaker /usr/local/opensips/sbin/opensips[12065]: WARNING:core:fm_malloc: Not enough free memory (106904), will attempt defragmentation
Jan  8 13:52:59 voipphreaker /usr/local/opensips/sbin/opensips[12065]: ERROR:core:fm_malloc: Defragmentation unsuccessful
Jan  8 13:52:59 voipphreaker /usr/local/opensips/sbin/opensips[12065]: ERROR:proto_wss:ws_server_handshake: No more mem for dynamic con request buffer
Jan  8 13:52:59 voipphreaker /usr/local/opensips/sbin/opensips[12065]: ERROR:proto_wss:wss_read_req: cannot complete WebSocket handshake
</code></pre>

<p>and here is the memory dump </p>

<p><a href="https://gist.github.com/etamme/050e335725a19c0d9e60">https://gist.github.com/etamme/050e335725a19c0d9e60</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-170114344">view it on GitHub</a>.<img alt="" height="1" src="https://github.com/notifications/beacon/AFOciU294HAkSdIkSbQZ34hSAGfRldpvks5pYBMRgaJpZM4G_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-170114344"></link>
  <meta itemprop="name" content="View Issue"></meta>
</div>
<meta itemprop="description" content="View this Issue on GitHub"></meta>
</div>