How can I suppress hs_err_pid file creation?

We are launching a java application under java 1.6.0_13. When it crashes, it creates a regular hs_err_pid file. I do not want this file to be created even if the application crashes. Is there a way on the java command line to suppress this? I am familiar with the -XX: ErrorFile option. If I set this to an empty string, will it overwhelm it?

+2
source share
1 answer

If you are using a Unix / Linux system, try setting -XX:ErrorFile to /dev/null (or, if you are using Windows, try NUL ).

+4
source

Source: https://habr.com/ru/post/896885/


All Articles