任何人都可以告诉我当Tomcat崩溃时生成的hs_err_pid.log文件的详细信息? [英] Can anybody tell me details about hs_err_pid.log file generated when Tomcat crashes?

查看:3227
本文介绍了任何人都可以告诉我当Tomcat崩溃时生成的hs_err_pid.log文件的详细信息?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

任何人都可以告诉我当Tomcat崩溃时生成的hs_err_pid.log文件的详细信息?



我们需要在T​​omcat配置工具的Java选项卡上执行任何设置以生成hs_err_pid .log文件?



hs_err_pid.log文件的默认位置是什么?我们可以更改此位置吗?



我期待您的合作和回应。

解决方案

非常有关此主题的好文档是故障排除指南Java 从(原来)有关 hs_err_pid * 文件的信息,请参阅系统崩溃故障一章。

请参阅附录C - 致命错误日志



按照指南,默认情况下,文件将在进程的工作目录中创建(如果可能),否则在系统临时目录中。可以通过传递-XX:ErrorFile产品标志来选择特定位置。它说:


如果未指定-XX:ErrorFile = file标志,系统将尝试在工作目录过程。如果无法在工作目录中创建文件(空间不足,权限问题或其他问题),则会在操作系统的临时目录中创建该文件。



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.

解决方案

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.

这篇关于任何人都可以告诉我当Tomcat崩溃时生成的hs_err_pid.log文件的详细信息?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆