Solved

How to debug a java application core dump on solaris 5.8

Posted on 2004-04-12
4
3,218 Views
Last Modified: 2013-12-21
Hi,
i was running a huge java application on Solaris 5.8 for performance tuning. After 18 Hours the process exited with a core dump. The dump is from Java program. Can anybody tell me which tool i can use to analyse the core dump.
0
Comment
Question by:kiranmaiem
4 Comments
 
LVL 9

Accepted Solution

by:
Alf666 earned 500 total points
ID: 10804558
gdb would be the answer. The java program is written in C.

The problem here is that you are going to try to debug the Java program itself. This might not lead you far.

Two kinds of "crashes" can happen on a Java app. The JVM can exit if your program issued an exception (handled or not). This goes to debugging your app.
But if the java program itself is core dumping, then it's very bad. Did you try a more recent java distrib ?

To use gdb, just run :

gdb java core_file

Then, you can type "where" to see where it crashed. But I doubt you'll have all the symbols. So I doubt it will be vrey useful.
0
 
LVL 51

Expert Comment

by:ahoffmann
ID: 10807666
if you don't have gdb, adb can also be used (a bit more cumbersome, but programmers get used to it ;-)
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Attention: This article will no longer be maintained. If you have any questions, please feel free to mail me. jgh@FreeBSD.org Please see http://www.freebsd.org/doc/en_US.ISO8859-1/articles/freebsd-update-server/ for the updated article. It is avail…
Installing FreeBSD… FreeBSD is a darling of an operating system. The stability and usability make it a clear choice for servers and desktops (for the cunning). Savvy?  The Ports collection makes available every popular FOSS application and packag…
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…

896 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now