Search Mastertheboss

Our eBooks

How to monitor JBoss CPU usage ?


JBoss AS 7 users and WildFly can use JConsole in order to monitor the usage of the application server. See the following snapshot:

monitor thread cpu

You can use the operations such as get ThreadCpuTime(Thread) to gather information for a particular thread:

thread cpu

JBoss AS 4/5/6 users

If you want to inspect jBoss Thread CPU's usage you have a shortcut from the jmx-console. Point at the Mbean ServerInfo under the domain jboss.system. 

This is a shortcut if you're running your server on localhost:

now invoke the operation listThreadCpuUtilization()

Thread NameCPU (milliseconds)
http- 609
ScannerThread 500
DestroyJavaVM 125
DefaultQuartzScheduler_QuartzSchedulerThread 78
ContainerBackgroundProcessor[StandardEngine[jboss.web]] 15
DefaultQuartzScheduler_Worker-1 15
DefaultQuartzScheduler_Worker-5 15
Thread-4 15

Here you can see which threads are pumping the cpu - have a look, besides the threads dedicated to the web applications (running on port 8080) you are using quite a lof of cpu for the ScannerThread which is responsible of period based scanning for the Deployment of applications.
Sure you need to enable Deployment Scanning ? in production enviroment you had better disabling it:How to configure JBoss to disable hot deployment ?  


Related articles available on

How to monitor jboss graphically ?

  You’ve been using the JMX Console to access yourMBeans. In thi

How to monitor JBoss with snapshots?

  JBoss gives you the ability to capture data not only in real t

JBoss Alarm configuration

An Alarm indicates that an event (generally an error) has happene

Monitoring JBoss EJB Container

In this article we will show how easily you can write an Intercep

Monitor JBoss AS with Jolokia

Jolokia is a cool monitoring solution for accessing JMX MBeans re

How to solve java.lang.OutOfMemoryError: unable to create new nat

In Java you can stumble upon two kind of Out of Memory errors:

© 2020 All Rights Reserved.

Please publish modules in offcanvas position.