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

jcmd: Compiler.CodeHeap_Analytics cmd does not inform about missing aggregate

    XMLWordPrintable

Details

    • Enhancement
    • Resolution: Fixed
    • P4
    • 22
    • 17, 21, 22
    • hotspot
    • b18
    • generic
    • generic

    Description

      If jcmd users want to print statistical data about a specific property of the code heap (instead of requesting "all"), they first have to aggregate such data. If this step was forgotten, the requested function just returns. This should be improved.

      ------ Output before enhancement --------
      > bin/jcmd <pid> Compiler.CodeHeap_Analytics FreeSpace
      <pid>:

      __ CodeHeapStateAnalytics lock wait took 0.000 seconds _________

      __ CodeHeapStateAnalytics total duration 0.000 seconds _________



      ------ Output after enhancement --------
      > bin/jcmd <pid> Compiler.CodeHeap_Analytics FreeSpace
      <pid>:

      __ CodeHeapStateAnalytics lock wait took 0.000 seconds _________

      No aggregated data available for heap CodeHeap. Run function aggregate first.

      __ CodeHeapStateAnalytics total duration 0.000 seconds _________

      Attachments

        Issue Links

          Activity

            People

              lucy Lucy Schmidt
              lucy Lucy Schmidt
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: