In fact, what I meant was to use a debugger to attach to the VM running in your deployed environment and do remote debugging. But I guess you have solved your problem already.
Derek > -----Original Message----- > From: James Stauffer [mailto:[EMAIL PROTECTED]] > Sent: Tuesday, February 18, 2003 4:23 AM > To: jdjlist > Subject: [jdjlist] RE: Tread stack trace > > > My problem was that there seemed to be an infinite loop in > code run by a > servlet but I didn't know where it was. I ended up using a > profiler to find > which method was using the most time. Thanks for your advise. > > James Stauffer > > > -----Original Message----- > From: H Shankaranarayanan [mailto:[EMAIL PROTECTED]] > Sent: Monday, February 17, 2003 11:03 PM > To: jdjlist > Subject: [jdjlist] RE: Tread stack trace > > > Or otherwise in the uncaughtException() of the ThreadGroup where u can > get exceptions from all threads of that group. > --Shankar > > -----Original Message----- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] > Sent: Tuesday, February 18, 2003 10:18 AM > To: jdjlist > Subject: [jdjlist] RE: Tread stack trace > > > You can always code a try-catch Throwable on any code being > processed by > any running thread. In the catch block, you can invoke one of the > printStackTrace() methods on the Throwable object. If you're spawning > the thread yourself, a good place for the try-catch would be in the > Runnable > run() method. > > Stan > > -----Original Message----- > From: James Stauffer [mailto:[EMAIL PROTECTED]] > Sent: Monday, February 17, 2003 12:05 PM > To: jdjlist > Subject: [jdjlist] RE: Tread stack trace > > Thanks. Is there any way to do that in a deployed environment? > > James Stauffer > > > -----Original Message----- > From: Derek Ngok [mailto:[EMAIL PROTECTED]] > Sent: Monday, February 17, 2003 12:41 PM > To: jdjlist > Subject: [jdjlist] RE: Tread stack trace > > > You can use the debugger from Java IDE (e.g. Forte/Eclipse) to see the > stack trace for any the running thread. > > Derek > > > -----Original Message----- > > From: James Stauffer [mailto:[EMAIL PROTECTED]] > > Sent: Monday, February 17, 2003 8:21 AM > > To: jdjlist > > Subject: [jdjlist] Tread stack trace > > > > > > Is there any way to get a stack trace for a thread that isn't > > the current > > thread? > > > > James Stauffer > > > > > > --- > > You are currently subscribed to jdjlist as: [EMAIL PROTECTED] To > > unsubscribe send a blank email to > > [EMAIL PROTECTED] > > > > --- > You are currently subscribed to jdjlist as: > [EMAIL PROTECTED] To > unsubscribe send a blank email to > [EMAIL PROTECTED] > > --- > You are currently subscribed to jdjlist as: [EMAIL PROTECTED] To > unsubscribe send a blank email to > [EMAIL PROTECTED] > > --- > You are currently subscribed to jdjlist as: [EMAIL PROTECTED] To > unsubscribe send a blank email to > [EMAIL PROTECTED] > > > --- > You are currently subscribed to jdjlist as: [EMAIL PROTECTED] > To unsubscribe send a blank email to > [EMAIL PROTECTED] > > --- > You are currently subscribed to jdjlist as: [EMAIL PROTECTED] > To unsubscribe send a blank email to > [EMAIL PROTECTED] > --- You are currently subscribed to jdjlist as: [EMAIL PROTECTED] To unsubscribe send a blank email to [EMAIL PROTECTED]
