How to analyze jvm emergency file hs_err_pidXYZ.log

When working with webapp in Eclipse and Tomcat (wtp) tomcat crashes and creates a file: hs_err_pid20216.log

I tried to use the Eclipse MAT to parse the file, but the MAT does not recognize the file as something that it can handle, I also tried DAT, and it was the same. It will not appear in the open file dialog box.

What is this file?

What should I use to analyze it?

Do I have to make changes to this file so these tools can parse it.

Log file available as github gist

UPDATE:

See @Dan Cruz answer for more information on how to handle the hs_err_pidXYZ.log file. Curiously, the cause of the crash was Jackson, embarrassed by the cyclical relationship (bidirectional one-to-many), but this is another story ...

+10
java jvm
source share
3 answers

What is this file?

This is a HotSpot error log file in text format.

What should I use to analyze it?

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

For example, using OpenJDK 7 sources, you can find siginfo (information about the signal of the operating system process) in the os::print_siginfo() os_linux.cpp , Registers (CPU register values) in the os::print_context() os_linux_x86.cpp and t .d.

Do I have to make changes to this file so that these tools can analyze it.

This would not be possible since the Eclipse Memory Analyzer requires a heap file that is not a HotSpot error log.

+8
source share

This is a text file. Open it in the editor and try to understand what this means.

+2
source share

https://fastthread.io provides a well descriptive analysis of the file. he just needs to download it and it will return the following items:

  1. Cause of the accident
  2. Recommended Solutions
  3. Active topic (when application crashes)
  4. Location of the main dump
  5. All topics
  6. ...
0
source share

All Articles