定义Java运行时致命错误日志的位置
有没有办法在运行时定义 Java 致命错误日志(hs_err_*.pid.log)的位置? 我从[1]中知道我可以将位置设置为参数,但我想在运行时更改它。
菲利普
[1] http://java. sun.com/javase/6/webnotes/trouble/TSG-Desktop/html/felog.html
is there any way to define the location of the fatal error logs in Java (hs_err_*.pid.log) in the runtime?
I know from [1] that I can set the location as parameter, but I want to change it in runtime.
Philip
[1] http://java.sun.com/javase/6/webnotes/trouble/TSG-Desktop/html/felog.html
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
来自 http://java.sun.com/javase/technologies/hotspot/vmoptions .jsp:
“用 -XX 指定的选项不稳定,不建议随意使用。这些选项如有更改,恕不另行通知。”
在同一页面上,有迹象表明 ErrorFile 选项无法通过 JConsole 进行管理,因此我不希望它可以通过任何其他方式进行修改。
From http://java.sun.com/javase/technologies/hotspot/vmoptions.jsp:
"Options that are specified with -XX are not stable and are not recommended for casual use. These options are subject to change without notice."
From the same page, there is indication that that the ErrorFile option is not manageable through JConsole, so I wouldn't expect it to be modifiable through any other means.