-
Enhancement
-
Resolution: Unresolved
-
P3
-
8
In case of OOM, user can pass the options
-XX:HeapDumpOnOutOfMemoryError
-XX:HeapDumpPath
https://docs.oracle.com/javase/8/docs/technotes/guides/troubleshoot/clopts001.html
However, the HeapDumpPath provides an option to only provide directory path.
This generates the file with format java_pid$pid.hprof
It may be better to provide an option of supplying formatted file name from
command line which includes option of providing date/timestamp in file name,
e.g., -XXHeapDumpFileName=java_pid_yyMMddHHmmss.hprof, which should generate
a file name like java_2433_180608140139.hprof.
-XX:HeapDumpOnOutOfMemoryError
-XX:HeapDumpPath
https://docs.oracle.com/javase/8/docs/technotes/guides/troubleshoot/clopts001.html
However, the HeapDumpPath provides an option to only provide directory path.
This generates the file with format java_pid$pid.hprof
It may be better to provide an option of supplying formatted file name from
command line which includes option of providing date/timestamp in file name,
e.g., -XXHeapDumpFileName=java_pid_yyMMddHHmmss.hprof, which should generate
a file name like java_2433_180608140139.hprof.
- relates to
-
JDK-8334492 DiagnosticCommands (jcmd) should accept %p in output filenames and substitute PID
- Resolved
- links to
-
Review(master) openjdk/jdk/20568