tags:

views:

196

answers:

1

Hello,

I'm currently having some issues with a Java application I'm developing. Namely the JVM is crashing with a segfault. I'm trying to locate the hs_err.log file which should contain some helpful info about the issue.

However, I can't find this file. I've used find, locate, etc, and nothing.

Any ideas on why the log file isn't being generated?

+1  A: 

I think the file is called "hs_err_pid<pid>.log" where <pid> is the process id of the crashed JVM process.

The following comes from the JDK 5 Troubleshooting Guide.

When a fatal error occurs an error log is created in the file hs_err_pid<pid>.log (where <pid> is the process id of the process). Where possible the file is created 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) then the file is created in the temporary directory for the operating system. On Solaris and Linux the temporary directory is /tmp. On Windows the temporary directory is specified by the value of the TMP environment variable, or if that is not defined, the value of the TEMP environment variable.

Also lookup the -XX:ErrorFile=... option listed in the Hotspot Specific JVM Options.

Stephen C
I know, I searched for "hs_err*", so it should find it anyway. I'll try the -XX:ErroFile option. Thanks.
halfwarp
You might also want to up vote for the useful tip...
Amir Afghani