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

jstat -t does not display timestamp with jigsaw releases

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: P3 P3
    • None
    • 9-repo-jigsaw
    • hotspot
    • svc

      The jstat utility from the jigsaw release does not display timestamp when run with -t option.
      The jstat from JDK 9 and 8 does display timestamp in this case.

      To reproduce:
      1) compile and run the attached program (it just produces a deadlock so it runs forever) .
      2) In another terminal issue ps -ef | grep Deadlock to find the pid of the running program
      3) jstat -compiler -t <pid>

      The output is as follows. There is no Timestamp column:

      Compiled Failed Invalid Time FailedType FailedMethod
           368 0 0 0.32 0

      4) Do the same with jstat from JDK 9. The output is as follows:

      Timestamp Compiled Failed Invalid Time FailedType FailedMethod
                963.9 368 0 0 0.32 0

            Unassigned Unassigned
            akulyakh Alexander Kulyakhtin (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: