• Post Reply Bookmark Topic Watch Topic
  • New Topic

Shell script for heap usage for the particular process  RSS feed

 
kona krishnakumar
Ranch Hand
Posts: 42
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,

I need a shell script to display the heap usage of all java processes.

Thanks in Advance
Krishna
 
Ulf Dittmer
Rancher
Posts: 42972
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
A shell script can't do this on its own. If the JVMs in question are accessible via JMX, then you could write a Java client that connects to them and retrieves that information.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!