I'm using OpenJDK 8 and I'm trying to figure out a way to set the JVM binary dump location.
This is the output of my java -version:
openjdk version "1.8.0_232"
OpenJDK Runtime Environment (AdoptOpenJDK)(build 1.8.0_232-b09)
OpenJDK 64-Bit Server VM (AdoptOpenJDK)(build 25.232-b09, mixed mode)
When a crash occurs in native code, the JVM generates 2 files in the current directory -
text file - relatively small file with call stacks
binary mdmp file - large dump file
I was able to set the location of the text file using this flag -
-XX:ErrorFile
however any attempt to set the location of the binary file failed
I tries with - -XX:HeapDumpPath
but it didn't work. The JVM accepted this flag but didn't write the dump in the right location.
question from:
https://stackoverflow.com/questions/65933587/set-openjdk-jvm-crash-dump-location 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…