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):
http://localhost:8080/jmx-console/HtmlAdaptor?action=inspectMBean&name=jboss.system:type=ServerInfo
which can be generalized as follows,
[http/https]://[Server_IP]:[Port]/jmx-console/HtmlAdaptor?action=inspectMBean&name=jboss.system:type=ServerInfo
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 URL: http://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:
- ActiveThreadCount
- AvailableProcessors
- OSArch
- MaxMemory
- HostAddress
- JavaVersion
- OSVersion
- JavaVendor
- TotalMemory
- ActiveThreadGroupCount
- OSName
- FreeMemory
- HostName
- JavaVMVersion
- JavaVMVendor
About this entry
You’re currently reading “JBoss App Server Memory and Thread Info Using JMX Console,” an entry on Singaram's Tech Musings
- Published:
- June 19, 2011 / 4:49 PM
- Category:
- Java Application Servers, JBoss, Performance Tuning

No comments yet
Jump to comment form | comment rss [?] | trackback uri [?]