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

jfr disassemble command processes --max-chunks incorrectly

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P4
    • Resolution: Fixed
    • Affects Version/s: openjdk8u262, 11.0.2, 16
    • Fix Version/s: 16
    • Component/s: hotspot
    • Labels:
      None
    • Subcomponent:
      jfr
    • Resolved In Build:
      b17
    • CPU:
      generic
    • OS:
      generic

      Description

      'jfr disassemble --max-chunks N' command always puts N + 1 chunks to the first output file if the recording consists of more than N chunks.

      For example, the attached jfr recording chunks.jfr consists of 5 chunks.
      $ jfr disassemble --max-chunks 1 chunks.jfr

      Examining recording chunks.jfr ...

      File consists of 5 chunks. The recording will be split into 4 files

      Writing chunks_0.jfr ... 459384
      Writing chunks_1.jfr ... 219049
      Writing chunks_2.jfr ... 237447
      Writing chunks_3.jfr ... 218449

      $ jfr summary chunks_0.jfr

       Version: 2.1
       Chunks: 2
       ...


        Attachments

          Issue Links

            Activity

              People

              Assignee:
              apetushkov Andrey Petushkov
              Reporter:
              apetushkov Andrey Petushkov
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: