Finding Thread Activity and Memory Usage JBoss EAP 4.x
Environment
- JBoss Enterprise Application Platform (EAP)
- 4.2
- 4.3
Issue
- For a given JBoss instance, how do I find the following:
- Thread usage
- Thread CPU
- What each thread is meant for and what kind of work it's doing
- Memory consumed by each thread
Resolution
- You should be able to get all those information by going to jmx-console (e.g.:
http://localhost:8080//jmx-console/HtmlAdaptor
) and apply this filter:
jboss.system:type=ServerInfo,*
- Click the link
type=ServerInfo
and there will be several operations you can invoke:listThreadCpuUtilization()
listThreadDump()
listMemoryPools()
This solution is part of Red Hat’s fast-track publication program, providing a huge library of solutions that Red Hat engineers have created while supporting our customers. To give you the knowledge you need the instant it becomes available, these articles may be presented in a raw and unedited form.
Comments