how to disable creating java heap dump after VM crashes?

北城余情 提交于 2019-12-01 21:45:12

If this is an OS crash dump then use ulimit to set the maximum core size to 0.

I'm not sure this will work, but if you're using the HotSpot VM, try this in the arguments to the java command:

-XX:HeapDumpPath=/dev/null

If you want to turn off core dumps altogether, you can use the ulimit approach (make sure to use the -H flag to set the hard limit):

ulimit -c -H 0

If you really mean a core file, and not something specific to java, then you need to use the ulimit command to set the maximum core file size to something small.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!