We are running a java application under java 1.6.0_13. When it crashes it creates the normal hs_err_pid file. I don't want this file created even if the application crashes. Is there a way on the java command line to suppress this? I am familiar with -XX:ErrorFile option. If I set this to an empty string will that suppress it?
If you are using a Unix/Linux system, try setting -XX:ErrorFile
to /dev/null
(or, if you are using Windows, try NUL
).