[SR-Users] websocket:ws_current_connections vs. kamctl fifo ws.dump

Dunkley, Peter peter.dunkley at acision.com
Thu Sep 11 21:46:38 CEST 2014

websocket:ws_current_connections says how many WebSocket connections are currently open.  It is perfectly possible for Kamailio to be doing SIP over both TCP and WebSockets, so counting the number of TCP connections may not tell you how many WebSocket connections are in use as the figure can include both SIP over WebSockets (each WebSocket connection has a TCP connection) and SIP over TCP.  A WebSocket connection uses more memory than a TCP connection (additional data structures stored for each connection), so it is useful to be able to know exactly how many WebSocket connections are in use.

ws.dump prints out the details of the top 50 WebSocket connections (in the internal linked list) including useful information like last used time.  This is useful for developers during testing, and is not really for anyone just administering the system.


Peter Dunkley
Technical Director




+44 1189 308890


+44 7595 891824


peter.dunkley at acision.com<mailto:peter.dunkley at acision.com>


Connect with us:

[Facebook]<https://www.facebook.com/pages/Acision/145536588827195>  [Twitter] <https://twitter.com/acision>   [LinkedIn] <http://www.linkedin.com/company/1270?trk=tyah&trkInfo=tas%3Aacision%2Cidx%3A2-1-2>   [Google+] <https://plus.google.com/+acision/posts>   [YouTube] <http://www.youtube.com/user/Acision1>


Lancaster Court, 8 Barnes Wallis Road, Segensworth East, Fareham, Hampshire PO15 5TU, UK

On 10 Sep 2014, at 19:44, Luis F Urrea <lfurrea at gmail.com<mailto:lfurrea at gmail.com>> wrote:

Any ideas are welcome.

I wanted to try to get input from someone familiar with the websockets module as these statistics seem rather bogus from the comparison with netstat connections.

On Mon, Sep 8, 2014 at 12:09 PM, Luis F Urrea <lfurrea at gmail.com<mailto:lfurrea at gmail.com>> wrote:

I have a question in regards monitoring websocket connections on a production box.

We ususally trust whatever is indicated through the

$ kamctl fifo get statistics

We've seen that this is what the community contributed munin plugins use. However when trying to monitor web socket connections and using this output we've seen completely different results from the output of

$ kamctl fifo get_statistics


Which seem to indicate current websocket connections and the output of

$ kamctl fifo ws.dump

Which seems to indicate current OPEN connections.

Can anybody shed some light as to what are the differences between both if any, and advice which one is the proper one to monitor for possible file handle exhaustion.


SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
sr-users at lists.sip-router.org<mailto:sr-users at lists.sip-router.org>

This e-mail and any attachment is for authorised use by the intended recipient(s) only. It may contain proprietary material, confidential information and/or be subject to legal privilege. It should not be copied, disclosed to, retained or used by, any other party. If you are not an intended recipient then please promptly delete this e-mail and any attachment and all copies and inform the sender. Thank you for understanding.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sip-router.org/pipermail/sr-users/attachments/20140911/ed9f0a7c/attachment.html>

More information about the sr-users mailing list