Forum Stats

  • 3,825,755 Users
  • 2,260,558 Discussions
  • 7,896,660 Comments

Discussions

How to read a core file?

Heisemberg
Heisemberg Member Posts: 21
edited Jul 7, 2017 2:35PM in Java System Web Server

A core has been generated. I know this file contains details of some crash or error occurred into the JVM. However, what tool are you used to load this core file?

core.4849890.06045307

Answers

  • handat
    handat Member Posts: 4,688 Gold Crown
    edited Jul 4, 2017 7:34PM

    Use jmap to convert the core file into a hprof file and then you can use any java profiling tool like for example VisualVM to analyse it.

  • Heisemberg
    Heisemberg Member Posts: 21
    edited Jul 7, 2017 2:35PM

    Hi handat, thank you for letting me know about jmap.

    However, the system is AIX and I couldn't find jmap out there. On other hands, there's dbx command, which loads well that core file.

    I am not sure how far can I go with dbx, what can be read? please help

    $ ls core*

    core.11599898.04034722

    $ dbx

    Type 'help' for help.

    enter object file name (default is `a.out', ^D to exit): core.11599898.04034722

    Core file "core.11599898.04034722" program "webservd" does not match current program (ignored)

    warning: cannot execute core.11599898.04034722

    reading symbolic information ...

    (dbx)

This discussion has been closed.