Trying to get thread dump kills the java process

StackTrace support

Trying to get thread dump kills the java process

Postby pdesh » Mon Feb 22, 2010 12:23 pm

Hi,

When I use Adaptj StackTrace to get a thread dump of a java process that is stuck the java process dies and I get an error message "javaw.exe has encountered a problem and needs to close. We are sorry for the inconvenience. Please tell Microsoft about this problem. ...". This problem is happening for all java processes.

On Adaptj StackTrace windows I see a "Please Wait..." dialog and I have to cancel out from there.

It is a Windows XP machine and I have JDK 1.5.0_14 installed. I am running Adaptj StackTrace from web.

Any suggestions on what can be causing this behavior? I have used StackTrace before and it use to work fine.

Thanks.
pdesh
 
Posts: 2
Joined: Mon Feb 22, 2010 12:08 pm

Re: Trying to get thread dump kills the java process

Postby support » Mon Feb 22, 2010 5:49 pm

There are two things you can try:
1. Try to get thread dump when your process is working fine. If you can do this use the "Keep remote thread running" option (Edit->Preferences->Thread dump). It creates a thread in your target process waiting on an event. Without this option StackTrace will have to attach and do a lot of additional work in order to trigger a thread dump.
Get one dump with this option enabled before your process hangs and try to get one when you see the problem.

2. Install Microsoft DebugView from http://technet.microsoft.com/en-us/sysi ... 96647.aspx
Make sure the Debug StackTrace check box is selected under the Tools menu of StackTrace. Try to get a thread dump and send the output you see in DebugView to support@adaptj.com (or post it here).
support
 
Posts: 77
Joined: Thu Apr 27, 2006 10:04 am

Re: Trying to get thread dump kills the java process

Postby pdesh » Tue Feb 23, 2010 3:36 pm

I am seeing this problem for all java processes (even non-stuck ones). When I try to get a thread dump the java process dies. I enabled the StackTrace debug and installed DebugView.

Only output in DebugView is:

[4984] STACKTRACE: Begin inject.
[4984] STACKTRACE: The system cannot find the file specified.
[4984] STACKTRACE: C:\DOCUME~1\pdeshmuk\LOCALS~1\Temp\.aj2.tmp

When I click on Process -> Thread Dump the first line shows up in DebugView and then the java process crashes. The last two lines show up when I click on 'Cancel' in the 'Please Wait...' popup.
pdesh
 
Posts: 2
Joined: Mon Feb 22, 2010 12:08 pm

Re: Trying to get thread dump kills the java process

Postby support » Tue Feb 23, 2010 3:59 pm

You may also need to run both StackTrace and DebugView as an Administrator in order to get access to all the log entries?

Do you see the same issue on a different system?

It looks like StackTrace cannot attach to your process. You should see log entries from both processes (StackTrace and the target) in DebugView.
support
 
Posts: 77
Joined: Thu Apr 27, 2006 10:04 am


Return to General Discussion

Who is online

Users browsing this forum: No registered users and 1 guest

cron