• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Jeanne Boyarsky
  • Tim Cooke
Sheriffs:
  • Liutauras Vilda
  • paul wheaton
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Frits Walraven
Bartenders:
  • Piet Souris
  • Himai Minh

Jboss 4.2.3 JVM Monitoring

 
Ranch Hand
Posts: 53
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
ranger
Posts: 17346
11
Mac IntelliJ IDE Spring
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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 !
 
She's brilliant. She can see what can be and is not limited to what is. And she knows this tiny ad:
Free, earth friendly heat - from the CodeRanch trailboss
https://www.kickstarter.com/projects/paulwheaton/free-heat
reply
    Bookmark Topic Watch Topic
  • New Topic