java hs error_java – 在Linux上没有生成JVM hs_err.log

我目前正在开发一些Java应用程序的问题.即JVM崩溃了一个段错误.我正在尝试找到hs_err.log文件,该文件应包含有关该问题的一些有用信息.

但是,我找不到这个文件.我用过find,locate等等,什么都没用.

关于为什么没有生成日志文件的任何想法?

解决方法:

我认为该文件名为“hs_err_pid< pid> .log”,其中< pid>是崩溃的JVM进程的进程ID.

When a fatal error occurs an error log is created in the file hs_err_pid.log (where is

the process id of the process). Where possible the file is created in the working directory of the

process. In the event that the file cannot be created in the working directory (insufficient space,

permission problem, or other issue) then the file is created in the temporary directory for the operating

system. On Solaris and Linux the temporary directory is /tmp. On Windows the temporary directory

is specified by the value of the TMP environment variable, or if that is not defined, the value of the

TEMP environment variable.

还要查找Hotspot Specific JVM Options中列出的-XX:ErrorFile = …选项.

标签:java,linux,hs-err

来源: https://codeday.me/bug/20190526/1158930.html

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值