Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-6325527

JHAT: Needs -help option, or whatever the standard help option is.

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • 6
    • 6
    • core-svc
    • b61
    • generic
    • generic

      bonsai<78> /opt/java/jdk1.6.0/bin/jhat -help
      Started HTTP server on port 7000
      Reading from -help...
      java.io.FileNotFoundException: -help (No such file or directory)
              at java.io.FileInputStream.open(Native Method)
              at java.io.FileInputStream.<init>(FileInputStream.java:106)
              at java.io.FileInputStream.<init>(FileInputStream.java:66)
              at com.sun.tools.hat.internal.parser.Reader.readFile(Reader.java:83)
              at com.sun.tools.hat.Main.main(Main.java:158)
      bonsai<79> /opt/java/jdk1.6.0/bin/jhat -h
      Started HTTP server on port 7000
      Reading from -h...
      java.io.FileNotFoundException: -h (No such file or directory)
              at java.io.FileInputStream.open(Native Method)
              at java.io.FileInputStream.<init>(FileInputStream.java:106)
              at java.io.FileInputStream.<init>(FileInputStream.java:66)
              at com.sun.tools.hat.internal.parser.Reader.readFile(Reader.java:83)
              at com.sun.tools.hat.Main.main(Main.java:158)
      bonsai<80> /opt/java/jdk1.6.0/bin/jhat
      ERROR: No arguments supplied
      Usage: jhat [-stack <bool>] [-refs <bool>] [-port <port>] [-baseline <file> -debug <int>] [-version] <file>

              -stack false: Turn off tracking object allocatoin call stack.
              -refs false: Turn off tracking of references to objects
              -port <port>: Set the port for the HTTP server. Defaults to 7000
              -exclude <file>: Specify a file that lists data members that should
                                be excluded from the reachableFrom query.
              -baseline <file>: Specify a baseline object dump. Objects in
                                both heap dumps with the same ID and same class will
                                be marked as not being "new".
              -debug <int>: Set debug level.
                                  0: No debug output
                                  1: Debug hprof file parsing
                                  2: Debug hprof file parsing, no server
              -version Report version number
              -donationware Give information on the status of HAT
              <file> The file to read

      For a dump file that contains multiple heap dumps,
      you may specify which dump in the file
      by appending "#<number>" to the file name, i.e. "foo.hprof#3".

      All boolean options default to "true"

            sundar Sundararajan Athijegannathan
            ohair Kelly Ohair (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: