2

I am trying to analyze a JVM crash that is occuring inconsistently. I get a hs_err_pid312.log file when it happens.

i've added Thread.setDefaultUncaughtExceptionHandler(new Thread.UncaughtExceptionHandler(), but i'm not sure that will catch the error.

What other things can i do so the next time this occurs, i can get as much information as possible?

thanks

1
  • You still haven't told us what environment you're in, or what the contents of the log file are. Commented Dec 19, 2008 at 19:45

2 Answers 2

1

The hs_err file looks pretty daunting but can be helpful if you know what to look for. You might want to check out Java Troubleshooting and Diagnostics Guide; section 2.2 in particular. That section describes how to make sense of what HotSpot is trying to tell you. Section 2.2.2 details several sample crashes and hints at what might be behind it.

If you see something about "grow array" in the hs_err file header then your problem is likely an OutOfMemoryError. Normally the JVM should exit gracefully under such conditions, but non-daemon threads in your application can prevent this.

Sign up to request clarification or add additional context in comments.

Comments

0

Okay, you need to look at the CONTENTS of that log file, but in general (after a little googling) I see it's the result of the hotspot version of the JVM hitting an unrecoverable error on a Windows machine. Most of the examples seem to be something like an unresolveable symbol in a DLL.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.