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

Some changes are needed in jstat documentation

XMLWordPrintable

    • b08
    • generic
    • generic
    • Not verified

        There are some inaccurate description in jstat documentation of JDK7.
          http://docs.oracle.com/javase/7/docs/technotes/tools/share/jstat.html

        1. -t optiopn

        " -t n
            Display a timestamp column as the first column of output. The timestamp is the time since
            the start time of the target JVM."

        This "-t" option does not need the argument "n".
        "n" seems unnecessary.

        2. -version option

        -version option is not supported by jstat.

        C:\java>jstat -options
        -class
        -compiler
        -gc
        -gccapacity
        -gccause
        -gcnew
        -gcnewcapacity
        -gcold
        -gcoldcapacity
        -gcpermcapacity
        -gcutil
        -printcompilation

        3. -printcompilation

        The documentation says as follows.

        -----
        -printcompilation Option
        HotSpot Compiler Method Statistics

        Column Description
        Compiled Number of compilation tasks performed.
        Size Number of bytes of bytecode for the method.
        Type Compilation type.
        Method Class name and method name identifying the compiled method.
                     Class name uses "/" instead of "." as namespace separator.
                     Method name is the method within the given class. The format for
                     these two fields is consistent with the HotSpot - XX:+PrintComplation option.
        ---------

        The following expression seems a little bit more appropriate than the above
        because -printcompilation seems to show the inf. of lastly compiled method.

        example)

        Compiled Number of *last* compilation tasks performed.
        Size Number of bytes of bytecode for the *lastly compiled* method.
        Type *last* Compilation type.
        Method Class name and method name identifying the *lastly* compiled method.

              rgallard Raymond Gallardo
              tbaba Tadayuki Baba (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: