Uploaded image for project: 'Java Mission Control'
  1. Java Mission Control
  2. JMC-7863

Warnings when opening JFR files that contain virtual thread events

    XMLWordPrintable

Details

    Description

      Steps to reproduce. 

      • Create a continuous JFR that contains virtual thread-related JDK attributes (example below). Please use profile.jfc within JDK 20 for a fresh recording,
          <event name="jdk.VirtualThreadStart">
            <setting name="enabled">true</setting>
            <setting name="stackTrace">true</setting>
          </event>    
            <event name="jdk.VirtualThreadEnd">
            <setting name="enabled">true</setting>
          </event>    
          <event name="jdk.VirtualThreadPinned">
            <setting name="enabled">true</setting>
            <setting name="stackTrace">true</setting>
            <setting name="threshold">20 ms</setting>
          </event>    
          <event name="jdk.VirtualThreadSubmitFailed">
            <setting name="enabled">true</setting>
            <setting name="stackTrace">true</setting>
          </event>
      
      
      
      • Dump the JFR directly  from JMC, or try to open an already dumped JFR to the file system
      • The direct dumping from JMC, or opening the JFR file in JMC fails with the following message
      [2.544s][info][jfr,startup] Use jcmd 30940 JFR.dump name=JMC_Default filename=FILEPATH to copy recording data to file.
      Jul 31, 2022 10:39:38 PM org.openjdk.jmc.flightrecorder.internal.parser.v1.ValueReaders$ReflectiveReader addField
      WARNING: Could not find field with name 'virtual' in reader for 'thread'
      Jul 31, 2022 10:39:38 PM org.openjdk.jmc.flightrecorder.internal.parser.v1.ValueReaders$ReflectiveReader addField
      WARNING: Could not find field with name 'virtual' in reader for 'thread'
      Jul 31, 2022 10:39:38 PM org.openjdk.jmc.flightrecorder.internal.parser.v1.ValueReaders$ReflectiveReader addField
      WARNING: Could not find field with name 'virtual' in reader for 'thread'
      
      

      Attachments

        Activity

          People

            hirt Marcus Hirt
            bbanathur Bipin Banathur
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: