JBoss App Server Memory and Thread Info Using JMX Console

JBoss AS (Application Server) provides some useful information through its JMX console that’d be helpful in understanding the deployed applications and doing some performance tuning. The provided information include server performance, how much memory is used, the total CPU time each thread has used etc..

How to know all this info?

Open the below URL on a web browser (I’m assuming that you’re opening this URL in the same machine where JBoss AS is running):


which can be generalized as follows,


You’ll see the below list of operations that you can invoke:

1. listThreadCpuUtilization – to view all threads, and the total CPU time for each thread
Direct URLhttp://localhost:8080/jmx-console/HtmlAdaptor?action=invokeOpByName&name=jboss.system:type=ServerInfo&methodName=listThreadCpuUtilization

2. listMemoryPools – to show the size and current usage of all JVM memory pools
Direct URL: http://localhost:8080/jmx-console/HtmlAdaptor?action=invokeOpByName&name=jboss.system:type=ServerInfo&methodName=listMemoryPools&argType=boolean&arg0=True

3. listThreadDump – to show all threads running in the JVM and what code each thread is exactly executing
Direct URL: http://localhost:8080/jmx-console/HtmlAdaptor?action=invokeOpByName&name=jboss.system:type=ServerInfo&methodName=listThreadDump

This ServerInfo page in JMX console additionally provides the below information about JBoss:

  1. ActiveThreadCount
  2. AvailableProcessors
  3. OSArch
  4. MaxMemory
  5. HostAddress
  6. JavaVersion
  7. OSVersion
  8. JavaVendor
  9. TotalMemory
  10. ActiveThreadGroupCount
  11. OSName
  12. FreeMemory
  13. HostName
  14. JavaVMVersion
  15. JavaVMVendor

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: