問題描述
為了生成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 文件是什么?的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網!