JVM hs_err.log is not generated on Linux

I am currently having some problems with the Java application that I am developing. Namely, the JVM is crashing with segfault. I am trying to find the hs_err.log file which should contain some useful information about this problem.

However, I can not find this file. I used find, locate, etc. And nothing.

Any ideas on why the log file is not being created?

+4
source share
1 answer

I think the file is called "hs_err_pid<pid>.log" , where <pid> is the process ID of the broken JVM process.

The following is the JDK 5 Troubleshooting Guide .

If a fatal error occurs in the hs_err_pid<pid>.log file (where <pid> ) an error log is generated for the process process identifier). If possible, the file is created in the working directory to process. If the file cannot be created in the working directory (insufficient space, resolution problem or other problem), then the file is created in the temporary directory for the system to work. On Solaris and Linux, the temporary directory is / tmp. On Windows, the temporary directory is determined by the value of the TMP environment variable, or if it is not defined, the value of the TEMP environment variable.

Also see the -XX:ErrorFile=... option specified in the Hotspot Specific JVM Parameters .

+7
source

Source: https://habr.com/ru/post/1309784/


All Articles