Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Jboss 4.2.3 JVM Monitoring

 
Vikram Saxena
Ranch Hand
Posts: 53
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello,

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
 
Mark Spritzler
ranger
Sheriff
Posts: 17278
6
IntelliJ IDE Mac Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.

Mark
 
sadat ali khan
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
go through jopr at jboss.org/jopr ... most probably that is what you are looking at...
 
Vikram Saxena
Ranch Hand
Posts: 53
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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 :

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

The twiddle script is located at $JBOSS_HOME/bin


Cheers !
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic