-
Notifications
You must be signed in to change notification settings - Fork 1.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Websocket connection stats and request stats #3106
Comments
We are doing a significant refactor of websocket for jetty-10, so @lachlan-roberts can you make sure there are good stats in that. We will also look to see what we can better expose in 9.4.x |
The fillable stats are very low level stats and not really meaningful for a user. They should be removed and replaced by message and byte counts. |
The fillable stats were historical to help diagnose a long ago issue with the websocket implementation. |
Chatted to @lachlan-roberts about this. WebSocketConnection can be modified to implement the byte and message counts abstracted in the In addition, it should possible to use the anonymous extension feature of the These changes should be moderately portable from 9.4.x and 10.0.x |
Are these changes available in 9.4.x because your message says they are portable from 9.4.x to 10.0. if they are available can I know how to use them?
Regards
Rajani
…________________________________
From: Greg Wilkins <notifications@github.com>
Sent: Wednesday, November 14, 2018 7:04:16 PM
To: eclipse/jetty.project
Cc: G K, Rajani (CW); Author
Subject: Re: [eclipse/jetty.project] Websocket connection stats and request stats (#3106)
Chatted to @lachlan-roberts<https://github.com/lachlan-roberts> about this. WebSocketConnection can be modified to implement the byte and message counts abstracted in the Connection interface and then they will be available via the normal ConnectionStatistics mechanism, although they will not be separable from HTTP and are only updated on close.
In addition, it should possible to use the anonymous extension feature of the ExtensionStack class to create an @statistics extension, that can be transparently added to websocket connection to gather live stats about frames, bytes and messages, to be aggregated (somewhere?) and made available via JMX.
These changes should be moderately portable from 9.4.x and 10.0.x
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub<#3106 (comment)>, or mute the thread<https://github.com/notifications/unsubscribe-auth/AYnVRYzZskLYDovLhmwC56h958ZiLDorks5uvBvYgaJpZM4YdJkU>.
|
@rajanigk we are working on them for jetty-10 and there are probably a few weeks away. Once implemented there, we can consider a back port to jetty-9.4.x, so that is probably a month away at least. |
Thanks a lot for the quick positive response. I really appreciate that.
Regards
Rajani
…________________________________
From: Greg Wilkins <notifications@github.com>
Sent: Thursday, November 15, 2018 2:56:48 AM
To: eclipse/jetty.project
Cc: G K, Rajani (CW); Mention
Subject: Re: [eclipse/jetty.project] Websocket connection stats and request stats (#3106)
@rajanigk<https://github.com/rajanigk> we are working on them for jetty-10 and there are probably a few weeks away. Once implemented there, we can consider a back port to jetty-9.4.x, so that is probably a month away at least.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub<#3106 (comment)>, or mute the thread<https://github.com/notifications/unsubscribe-auth/AYnVRUPSI7pStIbRdSt7Ti7ptovg0hphks5uvIqYgaJpZM4YdJkU>.
|
is there any update on this issue? |
There's no releases of jetty-10.0.x that has these stats. |
Signed-off-by: lachan-roberts <lachlan@webtide.com>
Signed-off-by: lachan-roberts <lachlan@webtide.com>
Signed-off-by: Lachlan Roberts <lachlan@webtide.com>
Signed-off-by: Lachlan Roberts <lachlan@webtide.com>
Signed-off-by: Lachlan Roberts <lachlan@webtide.com>
Signed-off-by: Lachlan Roberts <lachlan@webtide.com>
Signed-off-by: Lachlan Roberts <lachlan@webtide.com>
Signed-off-by: Lachlan Roberts <lachlan@webtide.com>
Signed-off-by: Lachlan Roberts <lachlan@webtide.com>
Signed-off-by: Lachlan Roberts <lachlan@webtide.com>
Signed-off-by: Lachlan Roberts <lachlan@webtide.com>
Signed-off-by: Lachlan Roberts <lachlan@webtide.com>
…cketConnectionStats Issue #3106 - implement WebSocketConnection stats
Signed-off-by: Lachlan Roberts <lachlan@webtide.com>
Signed-off-by: Lachlan Roberts <lachlan@webtide.com>
Signed-off-by: Lachlan Roberts <lachlan@webtide.com>
Signed-off-by: Lachlan Roberts <lachlan@webtide.com>
@rajanigk WebSocket Connection stats are now present in both the 9.4.x and 10.0.x branches if you want to try it out. these stats are for messages and bytes in/out and are available through the Connector statistics mechanism described at |
Signed-off-by: Lachlan Roberts <lachlan@webtide.com>
Hi @lachlan-roberts is the websocket connection stats now available with 9.4.31v .As i was trying to get the numberof active websocket connections for the server still don't see any difference |
@sagarika-hp yes these stats are available in 9.4.31 by using the This is also tested in the jetty code in |
Hi,
The connecton and requests stats are not provided for websockets. The default method of obtaining the request and connection stats as documented in
https://www.eclipse.org/jetty/documentation/9.4.x/statistics-handler.html
does not provide the stats for the websocket connections. even though the connectionTotal, connectionMax do get updated, the connections stats do not give the the active connections. The reason being for every websocket connection request a HTTP connection is opened fiest and that updates the connection stats, but that HTTP connection gets closed when the upgrade request is passed on that connection, which decrements the active connection count in the connection stats. I see even the requestsStats do get decremented. So the connection and requests stats for websocket connection are not correct.
I do see
http://download.eclipse.org/jetty/9.4.3.v20170317/apidocs/index.html?org/eclipse/jetty/websocket/common/io/AbstractWebSocketConnection.Stats.html
exaplanation, and this class has the following three stats
getFillableErrorCount()
getFillInterestedCount()
getOnFillableCount()
I am not sure what these stats signify, there is no bean associated with these stats, so this statistics can not be obtained through jmx.
Would like to know if there is a plan to get the websocket stats? If so in which release? Or is there any other way i can get the stats?
Regards,
Rajani
The text was updated successfully, but these errors were encountered: