How to analyze JVM crash file hs_err_pidXYZ.log

https://fastthread.io gives a well descriptive analyze on the file. it just need to upload it and it will give following items:

  1. Reason to crash
  2. Recommended Solutions
  3. Active Thread (when app crashed)
  4. Core Dump Location
  5. All threads
  6. ...

It's a text file. Open it in an editor and try to understand what it means.


What kind of file it is?

It's a HotSpot error log file in text format.

What should I use to analyze it?

Start by downloading the OpenJDK 6 source bundle. Search through the hotspot *.cpp files for strings in the error log. Review the source files for an explanation of what the error log contains.

For example, using OpenJDK 7 sources, you can find siginfo (the operating system process signal information) in the os::print_siginfo() method of os_linux.cpp, Registers (the CPU registers' values) in the os::print_context() method of os_linux_x86.cpp, etc.

Do I have to make changes to this file sothat it will be possible for these tools to parse it.

That would be impossible since the Eclipse Memory Analyzer requires a heap file, which the HotSpot error log is not.

Tags:

Java

Jvm