You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by madhu sudhan bandari <ma...@gmail.com> on 2009/05/14 10:02:17 UTC

How to get thread dump on Tomcat 6 (windows)

Hi All,

I am running my applications on Tomcat 6.0 at windows 2000 server.

I have tried to use ctrl+break to get thread dump on the command prompt
where the process is running
but didn't get the expected output.

can somebody help me on this. Let me know if you need more information on
the same.

regards
Madhu

Re: How to get thread dump on Tomcat 6 (windows)

Posted by Christopher Schultz <ch...@christopherschultz.net>.
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Madhu,

On 5/20/2009 1:14 PM, madhu sudhan bandari wrote:
> Thanks for quick response..but in the below URL..it was mentioned that
> jstack is not available on windows platforms
> 
> http://java.sun.com/j2se/1.5.0/docs/tooldocs/#debug

You're right. This page also has no mention of jstack:

http://en.wikipedia.org/wiki/Joseph_stalin

...but is just about as relevant.

Instead of looking for documentation that supports your situation, why
no just look at Windows' "installed programs" list and see if it says
JDK or JRE? Or, better yet, throw out whatever you have and install the JDK?

We're not lying to you. It's really there. I promise.

- -chris
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAkoViooACgkQ9CaO5/Lv0PBBlgCfe/Mp2KFjYu69fEteVs3GEcwN
HsIAninqjncEqmWXt4Xp41Vw6qUVN3uB
=wvWl
-----END PGP SIGNATURE-----

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Re: How to get thread dump on Tomcat 6 (windows)

Posted by madhu sudhan bandari <ma...@gmail.com>.
I got it ..thanks to all and also sorry for the trouble..

regards
Madhu

On Wed, May 20, 2009 at 10:57 PM, Caldarale, Charles R <
Chuck.Caldarale@unisys.com> wrote:

> > From: madhu sudhan bandari [mailto:madhu.bandari@gmail.com]
> > Subject: Re: How to get thread dump on Tomcat 6 (windows)
> >
> > Thanks for quick response..but in the below URL..it was mentioned that
> > jstack is not available on windows platforms
> >
> > http://java.sun.com/j2se/1.5.0/docs/tooldocs/#debug
>
> Why are you looking at 1.5 doc when you're using a 1.6 JDK?
>
> Look in the JDK 1.6 bin folder, which is what everyone has been telling
> you.
>
>  - Chuck
>
>
> THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
> MATERIAL and is thus for use only by the intended recipient. If you received
> this in error, please contact the sender and delete the e-mail and its
> attachments from all computers.
>
>
> ---------------------------------------------------------------------
>  To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
>
>

RE: How to get thread dump on Tomcat 6 (windows)

Posted by "Caldarale, Charles R" <Ch...@unisys.com>.
> From: madhu sudhan bandari [mailto:madhu.bandari@gmail.com]
> Subject: Re: How to get thread dump on Tomcat 6 (windows)
> 
> Thanks for quick response..but in the below URL..it was mentioned that
> jstack is not available on windows platforms
> 
> http://java.sun.com/j2se/1.5.0/docs/tooldocs/#debug

Why are you looking at 1.5 doc when you're using a 1.6 JDK?

Look in the JDK 1.6 bin folder, which is what everyone has been telling you.

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Re: How to get thread dump on Tomcat 6 (windows)

Posted by madhu sudhan bandari <ma...@gmail.com>.
Hi Rainer,

Thanks for quick response..but in the below URL..it was mentioned that
jstack is not available on windows platforms

http://java.sun.com/j2se/1.5.0/docs/tooldocs/#debug

I am just pasting the contents of above URL for your quick reference

 Troubleshooting Tools The following tools can be used for specific
troubleshooting tasks. The tools described in this section are unsupported
and *experimental* in nature and should be used with that in mind. They may
not be available in future JDK versions.

These tools are *not currently available on Windows platforms*.

  Tool Name Brief Description *jinfo*
<http://java.sun.com/j2se/1.5.0/docs/tooldocs/share/jinfo.html> *
Experimental* - Configuration Info for Java - Prints configuration
information for for a given process or core file or a remote debug server.
*jmap* <http://java.sun.com/j2se/1.5.0/docs/tooldocs/share/jmap.html> *
Experimental* - Memory Map for Java - Prints shared object memory maps or
heap memory details of a given process or core file or a remote debug
server.  *jsadebugd*<http://java.sun.com/j2se/1.5.0/docs/tooldocs/share/jsadebugd.html>
*Experimental* - Serviceability Agent Debug Daemon for Java - Attaches to a
process or core file and acts as a debug server.
*jstack*<http://java.sun.com/j2se/1.5.0/docs/tooldocs/share/jstack.html>
*Experimental* - Stack Trace for Java - Prints a stack trace of threads for
a given process or core file or remote debug server.

Regards

Madhu


On 5/20/09, Rainer Jung <ra...@kippdata.de> wrote:
>
> On 20.05.2009 18:37, madhu sudhan bandari wrote:
> > Hi Chris,
> >
> > I have installed JDK1.6 only..is jconsole solves my problem?..
>
> As Chris pointed out correctly, jstack *is* part of a recent version of
> the JDK 1.6. If you really have the JDK 1.6.0, then there is a
> jstack.exe in the bin folder.
>
> We suspect you did not download a JDK 1.6.0 but instead a JRE 1.6.0 (not
> the development kit but instead the smaller runtime environment). That's
> not enough.
>
> And no: jconsole is not the way to go for a thread dump.
>
> Regards,
>
> Rainer
>
> > On 5/19/09, Christopher Schultz <ch...@christopherschultz.net> wrote:
> > Madhu,
> >
> > On 5/19/2009 4:21 AM, madhu sudhan bandari wrote:
> >>>> i have downloaded JDK1.6 and installed on windows. but i didn't find
> > jstack
> >>>> utility in the package.
> > Did you get the JDK or the JRE? I have the JRE installed and it looks
> > like jstack.exe is not included. You might want to try the full JDK.
> >
> > -chris
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
>
>

Re: How to get thread dump on Tomcat 6 (windows)

Posted by Rainer Jung <ra...@kippdata.de>.
On 20.05.2009 18:37, madhu sudhan bandari wrote:
> Hi Chris,
> 
> I have installed JDK1.6 only..is jconsole solves my problem?..

As Chris pointed out correctly, jstack *is* part of a recent version of
the JDK 1.6. If you really have the JDK 1.6.0, then there is a
jstack.exe in the bin folder.

We suspect you did not download a JDK 1.6.0 but instead a JRE 1.6.0 (not
the development kit but instead the smaller runtime environment). That's
not enough.

And no: jconsole is not the way to go for a thread dump.

Regards,

Rainer

> On 5/19/09, Christopher Schultz <ch...@christopherschultz.net> wrote:
> Madhu,
> 
> On 5/19/2009 4:21 AM, madhu sudhan bandari wrote:
>>>> i have downloaded JDK1.6 and installed on windows. but i didn't find
> jstack
>>>> utility in the package.
> Did you get the JDK or the JRE? I have the JRE installed and it looks
> like jstack.exe is not included. You might want to try the full JDK.
> 
> -chris

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Re: How to get thread dump on Tomcat 6 (windows)

Posted by madhu sudhan bandari <ma...@gmail.com>.
Hi Chris,

I have installed JDK1.6 only..is jconsole solves my problem?..

Rgards
Madhu


On 5/19/09, Christopher Schultz <ch...@christopherschultz.net> wrote:
>
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Madhu,
>
> On 5/19/2009 4:21 AM, madhu sudhan bandari wrote:
> > i have downloaded JDK1.6 and installed on windows. but i didn't find
> jstack
> > utility in the package.
>
> Did you get the JDK or the JRE? I have the JRE installed and it looks
> like jstack.exe is not included. You might want to try the full JDK.
>
> - -chris
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.9 (MingW32)
> Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
>
> iEYEARECAAYFAkoSpsoACgkQ9CaO5/Lv0PAyrACgvkYcDSewQH8Sp1sRgO4dnBBA
> IREAoIyRZ/N1gWzvrWfinwyN8B0Ah3e9
> =ZYsW
> -----END PGP SIGNATURE-----
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
>
>

Re: How to get thread dump on Tomcat 6 (windows)

Posted by Christopher Schultz <ch...@christopherschultz.net>.
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Madhu,

On 5/19/2009 4:21 AM, madhu sudhan bandari wrote:
> i have downloaded JDK1.6 and installed on windows. but i didn't find jstack
> utility in the package.

Did you get the JDK or the JRE? I have the JRE installed and it looks
like jstack.exe is not included. You might want to try the full JDK.

- -chris
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAkoSpsoACgkQ9CaO5/Lv0PAyrACgvkYcDSewQH8Sp1sRgO4dnBBA
IREAoIyRZ/N1gWzvrWfinwyN8B0Ah3e9
=ZYsW
-----END PGP SIGNATURE-----

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Re: How to get thread dump on Tomcat 6 (windows)

Posted by Michael Ludwig <mi...@gmx.de>.
Caldarale, Charles R schrieb am 19.05.2009 um 08:37:23 (-0500):
> > From: Gregor Schneider [mailto:rc46fi@googlemail.com]
> > Subject: Re: How to get thread dump on Tomcat 6 (windows)

A late reply to this:

> > Thread-Dump on Windows:
> > 
> > If I'm not mistaken, the key-combination <Ctrl><Break> should 
> > do the trick on /most/ JVMs
> 
> Not when running as a service on Windows.

As far as I can see, there are at least three ways to get a thread dump:

(1) using the jstack tool;

(2) hitting Ctrl-Break in the console (cmd.exe window), even when
running as a service (needs the box "Allow service to interact with
desktop" checked to show the console, of course);

(3) clicking the icon in the notification area (systray) after launching
"tomcat6w.exe //MS//", see [1].

Michael Ludwig

[1] http://commons.apache.org/daemon/procrun.html

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


RE: How to get thread dump on Tomcat 6 (windows)

Posted by "Caldarale, Charles R" <Ch...@unisys.com>.
> From: Gregor Schneider [mailto:rc46fi@googlemail.com]
> Subject: Re: How to get thread dump on Tomcat 6 (windows)
> 
> but only with 1.6?

Do you have access to another Windows box to experiment with?

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Re: How to get thread dump on Tomcat 6 (windows)

Posted by Gregor Schneider <rc...@googlemail.com>.
hm, there are only two possible scenarioes I can think of:

- either the key-combination <ctrl-brk> is somehow intercepted in the
swing-app I was using (actually pretty unlikely)

- german keyboard might interfere

but only with 1.6?


strrrrrrange...

cheers

gregor
-- 
just because your paranoid, doesn't mean they're not after you...
gpgp-fp: 79A84FA526807026795E4209D3B3FE028B3170B2
gpgp-key available
@ http://pgpkeys.pca.dfn.de:11371
@ http://pgp.mit.edu:11371/
skype:rc46fi

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Re: How to get thread dump on Tomcat 6 (windows)

Posted by Christopher Schultz <ch...@christopherschultz.net>.
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Chuck,

On 5/19/2009 10:18 AM, Caldarale, Charles R wrote:
> I get thread dumps from Tomcat and two different swing apps
> under JVM 1.6 on Vista with ctrl-break done in their respective
> windows; also works with jstack, of course.

Same here:

C:\Users\chris\Desktop>java -showversion TestSynch 100000000
java version "1.6.0_13"
Java(TM) SE Runtime Environment (build 1.6.0_13-b03)
Java HotSpot(TM) Client VM (build 11.3-b02, mixed mode, sharing)

t1 atomic time: 4756; ticks: 49541073
t0 atomic time: 4754; ticks: 50458928
- ---------- CTRL-BREAK Pressed Here -----------------
2009-05-19 11:30:58
Full thread dump Java HotSpot(TM) Client VM (11.3-b02 mixed mode, sharing):

"t1" prio=6 tid=0x01acd400 nid=0x2e4c runnable [0x03ddf000..0x03ddfd68]
   java.lang.Thread.State: RUNNABLE
        at TestSynch.synchronize(TestSynch.java:72)
        at TestSynch.run(TestSynch.java:47)

"Low Memory Detector" daemon prio=6 tid=0x01aaec00 nid=0x2310 runnable
[0x000000
00..0x00000000]
   java.lang.Thread.State: RUNNABLE

"CompilerThread0" daemon prio=10 tid=0x01aaa000 nid=0x20bc waiting on
condition
[0x00000000..0x03cef714]
   java.lang.Thread.State: RUNNABLE

"Attach Listener" daemon prio=10 tid=0x01aa7000 nid=0x2088 runnable
[0x00000000.
.0x00000000]
   java.lang.Thread.State: RUNNABLE

"Signal Dispatcher" daemon prio=10 tid=0x01a9c800 nid=0x22ec waiting on
conditio
n [0x00000000..0x00000000]
   java.lang.Thread.State: RUNNABLE

"Finalizer" daemon prio=8 tid=0x01a94c00 nid=0xb98 in Object.wait()
[0x03bff000.
.0x03bffc68]
   java.lang.Thread.State: WAITING (on object monitor)
        at java.lang.Object.wait(Native Method)
        - waiting on <0x24180b28> (a java.lang.ref.ReferenceQueue$Lock)
        at java.lang.ref.ReferenceQueue.remove(Unknown Source)
        - locked <0x24180b28> (a java.lang.ref.ReferenceQueue$Lock)
        at java.lang.ref.ReferenceQueue.remove(Unknown Source)
        at java.lang.ref.Finalizer$FinalizerThread.run(Unknown Source)

"Reference Handler" daemon prio=10 tid=0x01a93400 nid=0x2c3c in
Object.wait() [0
x03baf000..0x03bafce8]
   java.lang.Thread.State: WAITING (on object monitor)
        at java.lang.Object.wait(Native Method)
        - waiting on <0x24180a30> (a java.lang.ref.Reference$Lock)
        at java.lang.Object.wait(Object.java:485)
        at java.lang.ref.Reference$ReferenceHandler.run(Unknown Source)
        - locked <0x24180a30> (a java.lang.ref.Reference$Lock)

"main" prio=6 tid=0x01a71800 nid=0xedc waiting for monitor entry
[0x0015f000..0x
0015fe3c]
   java.lang.Thread.State: BLOCKED (on object monitor)
        at TestSynch.synchronize(TestSynch.java:69)
        - locked <0x28184fa8> (a java.lang.Class for TestSynch)
        at TestSynch.main(TestSynch.java:27)

"VM Thread" prio=10 tid=0x01a91c00 nid=0xe50 runnable

"VM Periodic Task Thread" prio=10 tid=0x01aafc00 nid=0x2288 waiting on
condition


JNI global references: 598

Heap
 def new generation   total 960K, used 217K [0x24180000, 0x24280000,
0x24660000)

  eden space 896K,  24% used [0x24180000, 0x241b6788, 0x24260000)
  from space 64K,   0% used [0x24260000, 0x24260000, 0x24270000)
  to   space 64K,   0% used [0x24270000, 0x24270000, 0x24280000)
 tenured generation   total 4096K, used 0K [0x24660000, 0x24a60000,
0x28180000)
   the space 4096K,   0% used [0x24660000, 0x24660000, 0x24660200,
0x24a60000)
 compacting perm gen  total 12288K, used 73K [0x28180000, 0x28d80000,
0x2c180000
)
   the space 12288K,   0% used [0x28180000, 0x28192440, 0x28192600,
0x28d80000)
    ro space 8192K,  63% used [0x2c180000, 0x2c698810, 0x2c698a00,
0x2c980000)
    rw space 12288K,  53% used [0x2c980000, 0x2cfed300, 0x2cfed400,
0x2d580000)

t1 synchronized time: 21290; ticks: 50079559
t0 synchronized time: 21290; ticks: 49920442

C:\Users\chris\Desktop>
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAkoS0SMACgkQ9CaO5/Lv0PAingCcD3zyomn+uDCQvEolyAePrgJe
bEwAn2AWMGXNWyMNDfUTpHQhTpJANoPU
=toV2
-----END PGP SIGNATURE-----

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


RE: How to get thread dump on Tomcat 6 (windows)

Posted by "Caldarale, Charles R" <Ch...@unisys.com>.
> From: Gregor Schneider [mailto:rc46fi@googlemail.com]
> Subject: Re: How to get thread dump on Tomcat 6 (windows)
> 
> is he running TC as a service?

The OP does not appear to be running Tomcat as a service, but since he couldn't find jstack.exe in the JDK, the reliability of his postings may not be 100%.

> Just tested it with a sample Java-Swing-Application:
> - getting a thread-dump with <ctrl/break> on JDK 1.5, don't get it
> with JDK 1.6 - hm, strange...

Odd - I get thread dumps from Tomcat and two different swing apps under JVM 1.6 on Vista with ctrl-break done in their respective windows; also works with jstack, of course.

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Re: How to get thread dump on Tomcat 6 (windows)

Posted by Gregor Schneider <rc...@googlemail.com>.
Hi Chuck,

is he running TC as a service? I couldn't find any information on that
in the post - otoh, as Rainer pointed out, my eysight seems not to be
the best...

Just tested it with a sample Java-Swing-Application:

- getting a thread-dump with <ctrl/break> on JDK 1.5, don't get it
with JDK 1.6 - hm, strange...

Cheers

Gregor
-- 
just because your paranoid, doesn't mean they're not after you...
gpgp-fp: 79A84FA526807026795E4209D3B3FE028B3170B2
gpgp-key available
@ http://pgpkeys.pca.dfn.de:11371
@ http://pgp.mit.edu:11371/
skype:rc46fi

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


RE: How to get thread dump on Tomcat 6 (windows)

Posted by "Caldarale, Charles R" <Ch...@unisys.com>.
> From: Gregor Schneider [mailto:rc46fi@googlemail.com]
> Subject: Re: How to get thread dump on Tomcat 6 (windows)
> 
> Thread-Dump on Windows:
> 
> If I'm not mistaken, the key-combination <Ctrl><Break> should 
> do the trick on /most/ JVMs

Not when running as a service on Windows.

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Re: How to get thread dump on Tomcat 6 (windows)

Posted by Gregor Schneider <rc...@googlemail.com>.
Thread-Dump on Windows:

If I'm not mistaken, the key-combination <Ctrl><Break> should do the
trick on /most/ JVMs

Rgds

Gregor
-- 
just because your paranoid, doesn't mean they're not after you...
gpgp-fp: 79A84FA526807026795E4209D3B3FE028B3170B2
gpgp-key available
@ http://pgpkeys.pca.dfn.de:11371
@ http://pgp.mit.edu:11371/
skype:rc46fi

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


RE: How to get thread dump on Tomcat 6 (windows)

Posted by "Caldarale, Charles R" <Ch...@unisys.com>.
> From: madhu sudhan bandari [mailto:madhu.bandari@gmail.com]
> Subject: Re: How to get thread dump on Tomcat 6 (windows)
> 
> i have downloaded JDK1.6 and installed on windows. but i didn't find
> jstack utility in the package..

If you really downloaded and installed a JDK, the jstack.exe program will be in the JDK's bin directory (not in the internal jre/bin folder).  This is the link for JDK 6u13:
https://cds.sun.com/is-bin/INTERSHOP.enfinity/WFS/CDS-CDS_Developer-Site/en_US/-/USD/ViewProductDetail-Start?ProductRef=jdk-6u13-oth-JPR@CDS-CDS_Developer

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Re: How to get thread dump on Tomcat 6 (windows)

Posted by madhu sudhan bandari <ma...@gmail.com>.
Hi Christopher,

i have downloaded JDK1.6 and installed on windows. but i didn't find jstack
utility in the package.. also googled for downloaind the same and found that
it will support on windows..

please suggest any other means of getting the thread dump..

regards
Madhu Bandari

On Fri, May 15, 2009 at 3:11 PM, madhu sudhan bandari <
madhu.bandari@gmail.com> wrote:

> Thanks Christopher..i'll do that.
>
>
> On Fri, May 15, 2009 at 12:29 AM, Christopher Schultz <
> chris@christopherschultz.net> wrote:
>
>> -----BEGIN PGP SIGNED MESSAGE-----
>> Hash: SHA1
>>
>> Madhu,
>>
>> On 5/14/2009 4:02 AM, madhu sudhan bandari wrote:
>> > I am running my applications on Tomcat 6.0 at windows 2000 server.
>> >
>> > I have tried to use ctrl+break to get thread dump on the command prompt
>> > where the process is running but didn't get the expected output.
>>
>> What output /did/ you get?
>>
>> Since you're using Tomcat 6.0 you should be running Java 1.5 or better.
>> If you are running Java 1.6, you should have a program called
>> "jstack.exe" available, which can produce a thread dump.
>>
>> - -chris
>> -----BEGIN PGP SIGNATURE-----
>> Version: GnuPG v1.4.9 (MingW32)
>> Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
>>
>> iEYEARECAAYFAkoMagsACgkQ9CaO5/Lv0PAjuQCgj3d5hvEqdXHSeu0YAv/efmPm
>> sFkAoMRGQh5Dl6PZnMhzkv2SV58mQ+HT
>> =9oiX
>> -----END PGP SIGNATURE-----
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
>> For additional commands, e-mail: users-help@tomcat.apache.org
>>
>>
>

Re: How to get thread dump on Tomcat 6 (windows)

Posted by madhu sudhan bandari <ma...@gmail.com>.
Thanks Christopher..i'll do that.

On Fri, May 15, 2009 at 12:29 AM, Christopher Schultz <
chris@christopherschultz.net> wrote:

> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Madhu,
>
> On 5/14/2009 4:02 AM, madhu sudhan bandari wrote:
> > I am running my applications on Tomcat 6.0 at windows 2000 server.
> >
> > I have tried to use ctrl+break to get thread dump on the command prompt
> > where the process is running but didn't get the expected output.
>
> What output /did/ you get?
>
> Since you're using Tomcat 6.0 you should be running Java 1.5 or better.
> If you are running Java 1.6, you should have a program called
> "jstack.exe" available, which can produce a thread dump.
>
> - -chris
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.9 (MingW32)
> Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
>
> iEYEARECAAYFAkoMagsACgkQ9CaO5/Lv0PAjuQCgj3d5hvEqdXHSeu0YAv/efmPm
> sFkAoMRGQh5Dl6PZnMhzkv2SV58mQ+HT
> =9oiX
> -----END PGP SIGNATURE-----
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
>
>

Re: How to get thread dump on Tomcat 6 (windows)

Posted by Christopher Schultz <ch...@christopherschultz.net>.
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Madhu,

On 5/14/2009 4:02 AM, madhu sudhan bandari wrote:
> I am running my applications on Tomcat 6.0 at windows 2000 server.
> 
> I have tried to use ctrl+break to get thread dump on the command prompt
> where the process is running but didn't get the expected output.

What output /did/ you get?

Since you're using Tomcat 6.0 you should be running Java 1.5 or better.
If you are running Java 1.6, you should have a program called
"jstack.exe" available, which can produce a thread dump.

- -chris
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAkoMagsACgkQ9CaO5/Lv0PAjuQCgj3d5hvEqdXHSeu0YAv/efmPm
sFkAoMRGQh5Dl6PZnMhzkv2SV58mQ+HT
=9oiX
-----END PGP SIGNATURE-----

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org