Undertow does not provide JMX beans out of the box, but it does
provide ways of getting this information programatically.
The reason for this is because Undertow is designed to be embeddable,
it is left up to the embedding container as to how to expose this
information.
There are a few places statistics are gathered:
- Inside XNIO (which does provide a JMX bean), this provides
information on thread pool sizes
- On a per connector level you can call
io.undertow.Undertow.ListenerInfo#getConnectorStatistics (which you
obtain by calling io.undertow.Undertow#getListenerInfo)
- Using io.undertow.server.handlers.MetricsHandler. If this is
installed as the root handler then it will collect server wide
statistics, alternatively you can install it on specific paths to get
information about requests to specific paths.
Stuart
On Wed, Oct 11, 2017 at 12:14 AM, Richard Fuller
<rwfnewsletters(a)gmail.com> wrote:
Hello,
We have recently moved from Weblogic to Spring Boot and decided to use
Undertow instead of Tomcat. Everything seems to be working great but would
like to be able to see metrics such as threads used in pool, max threads in
pool, current requests, etc. It does not appear these are exposed through
JMX. Is there a way to get metrics such as these?
Thanks in advance,
Wayne
_______________________________________________
undertow-dev mailing list
undertow-dev(a)lists.jboss.org
https://lists.jboss.org/mailman/listinfo/undertow-dev