How do I investigate the cause of a JVM crash?

The crash is in the JVM, not in external native code. However, the operation it crashed on has been initiated by and external DLL.

The crash is in the JVM, not in external native code. However, the operation it crashed on has been initiated by and external DLL. This line in the hs_err_pid file explains the operation that crashed: VM_Operation (0x00007f5e16e35450): GetAllStackTraces, mode: safepoint, requested by thread 0x0000000040796000 Now, thread 0x0000000040796000 is 0x0000000040796000 JavaThread "YJPAgent-Telemetry" daemon _thread_blocked, id=2115, stack(0x00007f5e16d36000,0x00007f5e16e37000) which is a thread created by Yourkit."GetAllStackTraces" is something that a profiler needs to call in order to do sampling.

If you remove the profiler, the crash will not happen. With this information It's not possible to say what causes the crash, but you can try the following: Remove all -XX VM parameters, -verbose:gc and the debugging VM parameters. They might interfere with the profiling interface of the JVM.

Update Code that calls java.lang. Thread#getAllStackTraces() or java.lang. Thread#getStackTrace() may trigger the same crash.

Really, it is cool. But other instance of server crashes without using yjp. Thank you, I'll check for requested safepoint in other crash dumps.

– ubear Nov 16 at 15:00 Requesting threads from other crashes: YJPAgent-Telemetry SocketAcceptorIoProcessor-0.0, AnonymousIoService-6, AnonymousIoService-14, AnonymousIoService-4, AnonymousIoService-7 – ubear Nov 16 at 15:10 @ubear see my edit. It would be interesting to see a crash log from a run without the yourkit profiler – Ingo Kegel Nov 16 at 15:37 You can see it at wuala. Com/ubear/public .

In the other crashes RevokeBias was called. – ubear Nov 16 at 15:40 @ubear Interesting, that is a common crash. Again, I would try without -XX VM parameterss, -verbose:gc and the debugging VM parameters.

– Ingo Kegel Nov 16 at 15:56.

I can see from the error report that you have the YourKit agent loaded. Its telemetry thread is mentioned as the requester for the operation that appears to fail. Try running the application without the YJP agent to see if you can still reproduce the crash.

Generally, JVM crashes are pretty hard to diagnose. They could happen due to a bug in some JNI code or in the JRE itself. If you suspect the latter, it may be worth submitting a bug report to Oracle.

Either way, I'd recommend to upgrade to the latest release of Java 6 to make sure it's not a known issue that's already been fixed. At the time of this writing the current release is Java 6 update 29.

I can't understand why now. I think it hardware issue or anything in user or internal data processing. – ubear Nov 16 at 14:28 @ubear: Also try running without the YourKit agent.

See the updated answer. – aix Nov 16 at 14:36 Other instance of server crashes without using yjp. – ubear Nov 16 at 15:03 @ubear: Please post the other error report as well.

– aix Nov 16 at 15:05 You'll find it here: wuala. Com/ubear/public – ubear Nov 16 at 15:17.

The two times I've witnessed recurring JVM crashes were both due to hardware failure, namely RAM. Running a memtest utility is the first thing I'd try.

If you're not messing with anything that would cause this directly (which basically means using native code or libraries that call native code) then it's almost always down to a bug in the JVM or hardware issue. If it's been running fine for ages and has now started to crash then it seems to me like the hardware issue is the most likely of the two. Can you run it on another machine to rule out the issue?

Of course, it definitely wouldn't hurt to upgrade to the latest Java update as well.

On the other machine it works fine. But I cant recreate same load on it. – ubear Nov 16 at 15:21.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions