javaprofilingjava-mission-control

Flight Recorder "native" files


If I set up a continuous or long-lived timed recording on a JVM, do I ever have to worry about the dump files on the target machine getting too big? Where are these files stored?

Thx.


Solution

  • You can specify a max age or max size for the files, see

    http://docs.oracle.com/javase/8/docs/technotes/tools/windows/java.html, the -XX:FlightRecorderOptions section.

    You should also use disk=true, and you can specify repository to decide where the files are stored.

    (If it doesn't work according to documentation, let me know, some of the docs have been slightly incorrect in the past, and even though I work with this I find it hard to remember all the details...)