I'm running this command
java -cp "D:\Dev\Books Spaces\Java-11-and-12-New-Features-master\Chapter09" -XX:StartFlightRecording,filename=Epsilon.jfr -XX:+UnlockExperimentalVMOptions -XX:+UseEpsilonGC exploring_further/TestFlightRecorder
The code runs, however the .jfr file is 0 bytes.
When I remove -XX:+UseEpsilonGC
and Java defaults to G1 GC. the code runs and the flight recorder dump all the data to file and I can read it.
Why when I use Epsilon the file is empty and how Can I fix it.
On JDK 14 Windows 10.
I fix it by hitting Ctrl+C
while the code was running. the .jfr file gets populated and so I can read it. If I wait for OutOfMemoryError The file still 0 bytes.