RFR: 8270091: The path of JFR emergency dump should be able to specified by the user

Erik Gahlin egahlin at openjdk.java.net
Mon Jul 12 18:15:59 UTC 2021


On Thu, 8 Jul 2021 12:29:03 GMT, Yasumasa Suenaga <ysuenaga at openjdk.org> wrote:

> JFR will dump the recording to the file as hs_err_pid<PID>.jfr if JVM encountered fatal errors (e.g. crash). It will be dumped to current directory, and we cannot specify dump path.
> 
> In other dumps (hs_err log, heap dump, replay & inline data for JIT) can be specified it.
> 
> This is useful especially in the container application if we can specify it in JFR.
> 
> I've filed [CSR](https://bugs.openjdk.java.net/browse/JDK-8270093) for this RFE, please review it too.

There exists -XX:FlightRecorderOptions:dumppath. 

Not sure if it works, and the long term plan is to use the path specified with -XX:StartFlightRecording. 

For details, see: https://bugs.openjdk.java.net/browse/JDK-8196050

-------------

PR: https://git.openjdk.java.net/jdk/pull/4724


More information about the hotspot-jfr-dev mailing list