• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Monitoring JVM memory

 
saidi Bandi
Ranch Hand
Posts: 65
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi,

please could you tell me how to monitor the JVM memory useage on UNIX environment.

Thanking you in advance.
 
Jesper de Jong
Java Cowboy
Saloon Keeper
Pie
Posts: 15150
31
Android IntelliJ IDE Java Scala Spring
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
JDK 6 comes with a useful tool, VisualVM. You can start it by running the command jvisualvm, and you can use it to connect to running Java virtual machines and see all kinds of things, like the amount of memory being used, how many threads there are and if they're running or not etc.
 
saidi Bandi
Ranch Hand
Posts: 65
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Young,

Thanks for the reply, but here we are using JDK1.4 version, for that is there any commands to check.


thanking you in advance.
 
Fred Muhlenberg
Ranch Hand
Posts: 39
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You can use the JVM command for verbose GC: -verbose:gc
This will output (to standard out) ongoing garbage collection (memory) information with a timestamp so you can get a profile of what memory is being reclaimed and when.

There are some undocumented -XX JVM options available that can help.

See: http://java.sun.com/j2se/1.4.2/reference/whitepapers
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic