Before 1.5, after a fatal error, JVM prints the error log to stdout and then
saves the same information to an hs_err log file. By default, it is saved in
current working directory; if for some reason the current directory is not
writable the hs_err log is saved to the system temporary directory (/tmp on
Solaris and Linux; or the result from GetTempPath() on Windows). If there is
no temporary directory, JVM will not save the hs_err log (because the same
information is already printed to stdout).
Since 1.5 because JVM prints a lot more information after crash, it would be
too much for stdout. Instead, JVM only prints a brief message to stdout and
detailed information is saved in hs_err log. Again, to determine the location
for hs_err, JVM first tries current directory; if it's not writable, JVM uses
temp directory; unlike 1.4.2, if temp directory is still not usable, JVM will
print the detailed message to stdout.
It's a good suggestion to allow customizable directory for HotSpot error logs.
Will fix in mustang.
###@###.### 10/18/04 23:55 GMT
fixed under bugid 4872551. A new command line flag -XX:ErrorFile is added to
VM. Close as duplicate
###@###.### 2005-06-13 19:38:09 GMT