我目前正在开发一些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