aspose file tools*
The moose likes JBoss/WildFly and the fly likes Jboss 4.2.3 JVM Monitoring Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » JBoss/WildFly
Bookmark "Jboss 4.2.3 JVM Monitoring" Watch "Jboss 4.2.3 JVM Monitoring" New topic

Jboss 4.2.3 JVM Monitoring

Vikram Saxena
Ranch Hand

Joined: Dec 16, 2008
Posts: 53

My application is deployed on JBoss 4.2.3 and I need to monitor the JVM (Free Heap Memory) and produce a graphical representation.

I have tried to use the JConsole, which comes with the JDK but I cannont be monitoring the screen forever. Though it is very good and detailed but I would need a report generating script.

Do we have inbuilt monitoring for JBOSS ?
Can we get continuous JVM Memory logging for JBOSS ?

Waiting for some suggestions. Thanks

SCJP 5 , SCBCD [Prep Started ] , WLS 8.1 Server Admin
Mark Spritzler

Joined: Feb 05, 2001
Posts: 17250

Well you can add some command line params to have garbage collection stuff be posted to the terminal window where you start up you app server.

But to me the best way is with the JOPR project, or JBoss Operations Network, which is built upon JOPR. They are JBoss products, one is the open source project, with some limitations, and one is the support contract one, where you pay for it, but has monitoring and graphs.


Perfect World Programming, LLC - Two Laptop Bag - Tube Organizer
How to Ask Questions the Smart Way FAQ
sadat ali khan

Joined: Sep 10, 2008
Posts: 9
go through jopr at ... most probably that is what you are looking at...
Vikram Saxena
Ranch Hand

Joined: Dec 16, 2008
Posts: 53
I got the thing i was looking for. I needed to create a UNIX script which would monitor the JVM memor parameters for me.
This is how anyone wanting the same can do it :

./ --server=jnp://$HOST:$PORT get "jboss.system:type=ServerInfo" FreeMemory | grep FreeMemory
./ --server=jnp://$HOST:$PORT get "jboss.system:type=ServerInfo" MaxMemory | grep MaxMemory
./ --server=jnp://$HOST:$PORT get "jboss.system:type=ServerInfo" ActiveThreadCount | grep ActiveThreadCount

The twiddle script is located at $JBOSS_HOME/bin

Cheers !
Consider Paul's rocket mass heater.
subject: Jboss 4.2.3 JVM Monitoring