Can anybody tell me details about hs_err_pid.log f

2019-01-21 18:21发布

Can anybody tell me details about hs_err_pid.log file generated when Tomcat crashes?

Do we need to perform any settings on Java tab of Tomcat configuration tool to generate hs_err_pid.log file?

What is the default location of hs_err_pid.log file? Can we change this location?

I look forward to your co-operation and response.

1条回答
Ridiculous、
2楼-- · 2019-01-21 19:07

A very very good document regarding this topic is Troubleshooting Guide for Java from (originally) Sun. See the chapter "Troubleshooting System Crashes" for information about hs_err_pid* Files.

See Appendix C - Fatal Error Log

Per the guide, by default the file will be created in the working directory of the process if possible, or in the system temporary directory otherwise. A specific location can be chosen by passing in the -XX:ErrorFile product flag. It says:

If the -XX:ErrorFile= file flag is not specified, the system attempts to create the file 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), the file is created in the temporary directory for the operating system.

查看更多
登录 后发表回答