如何禁止创建hs_err_pid文件? [英] How can I suppress the creation of the hs_err_pid file?

查看:576
本文介绍了如何禁止创建hs_err_pid文件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们正在java 1.6.0_13下运行一个java应用程序。当它崩溃时,它会创建正常的hs_err_pid文件。即使应用程序崩溃,我也不希望创建此文件。 java命令行有没有办法抑制这个?
我熟悉-XX:ErrorFile选项。如果我将其设置为空字符串会抑制它吗?

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?

推荐答案

如果您使用的是Unix / Linux系统,请尝试设置 -XX:ErrorFile to / dev / null (或者,如果您使用的是Windows,请尝试 NUL )。

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

这篇关于如何禁止创建hs_err_pid文件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆