Solved

How to debug a java application core dump on solaris 5.8

Posted on 2004-04-12
4
3,223 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

Live: Real-Time Solutions, Start Here

Receive instant 1:1 support from technology experts, using our real-time conversation and whiteboard interface. Your first 5 minutes are always free.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
nodeip 9 80
Unix / Linux grid computing 5 156
cron job says it ran, no results 25 118
Cygwin VIM in WIndows 2007: Unable to copy text to Windows 10 65
This tech tip describes how to install the Solaris Operating System from a tape backup that was created using the Solaris flash archive utility. I have used this procedure on the Solaris 8 and 9 OS, and it shoudl also work well on the Solaris 10 rel…
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 several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:

776 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