What are hs_err_pid.log files generated when Tomcat crashes?(Tomcat 崩溃时生成的 hs_err_pid.log 文件是什么?)
问题描述
为了生成hs_err_pid.log 文件,是否需要在Tomcat 配置工具的Java 选项卡上进行任何特定设置?
Are any specific settings required on the Java tab of Tomcat configuration tool in order to generate a hs_err_pid.log file?
hs_err_pid.log 文件的默认位置是什么?这个位置可以更改吗?
What is the default location of the hs_err_pid.log file? Can this location be changed?
推荐答案
一个非常非常关于这个主题的好文档是 Java 故障排除指南 来自(最初)Sun.请参阅排除系统崩溃故障"一章.有关 hs_err_pid* 文件的信息.
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.
请参阅 附录 C - 致命错误日志
根据指南,默认情况下,如果可能,文件将在进程的工作目录中创建,否则将在系统临时目录中创建.可以通过传入 -XX:ErrorFile 产品标志来选择特定位置.它说:
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:
如果未指定 -XX:ErrorFile= 文件标志,系统会尝试在进程的工作目录中创建文件.如果无法在工作目录中创建文件(空间不足、权限问题或其他问题),则在操作系统的临时目录中创建文件.
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.
这篇关于Tomcat 崩溃时生成的 hs_err_pid.log 文件是什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!
本文标题为:Tomcat 崩溃时生成的 hs_err_pid.log 文件是什么?
基础教程推荐
- REST Web 服务返回 415 - 不支持的媒体类型 2022-01-01
- 问题http://apache.org/xml/features/xinclude测试日志4j 2 2022-01-01
- 无法复制:“比较方法违反了它的一般约定!" 2022-01-01
- 使用堆栈算法进行括号/括号匹配 2022-01-01
- Spring AOP错误无法懒惰地为此建议构建thisJoinPoin 2022-09-13
- RabbitMQ:消息保持“未确认"; 2022-01-01
- 修改 void 函数的输入参数,然后读取 2022-01-01
- 存储 20 位数字的数据类型 2022-01-01
- 如何对 Java Hashmap 中的值求和 2022-01-01
- Struts2 URL 无法访问 2022-01-01
