Can someone tell me more about the hs_err_pid.log file generated when Tomcat crashed?

hs_err_pid.log tell me more about the hs_err_pid.log file generated by hs_err_pid.log Tomcat?

Are any specific settings required on the Java tab of the Tomcat configuration tool to create the hs_err_pid.log file?

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

+51
java tomcat jvm crash
Nov 05 '11 at 10:33
source share
1 answer

A very very good document on this topic is the Troubleshooting Guide for Java from (initially) Sun. See the "Troubleshooting hs_err_pid* System" chapter for information on hs_err_pid* .

See Appendix C - Fatal Error Log.

According to the manual, by default, the file will be created in the working directory of the process, if possible, or in the system temporary directory otherwise. You can select a specific location by passing the product flag -XX: ErrorFile. It says:

If the -XX: ErrorFile = file flag is not specified, the system tries to create a file in the working directory of the process. If the file cannot be created in the working directory (there is not enough space, a problem with access rights or another problem), the file is created in a temporary directory for the operating system.

+50
Nov 14 '11 at 11:54
source share



All Articles