Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have a java application running as a daemon. Suddenly it stop working so I would like to know if jvm crash and where will the log file be dump? It can be either fedora or centos?

share|improve this question

If the JVM is crashing, it should leave the hs_err_pidXXXX.log in the directory it's run from. If you want to send it somewhere else, you can run java with -XX:ErrorFile=/path/to/file.

share|improve this answer
I ran this command find / -name hs_err found no file. So that means not jvm crash event is it or must I set it some where first? – user111196 Apr 8 '12 at 4:54
Unless you're telling java not to write that file, that basically means that yes, JVM is not crashing. But that file will only be created if the JVM crashes - if your program has an uncaught error or otherwise crashes itself, you won't get a JVM error log. – NathanG Apr 8 '12 at 21:24
Is there any way to check whether I am telling program not to write the JVM log file. Any place to check what is the settings like? – user111196 Apr 9 '12 at 4:00
It would be in the arguments to java. Look at how you're running the daemon - do you pass any arguments to it like ErrorFile? If not, you're not telling it not to write the file. – NathanG Apr 9 '12 at 16:56
no I do not pass any errofile so how to set it? – user111196 Apr 11 '12 at 3:18

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.