with
If you use Heap Analysis Tool (HAT), this is a great news for you. Mustang (Java SE 6) (build 51 onwards) includes HAT in $JDK/bin directory. This is called jhat - Java Heap Analysis Tool. So, you don't need to download HAT separately! JDK will include it as part of standard distribution.
Besides we are adding new features to jhat -- stay tuned! I'll blog more about it when the bits become available...
Posted by Amit Kulkarni on September 17, 2005 at 02:35 PM IST #
Posted by A. Sundararajan on September 19, 2005 at 09:36 AM IST #
Posted by Amit Kulkarni on September 19, 2005 at 11:28 PM IST #
Posted by A. Sundararajan on September 20, 2005 at 12:18 PM IST #
Posted by Amit Kulkarni on September 28, 2005 at 11:36 PM IST #
I went through your page. I think some your comments are already addressed in recent releases (for example autoboxing/unboxing in certain contexts involving generics, enhanced for-loops and -Xlint option has beed added in JDK 5.0)
Comments about JVM command line options have nothing to do with javac. In JDK 5.0, GC Ergonomics has been improved -- hopefully that should help avoiding guess work.
Posted by A. Sundararajan on September 29, 2005 at 12:20 PM IST #
This is a bit ironic:
I have a heap dump (binary format) which I got by using the <code>-XX:+HeapDumpOnOutOfMemoryError</code> option with Mustang (build 62). When I try to use jhat to analyze the dump file, I get an <code>OutOfMemoryError</code>!
The dump file is approx. 80 MB. I tried running jhat both on a linux box and a Solaris 10 x86 box, both with 1 gig of RAM (although with less than 500 MB free (physical)).
So, is there a way I can increase the max heap size jhat uses?
Here's the stack trace:
$ jhat java_pid1483.hprof Reading from java_pid1483.hprof... Dump file created Fri Dec 09 21:40:02 CET 2005 Exception in thread "main" java.lang.OutOfMemoryError: Java heap space at com.sun.tools.hat.internal.parser.HprofReader.appendToInstanceBuf(HprofReader.java:776) at com.sun.tools.hat.internal.parser.HprofReader.readInstance(HprofReader.java:799) at com.sun.tools.hat.internal.parser.HprofReader.readHeapDump(HprofReader.java:512) at com.sun.tools.hat.internal.parser.HprofReader.read(HprofReader.java:224) at com.sun.tools.hat.internal.parser.Reader.readFile(Reader.java:91) at com.sun.tools.hat.Main.main(Main.java:161)Posted by John H. Embretsen on December 13, 2005 at 02:50 PM IST #
Posted by John H. Embretsen on December 13, 2005 at 03:49 PM IST #
Posted by Kumar on May 26, 2006 at 09:42 PM IST #
Posted by tariq on April 11, 2007 at 08:09 AM IST #
Posted by A. Sundararajan on April 12, 2007 at 01:32 PM IST #