0

We are running jetty 9.2.9 on our production with cometd 3.0.1.

We are trying to understand the current load on the system at any given point of time and estimate its maximum scale.

Please suggest the best approach to accomplish the same.

I tried different approaches such as listening the meta channels and keep a count on each message passed and each channel closed. But this does not look like a good approach as this has to touch the meta channels every time and it may also potentially slow down the message passing across channels.

Thank you!

Joakim Erdfelt
  • 46,896
  • 7
  • 86
  • 136

1 Answers1

1

CometD relies on the Servlet Container implementation of WebSocket, so for monitoring the open/closed WebSocket connections you should probably rely on container features.

For example, if you are using Jetty you may look at the JMX MBeans exposed by Jetty about its WebSocket implementation.

If what already exposed is not enough for you, you can probably ask for a feature request (for Jetty, at this URL).

sbordet
  • 16,856
  • 1
  • 50
  • 45