Java Flight Recorder Saves Files to the /tmp Directory Even when No Recording is Started via the 'java' Command Line
(Doc ID 2969354.1)
Last updated on AUGUST 22, 2023
Applies to:Java SE JDK and JRE - Version 8 and later
Information in this document applies to any platform.
Java Flight Recorder (JFR) recordings are getting saved to the /tmp or /var/tmp directory, even when there are no command line options to start a recording. You may or may not have enabled the Flight Recorder with the flags:
-XX:+UnlockCommercialFeatures -XX:+FlightRecorder or just -XX:+FlightRecorder
However, no flag to start a recording was added, such as:
This appears to be a problem when the expectation is that no flight recordings occur unless specified on the command line or started manually with jcmd <pid> JFR.start or with Java Mission Control (JMC) or some other JMX client.
To view full details, sign in with your My Oracle Support account.
Don't have a My Oracle Support account? Click to get started!
In this Document