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

Eric Tamme notifications at github.com
Tue Jan 5 18:47:41 CET 2016


Running master commit 968a4e004ebf85687f864b885a1ad5dc6632f41a

I have 2 UDP clients registered, 1 WSS client registered.  Over time ~2 hours opensips fails to accept WSS handshakes and the logs show that it has run out of memory.

```
Jan  5 12:42:26 voipphreaker /usr/local/opensips/sbin/opensips[9887]: DBG:core:handle_io: We have received conn 0x7f88de89b080 with rw 1 on fd 31
Jan  5 12:42:26 voipphreaker /usr/local/opensips/sbin/opensips[9887]: DBG:core:io_watch_add: [TCP_worker] io_watch_add op (31 on 6) (0x879880, 31, 19, 0x7f88de89b080,1), fd_no=2/2086
Jan  5 12:42:26 voipphreaker /usr/local/opensips/sbin/opensips[9887]: DBG:proto_wss:tls_update_fd: New fd is 31
Jan  5 12:42:26 voipphreaker /usr/local/opensips/sbin/opensips[9887]: DBG:proto_wss:ws_server_handshake: Using the global ( per process ) buff
Jan  5 12:42:26 voipphreaker /usr/local/opensips/sbin/opensips[9887]: DBG:proto_wss:tls_update_fd: New fd is 31
Jan  5 12:42:26 voipphreaker /usr/local/opensips/sbin/opensips[9887]: WARNING:core:fm_malloc: Not enough free memory (189384), will attempt defragmentation
Jan  5 12:42:26 voipphreaker /usr/local/opensips/sbin/opensips[9887]: ERROR:core:fm_malloc: Defragmentation unsuccessful
Jan  5 12:42:26 voipphreaker /usr/local/opensips/sbin/opensips[9887]: ERROR:proto_wss:ws_server_handshake: No more mem for dynamic con request buffer
Jan  5 12:42:26 voipphreaker /usr/local/opensips/sbin/opensips[9887]: ERROR:proto_wss:wss_read_req: cannot complete WebSocket handshake
Jan  5 12:42:26 voipphreaker /usr/local/opensips/sbin/opensips[9887]: DBG:core:io_watch_del: [TCP_worker] io_watch_del op on index 0 31 (0x879880, 31, 0, 0x10,0x3) fd_no=3 called
Jan  5 12:42:26 voipphreaker /usr/local/opensips/sbin/opensips[9887]: DBG:core:tcpconn_release:  releasing con 0x7f88de89b080, state -2, fd=-1, id=30
Jan  5 12:42:26 voipphreaker /usr/local/opensips/sbin/opensips[9887]: DBG:core:tcpconn_release:  extra_data 0x7f88de899458
```

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


More information about the Devel mailing list