Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Java > Dump complete java VM state as core dump (not via OS) possible?

Reply
Thread Tools

Dump complete java VM state as core dump (not via OS) possible?

 
 
Chris Uppal
Guest
Posts: n/a
 
      05-14-2006
halfdog wrote:

> PS: Bad? luck Windows users, seems that this ultra-chaotic, scratch
> your nose with your feets-geek tool is only available for linux


Thanks for the follow up. It does sound rather a rather, um, baroque way of
getting at the data you need. But if it works, it works....

-- chris


 
Reply With Quote
 
 
 
 
halfdog
Guest
Posts: n/a
 
      05-16-2006
With the help of a guy from javasoft I managed to do it all: Debug a
dump of a java vm:

$ cat << END > gdb.commands
> gcore tomcat.core
> detach
> quit
> END

$ gdb --pid 26003 -x gdb.commands
$ jsadebugd ..../jdk1.5.0_06/bin/java tomcat.core DebugServer &
$ jdb -connect
sun.jvm.hotspot.jdi.SADebugServerAttachingConnecto r:debugServerName=DebugServer@localhost

You can inspect all the data (threads, stack frames, local variables,
objects) just as if you would have attached to a live VM, only
modifications do not work (step, continue, set...) because a VM core
dump is dead.

This is a really strange way to debug a java application, I never
thought that it could work that way.

 
Reply With Quote
 
 
 
 
ajay.singhes@gmail.com
Guest
Posts: n/a
 
      02-21-2013
Here is a shell script to take and save thread dump in a text file. I have written a shell script to take the thread dump automatically.

visit : http://www.technotechi.com/2012/12/s...read-dump.html

It might help you.
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Re: how to force java core dump? Gordon Beaton Java 0 06-25-2008 06:50 AM
Notes on Complete Java Core & Advanced vermajimohit@gmail.com Java 0 11-13-2006 10:09 AM
JNI FindClass(java/lang/string) causes core dump on AIX 5.2 abhijit.dhariya@gmail.com Java 2 03-31-2006 08:00 PM
Core Solo & Core Duo are not Core microarchitecture; 65nm Pentium M chips bigal Hardware 0 03-22-2006 11:24 AM
Read Core Dump file ns Cisco 8 05-26-2005 03:07 AM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57