JBoss Performance Monitor

JBoss EAP7 uses Undertow as the default web container, In Undertow by default all listener will use the default worker which is provided by IO subsystem. This worker instance manages the listeners (AJP/HTTP/HTTPS) IO threads.

1
2
[standalone@localhost:9990 /] ls /subsystem=io/worker=default
[standalone@localhost:9990 /] /subsystem=io/worker=default:read-resource(include-runtime=true, recursive=true)

Undertow config

[standalone@localhost:9990 /] ls /subsystem=undertow/server=default-server/https-listener=https

Check statistics

DB

1
2
3
4
5
6
7
8
9
## Enabled statistics
[standalone@localhost:9990 /] /subsystem=datasources/xa-data-source=CCMDS:read-attribute(name=statistics-enabled)
[standalone@localhost:9990 /] /subsystem=datasources/xa-data-source=CCMDS:write-attribute(name=statistics-enabled, value=true)
[standalone@localhost:9990 /] /subsystem=datasources/xa-data-source=CCMDS:read-resource(include-runtime=true)

## Verify DB connection pool usage
[standalone@localhost:9990 /] /subsystem=datasources/xa-data-source=CCMDS/statistics=pool:read-resource(include-runtime=true)
[standalone@localhost:9990 /] /subsystem=datasources/xa-data-source=CCMDS/statistics=pool:read-attribute(name=ActiveCount)
[standalone@localhost:9990 /] /subsystem=datasources/xa-data-source=CCMDS/statistics=pool:read-attribute(name=InUseCount)

Web

1
2
[standalone@localhost:9990 /] /subsystem=undertow:read-attribute(name=statistics-enabled)
[standalone@localhost:9990 /] /subsystem=undertow:write-attribute(name=statistics-enabled, value=true)

Thread

1
2
[standalone@localhost:9990 /] /subsystem=ee/managed-executor-service=default:read-resource
[standalone@localhost:9990 /] /core-service=platform-mbean/type=threading:read-attribute(name=thread-count)

Memory

[standalone@localhost:9990 /] /core-service=platform-mbean/type=memory:read-resource(include-runtime=true)