[jboss-user] [Performance Tuning] - Re: How Can I monitoring java heap with jstat?

Radoslav Husar do-not-reply at jboss.com
Mon Nov 19 09:32:35 EST 2012


Radoslav Husar [https://community.jboss.org/people/rhusar] created the discussion

"Re: How Can I monitoring java heap with jstat?"

To view the discussion, visit: https://community.jboss.org/message/777179#777179

--------------------------------------------------------------
I think you meant you want to use jmap (not jstack). Here is an example that I like to use:

[rhusar at rhusar as-master]$ jps -l
18374 org.jetbrains.idea.maven.server.RemoteMavenServer
18281 com.intellij.idea.Main
21105 sun.tools.jps.Jps
[rhusar at rhusar as-master]$ jmap -histo:live 18281 | head

 num     #instances         #bytes  class name
----------------------------------------------
   1:        176916       24493688  <constMethodKlass>
   2:        176916       24077408  <methodKlass>
   3:         22170       23879160  <constantPoolKlass>
   4:         22170       18736416  <instanceKlassKlass>
   5:        139987       13574248  [C
   6:        198198       12992576  [B
   7:         18624       12898400  <constantPoolCacheKlass>
--------------------------------------------------------------

Reply to this message by going to Community
[https://community.jboss.org/message/777179#777179]

Start a new discussion in Performance Tuning at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2078]

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-user/attachments/20121119/abf68572/attachment-0001.html 


More information about the jboss-user mailing list