[OpenSIPS-Devel] [opensips] Memory leak/out of memory when using proto_wss (#743)

Eric Tamme notifications at github.com
Fri Jan 8 21:26:57 CET 2016


Hey Raz,

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

Here is the log before the memory dump, showing the out of memory

```
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
```

and here is the memory dump 

https://gist.github.com/etamme/050e335725a19c0d9e60

---
Reply to this email directly or view it on GitHub:
https://github.com/OpenSIPS/opensips/issues/743#issuecomment-170114344
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/devel/attachments/20160108/205d8a65/attachment-0001.htm>


More information about the Devel mailing list