How to Headless Flight Recorder
This is more a documentation for myself on how to run Flight Recorder headless on start up. You will have to use Template Manager im Mission Control first to create a settings file.
-XX:+UnlockDiagnosticVMOptions \
-XX:+DebugNonSafepoints \
-XX:StartFlightRecording:duration=120s,filename=recording.jfr,settings=settings.jfc
If you want to use the built in profiling template then use settings=profile
.