Discussions

Performance and scalability: Heap Analysis Tool - Error

  1. Heap Analysis Tool - Error (2 messages)

    Hello Group - I am using the Sun's Heap Analysis Tool ( HAT ) to analyse the memory leaks in our Appserver.

    I enabled Hprof option while the server starts up and it created a binary file java.hprof.jamil.

    But when i try to use the HAT using this file, i am getting this following error:

    Started HTTP server on port 7000
    Reading from /apps/websphere/AppServer/java.hprof.jamil...
    Dump file created Fri May 14 15:46:46 EDT 2004
    java.io.EOFException
            at java.lang.Throwable.fillInStackTrace(Native Method)
            at java.lang.Throwable.fillInStackTrace(Compiled Code)
            at java.lang.Throwable.<init>(Compiled Code)
            at java.lang.Exception.<init>(Compiled Code)
            at java.io.IOException.<init>(IOException.java:28)
            at java.io.EOFException.<init>(EOFException.java:36)
            at java.io.DataInputStream.readUnsignedByte(Compiled Code)
            at hat.parser.HprofReader.skipBytes(Compiled Code)
            at hat.parser.HprofReader.read(Compiled Code)
            at hat.parser.Reader.readFile(Reader.java:91)
            at hat.Main.main(Compiled Code)


    Have anyone encountered this error. Looks like there seems to be problem in the format of the file created.

    Any help is appreciated.

    Thanks in Advance.
  2. Heap Analysis Tool - Error[ Go to top ]

    hi,

    This may be the problem in the creation of a binary file.

    Check out this article (which has source code of HAT to help you debug the problem )

    http://java.sun.com/developer/onlineTraining/Programming/JDCBook/perf3.html

    Bhagvan K
    http://www.architectcorner.com
  3. I am also getting the same issue, have you resolved this, if yes, please help. Thanks in advance