My Oracle Support Banner

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.

Symptoms

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.

Cause

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
Symptoms
Cause
Solution
References


My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.