File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Monitor JAVA Heap size runtime.

 
amolJava badgujar
Greenhorn
Posts: 1
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi ,

I am running performance test on my server, where it is fialing due to out of memory error.
To analyze the same can any one please suggest me utility/tool which can monitor the JAVA heap activities(size) on run-time basis.

Server is running on Window OS.

Thanks for your reply.
 
Chris Hurst
Ranch Hand
Posts: 443
3
C++ Eclipse IDE Java
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Depends of if you want this live (alerting ?) or for dev purposes (stop the problem)...

Start with Visual VM (in the JDK) see if that gives you what you want, are you trying to debug the problem or alert in some way. You can use visual VM to connect live to your process (request GC etc) but its not without cost. If you want more detailed info come back ...

For debug : First steps to debug are turn on gc logs and heap dump on out of memory error (java command line), then you'll get a hprof on out of memory and load it into Eclipse MAT and / or Visual VM.

Monitoring the gc logs with a visualizer can be good for alerting of issues and to debugging problems live with no impact on the process.
 
Myyron Murray Latorilla
Ranch Hand
Posts: 65
Eclipse IDE Java Netbeans IDE
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i use jconsole for monitoring heap
 
Chris Hurst
Ranch Hand
Posts: 443
3
C++ Eclipse IDE Java
  • 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Visual VM is the Java 6 replacement for Jconsole so unless your on Java 5 use Visual VM ... and if you are on Java 5 move to 6 ;-)
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic