Re: Pointers on diagnosing session and thread hangs

2009-06-22 Thread Pete Helgren
@tomcat.apache.org Subject: Re: Pointers on diagnosing session and thread hangs "For curiosity's sake, why did you roll your own DB pooling, rather than letting Tomcat manage it?" That is a good question and one I am not sure I can easily answer since the base code I am working

RE: Pointers on diagnosing session and thread hangs

2009-06-21 Thread Martin Gainty
Jun 2009 13:25:25 -0600 > From: p...@valadd.com > To: users@tomcat.apache.org > Subject: Re: Pointers on diagnosing session and thread hangs > > "For curiosity's sake, why did you roll your own DB pooling, rather than > letting Tomcat manage it?" > > That is a good que

Re: Pointers on diagnosing session and thread hangs

2009-06-21 Thread Pete Helgren
lpful in sorting this all out. Pete Caldarale, Charles R wrote: From: Pete Helgren [mailto:p...@valadd.com] Subject: Re: Pointers on diagnosing session and thread hangs I am looking at the DB Manager code I wrote to see if I am doing something wrong in implementing the pooling. For

RE: Pointers on diagnosing session and thread hangs

2009-06-20 Thread Caldarale, Charles R
> From: Pete Helgren [mailto:p...@valadd.com] > Subject: Re: Pointers on diagnosing session and thread hangs > > I am looking at the DB Manager code I wrote to see if I am doing > something wrong in implementing the pooling. For curiosity's sake, why did you roll your own DB

Re: Pointers on diagnosing session and thread hangs

2009-06-20 Thread Pete Helgren
It was helpful in at least getting us to the lines of code that needed some investigating. It appears to be a blocking issue in our JDBC connections although we don't know what is the cause and why it is so random. Spent quite a bit of time looking into issues with the Commons jars, DBCP and

Re: Pointers on diagnosing session and thread hangs

2009-06-19 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Pete, On 6/18/2009 10:52 AM, Pete Helgren wrote: > Thanks. Looking at the dump I can see there is an issue with a DB > manager we wrote (Blocking). I'll investigate further. It's amazing what you can learn just from looking at a few thread dumps of

Re: Pointers on diagnosing session and thread hangs

2009-06-18 Thread Pete Helgren
osing session and thread hangs when a thread dump is run, by either method, does Tomcat stop running at that point? Nope, keeps on ticking. When you have a hang situation, you usually want to take several thread dumps a few seconds apart and compare. - Chuck THIS COMMUNICATION MAY CO

RE: Pointers on diagnosing session and thread hangs

2009-06-18 Thread Caldarale, Charles R
> From: Pete Helgren [mailto:p...@valadd.com] > Subject: Re: Pointers on diagnosing session and thread hangs > > when a thread dump is run, by either method, does Tomcat > stop running at that point? Nope, keeps on ticking. When you have a hang situation, you usually want t

Re: Pointers on diagnosing session and thread hangs

2009-06-18 Thread Pete Helgren
Caldarale, Charles R wrote: From: Pete Helgren [mailto:p...@valadd.com] Subject: Re: Pointers on diagnosing session and thread hangs Not sure how much change to the environment we want to make before we track down the issue but going to 1.6 is something we'll consider. For JDK 1

RE: Pointers on diagnosing session and thread hangs

2009-06-18 Thread Caldarale, Charles R
> From: Pete Helgren [mailto:p...@valadd.com] > Subject: Re: Pointers on diagnosing session and thread hangs > > Not sure how much change to the environment we want to make > before we track down the issue but going to 1.6 is something > we'll consider. For JDK 1.5,

Re: Pointers on diagnosing session and thread hangs

2009-06-18 Thread Pete Helgren
ointers on diagnosing session and thread hangs "jstack is not currently available on Windows platforms" Move to a 1.6 JDK; your performance will improve, and you have access to more tools, including jstack. - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIET

RE: Pointers on diagnosing session and thread hangs

2009-06-18 Thread Caldarale, Charles R
> From: Pete Helgren [mailto:p...@valadd.com] > Subject: Re: Pointers on diagnosing session and thread hangs > > "jstack is not currently available on Windows platforms" Move to a 1.6 JDK; your performance will improve, and you have access to more tools, including js

Re: Pointers on diagnosing session and thread hangs

2009-06-18 Thread Pete Helgren
this problem, on of which crashed with 825 threads running last night, but I'll continue to pursue a tool that will do something similar and run in Windows. Pete Caldarale, Charles R wrote: From: Pete Helgren [mailto:p...@valadd.com] Subject: Re: Pointers on diagnosing session and t

RE: Pointers on diagnosing session and thread hangs

2009-06-17 Thread Caldarale, Charles R
> From: Pete Helgren [mailto:p...@valadd.com] > Subject: Re: Pointers on diagnosing session and thread hangs > > *How* do you dump a thread? And, what is in it? It's not "a thread" dump, it's a "thread dump" - a capture of the call stacks of every t

Re: Pointers on diagnosing session and thread hangs

2009-06-17 Thread Pete Helgren
Thanks Chris. I'll see if I can get the relevant sections from the server.xml. The folks who have access to the server have gone home for the day. You said: Can you also post a thread dump? I'm surprised that Tomcat is exceeding (or appearing to exceed) its own limit on request processing th

Re: Pointers on diagnosing session and thread hangs

2009-06-17 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Pete, On 6/17/2009 8:33 AM, Pete Helgren wrote: > I am not an expert by any stretch in Tomcat internals so what I need > is a way to determine what is causing the sessions to "hang" and the > threads to begin to grow beyond the maximum (650 in our cas

Pointers on diagnosing session and thread hangs

2009-06-17 Thread Pete Helgren
We are having a devil of a time tracking down why a web app is hanging while running in Tomcat. We are running version 5.5.27 in Windows XP with 2Gb RAM. The symptom is that randomly a user will report that they cannot log into the application. When we view the Tomcat application using Lambd