JFR - Online Linux Manual PageSection : 1
Updated : 2021
Source : JDK 17
Note : JDK Commands

NAMEjfr − parse and print Flight Recorder files

SYNOPSISTo print the contents of a flight recording to standard out: jfr print [options] file To print metadata information about flight recording events: jfr metadata file To assemble chunk files into a flight recording file: jfr assemble repository file To disassemble a flight recording file into chunk files: jfr disassmble [options] file To view the summary statistics for a flight recording file: jfr summary file options  Optional: Specifies command−line options separated by spaces. See the individual subcomponent sections for descriptions of the available options. file  Specifies the name of the target flight recording file (​.jfr). repository  Specifies the location of the chunk files which are to be assembled into a flight recording.

DESCRIPTIONThe jfr command provides a tool for interacting with flight recorder files (​.jfr). The main function is to filter, summarize and output flight recording files into human readable format. There is also support for merging and splitting recording files. Flight recording files are created and saved as binary formatted files. Having a tool that can extract the contents from a flight recording and manipulate the contents and translate them into human readable format helps developers to debug performance issues with Java applications.

SubcommandsThe jfr command has several subcommands: • print • summary • assemble • disassemble • metadata

jfr print subcommandUse jfr print to print the contents of a flight recording file to standard out. The syntax is: jfr print [−−xml|−−json] [−−categories <filters>] [−−events <filters>] [−−stack−depth <depth>] <file> where: −−xml  Print the recording in XML format −−json  Print the recording in JSON format −−categories <filters>  Select events matching a category name. The filter is a comma−separated list of names, simple and/or qualified, and/or quoted glob patterns −−events <filters>  Select events matching an event name. The filter is a comma−separated list of names, simple and/or qualified, and/or quoted glob patterns −−stack−depth <depth>  Number of frames in stack traces, by default 5 <file>  Location of the recording file (​.jfr) The default format for printing the contents of the flight recording file is human readable form unless either xml or json is specified. These options provide machine−readable output that can be further parsed or processed by user created scripts. Use jfr −−help print to see example usage of filters. To reduce the amount of data displayed, it is possible to filter out events or categories of events. The filter operates on the symbolic name of an event, set by using the \@Name\f[R] annotation, or the category name, set by using the \@Category\f[R] annotation. If multiple filters are used, events from both filters will be included. If no filter is used, all the events will be printed. If a combination of a category filter and event filter is used, the selected events will be the union of the two filters. For example, to show all GC events and the CPULoad event, the following command could be used: jfr print −−categories GC −−events CPULoad recording.jfr Event values are formatted according to the content types that are being used. For example, a field with the jdk.jfr.Percentage annotation that has the value 0.52 is formatted as 52%. Stack traces are by default truncated to 5 frames, but the number can be increased/decreased using the −−stack−depth command−line option.

jfr summary subcommandUse jfr summary to print statistics for a recording. For example, a summary can illustrate the number of recorded events and how much disk space they used. This is useful for troubleshooting and understanding the impact of event settings. The syntax is: jfr summary <file> where: <file>  Location of the flight recording file (​.jfr)

jfr metadata subcommandUse jfr metadata to view information about events, such as event names, categories and field layout within a flight recording file. The syntax is: jfr metadata <file> where: <file>  Location of the flight recording file (​.jfr)

jfr assemble subcommandUse jfr assemble to assemble chunk files into a recording file. The syntax is: jfr assemble <repository> <file> where: <repository>  Directory where the repository containing chunk files is located <file>  Location of the flight recording file (​.jfr) Flight recording information is written in chunks. A chunk contains all of the information necessary for parsing. A chunk typically contains events useful for troubleshooting. If a JVM should crash, these chunks can be recovered and used to create a flight recording file using this jfr assemble command. These chunk files are concatenated in chronological order and chunk files that are not finished (.part) are excluded.

jfr disassemble subcommandUse jfr disassemble to decompose a flight recording file into its chunk file pieces. The syntax is: jfr disassemble [−−max−chunks <chunks>] [−−output <directory>] <file> where: −−output <directory>  The location to write the disassembled file, by default the current directory −−max−chunks <chunks>  Maximum number of chunks per file, by default 5. The chunk size varies, but is typically around 15 MB. −−max−size <size>  Maximum number of bytes per file. <file>  Location of the flight recording file (​.jfr) This function can be useful for repairing a broken file by removing the faulty chunk. It can also be used to reduce the size of a file that is too large to transfer. The resulting chunk files are named myfile_1.jfr, myfile_2.jfr, etc. If needed, the resulting file names will be padded with zeros to preserve chronological order. For example, the chunk file name is myfile_001.jfr if the recording consists of more than 100 chunks.

jfr version and help subcommandsUse jfr −−version or jfr version to view the version string information for this jfr command. To get help on any of the jfr subcommands, use: jfr <−−help|help> [subcommand] where: [subcommand] is any of: • print • metadata • summary • assemble • disassemble
0
Johanes Gumabo
Data Size   :   35,546 byte
man-jfr-java-17-openjdk-17.0.2.0.8-7.fc36.x86_64.1Build   :   2024-12-05, 20:55   :  
Visitor Screen   :   x
Visitor Counter ( page / site )   :   5 / 165,757
Visitor ID   :     :  
Visitor IP   :   18.119.235.107   :  
Visitor Provider   :   AMAZON-02   :  
Provider Position ( lat x lon )   :   39.962500 x -83.006100   :   x
Provider Accuracy Radius ( km )   :   1000   :  
Provider City   :   Columbus   :  
Provider Province   :   Ohio ,   :   ,
Provider Country   :   United States   :  
Provider Continent   :   North America   :  
Visitor Recorder   :   Version   :  
Visitor Recorder   :   Library   :  
Online Linux Manual Page   :   Version   :   Online Linux Manual Page - Fedora.40 - march=x86-64 - mtune=generic - 24.12.05
Online Linux Manual Page   :   Library   :   lib_c - 24.10.03 - march=x86-64 - mtune=generic - Fedora.40
Online Linux Manual Page   :   Library   :   lib_m - 24.10.03 - march=x86-64 - mtune=generic - Fedora.40
Data Base   :   Version   :   Online Linux Manual Page Database - 24.04.13 - march=x86-64 - mtune=generic - fedora-38
Data Base   :   Library   :   lib_c - 23.02.07 - march=x86-64 - mtune=generic - fedora.36

Very long time ago, I have the best tutor, Wenzel Svojanovsky . If someone knows the email address of Wenzel Svojanovsky , please send an email to johanes_gumabo@yahoo.co.id .
If error, please print screen and send to johanes_gumabo@yahoo.co.id
Under development. Support me via PayPal.

ERROR : Need New Coding :         (rof_escape_sequence|91|jfr-java-17-openjdk-17.0.2.0.8-7.fc36.x86_64.1|152|\@Name\f[R] annotation, or the category name, set by using the |\f[CB]\@Name\f[R] annotation, or the category name, set by using the )         (rof_escape_sequence|91|jfr-java-17-openjdk-17.0.2.0.8-7.fc36.x86_64.1|153|\@Category\f[R] annotation. |\f[CB]\@Category\f[R] annotation. )