tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Charles Richard <charle...@thelearningbar.com>
Subject Re: Tomcat thread dump analysis
Date Thu, 09 May 2013 12:03:14 GMT
On Wed, May 8, 2013 at 6:16 PM, Christopher Schultz <
chris@christopherschultz.net> wrote:

> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA256
>
> Charles,
>
> On 5/8/13 1:57 PM, Charles Richard wrote:
> > I appreciate the friendly feedback! How do I show a lock? I don't
> > see any threads that have a "BLOCKED" status. I do get this when I
> > do a grep:
> >
> > [root@web01 stacks]# grep locked tomcat1_20130507_14\:38.stack | wc
> > -l 154
> >
> > My connection pool is 150 and I do see 150 locks in the following
> > type scenario which has a "locked":
> >
> > "TP-Processor416" daemon prio=10 tid=0x00002aff2939a800 nid=0x5ae7
> > in Object.wait() [0x00002aff632ae000] java.lang.Thread.State:
> > WAITING (on object monitor) at java.lang.Object.wait(Native
> > Method) - waiting on <0x00002afe240fbc58> (a
> > com.mchange.v2.resourcepool.BasicResourcePool)
>
> This only tells you the identity of the object monitor (the "lock").
> What you are missing is the identities of the object monitors already
> held by this and other threads. I believe your thread dump does not
> include any of these.
>
> IIRC, the Oracle JVM can (when prodded) produce a thread dump which
> includes deadlock detection and will show the suspected-deadlocked
> threads, the held lock ids and what threads are waiting on.
>
> Perhaps you can get a "better" thread dump via other means? How did
> you get the one you have now?
>
> - -chris
>

I got the current dump by using jstack which is in my 1.6.0_22 jdk
binaries. How should i produce this stack? What would a dump showing a
suspected-deadlocked threads look like?

Thanks!

Cheers,
Charles

-----BEGIN PGP SIGNATURE-----
> Version: GnuPG/MacGPG2 v2.0.17 (Darwin)
> Comment: GPGTools - http://gpgtools.org
> Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/
>
> iQIcBAEBCAAGBQJRisCwAAoJEBzwKT+lPKRYmlMP/35U86kwWXyYPVC3ejSTvF0O
> OHnn+RDbNLX2Qt1s4ALEUBl7rU4fu3hOEaG04DVzs17Ni/fongDzBhEdWyzcSGui
> JeJzAyoZBj2bc86mLf5NraAZRiZakdrqr6iWaQt1bhgKde5TsoP1qn4+5oPsYzEw
> HhOveggibKaLZkhheZZFAvFFrbpFM7IblrYyA7905b7Q2ZluvRdqEkcm5NR9LxOJ
> Zdrn3e3v0vV9rpTDtvi+nHlHHtj7VpJkaOCLQH8ra2az9Nq/ZXqhLROEdsA5hYJt
> PjUooQYYCq09J0yi3uujBzOyiC3hosSoo02dclknil4Ib6SlGfejsN0eUY3IAPoY
> By/AZ+ybz9oa8ts52NwARpaQvoINzNnFWE5Gq9jU0RqEUdLP0ociRrbWsCb8UjFk
> jmLRU5lYG287MwviKtYHPilR/Dt4fD9YAab5tuP+v5XULFEbN5INtFcnYiWpNLxm
> MCAvORVyYrWAgrRXR9JNtN8ZouX/CygHiV/312JKJwCnj34TqrYYXjhDaGqUq368
> 4QH5ZkJYAsEUa53W6zsxp0PS1EkKjgQ4LFqgFqmZdA/c874tF9WjtO2obWyIqHan
> WQkNDUTW1pahp+4v+Fyh7QfwqbO8PVtg2lqWNfkHK1gEkIAF30/Wo3IrbTtfUYJu
> 7yoQIzW3qJRRdVJ8Id3S
> =Xkzn
> -----END PGP SIGNATURE-----
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
>
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message