Skip to content
WikilyWIKILY
All games23 Wikis · pick your game
Commands and cheatsAll commands

Switch game

23 Wikis · pick your game
/jfr

Command

/jfr

Starts or stops a Java Flight Recorder performance recording of the game.

Syntax

/jfr (start|stop)

Details

Permission level4: server owners and the server console
Works inThe server console, the owner of a singleplayer world with cheats enabled, and operators with level 4 on multiplayer servers. Command blocks and functions cannot run it, because they only have level 2. The command exists only if the Java version running the game supports Java Flight Recorder.
Resultstart reports "JFR profiling started". stop reports "JFR profiling stopped and dumped to" with the path of the saved recording, which can be clicked to copy it. The number /execute store saves is 1.
startBegins a recording. Fails with "Failed to start JFR profiling" if the recording cannot be started.
stopEnds the recording and saves it to a file. Fails with "Failed to dump JFR recording" if no recording could be saved.

Examples

/jfr start

Starts a performance recording.

/jfr stop

Stops the recording and shows where the file was saved.

Join the creator communityThe people who build the Minecraft Java Edition wiki are on our Discord. Ask questions or suggest pages.Join Discord (opens Discord in a new tab)