Using -XX:HeapDumpPath option but want to integrate the process id

前端 未结 2 1027
无人共我
无人共我 2021-01-01 16:09

When using -XX:+HeapDumpOnOutOfMemoryError the JVM will not overwrite the heap dump if there is already a dump file under the specified path. I want to be able

2条回答
  •  爱一瞬间的悲伤
    2021-01-01 16:41

    That can be a path to a file OR directory. If you have a path to a directory, the generated file name will have pid in it by default.

    http://www.oracle.com/technetwork/java/javase/tech/vmoptions-jsp-140102.html

提交回复
热议问题