Home JBoss howto Configuration How to monitor JBoss CPU usage ?
30 | 07 | 2010
JBoss 5 AS Book
"JBoss AS 5 development" reviews
Please share your feedback/review with other readers!
Banner
Dashboard
Advertise with Us
Banner
RSS Feed
Java EE 1.6 resources
Login
Sign here for the NewsLetter.



JBoss admin resources
Banner
Java EE 1.6 resources
JBoss howto

How to avoid the 50 seconds start up limit in Eclipse ?

JBoss recipe of the day ...
Read More

How can you solve deployment errors caused by large war/jar/ear files ?

jboss recipe of the day ...
Read More

How do you configure your .war to be deployed after your EJB ?

jboss recipe of the day ...
Read More
How to monitor JBoss CPU usage ?
Written by Mark S.   
JBoss tip of the day

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:
http://localhost:8080/jmx-console/HtmlAdaptor?action=inspectMBean&name=jboss.system%3Atype%3DServerInfo


now invoke the operation listThreadCpuUtilization()

Thread Name CPU (milliseconds)
http-127.0.0.1-8080-1 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: have a look here at this tip:

http://www.mastertheboss.com/en/jboss-howto/38-jboss-recipe/68-configure-jboss-disable-hot-deployment-.html
JBoss.org Search
Custom Search
Comments
Search
Only registered users can write comments!

3.26 Copyright (C) 2008 Compojoom.com / Copyright (C) 2007 Alain Georgette / Copyright (C) 2006 Frantisek Hliva. All rights reserved."