Re: Blocked threads in Tomcat web app

2009-07-13 Thread Raphael Neve
Rainer Jung-3 wrote: > > > You might want to look at Bloch's book "Effective Java", which has a > section called "Avoid finalizers". The page > > http://java.sun.com/developer/technicalArticles/javase/finalization/ > > also has some introductory material. > > The dbcp pool for instance has

Re: Blocked threads in Tomcat web app

2009-07-13 Thread Rainer Jung
On 13.07.2009 11:31, Raphael Neve wrote: > > Rainer Jung-3 wrote: >> >> [...] >> >> Yup, and the code run by the finalizer makes a network call (likely to >> the database), which seems to be a very bad pattern. Finalizers are not >> a great idea by themselves, but one needs to keep them as simple

Re: Blocked threads in Tomcat web app

2009-07-13 Thread Raphael Neve
Rainer Jung-3 wrote: > > > [...] > > Yup, and the code run by the finalizer makes a network call (likely to > the database), which seems to be a very bad pattern. Finalizers are not > a great idea by themselves, but one needs to keep them as simple as > possible. Doing network communication in

Re: Blocked threads in Tomcat web app

2009-07-13 Thread Rainer Jung
On 13.07.2009 11:05, Raphael Neve wrote: > > Rainer Jung-3 wrote: >> TP-Processor16 owns lock at 0x73a71c40 and thus blocks TP12, TP5 and TP1. >> >> TP16 and TP2 both wait for lock 0x73a71dd0. The thread holding this lock >> is not in your dump. >> >> Since the lock is of type >> org.firebirdsql.g

Re: Blocked threads in Tomcat web app

2009-07-13 Thread Raphael Neve
Rainer Jung-3 wrote: > > TP-Processor16 owns lock at 0x73a71c40 and thus blocks TP12, TP5 and TP1. > > TP16 and TP2 both wait for lock 0x73a71dd0. The thread holding this lock > is not in your dump. > > Since the lock is of type > org.firebirdsql.gds.impl.wire.isc_db_handle_impl, it seems eith

Re: Blocked threads in Tomcat web app

2009-07-13 Thread Rainer Jung
On 13.07.2009 10:12, Raphael Neve wrote: > Hello all, > > I have a problem with a web application using Tomcat 5.5.27 under Fedora > Linux and database Firebird 2.1. > > The application runs fine for a day or so, then I begin getting blocked > threads. Eventually, the heap space runs out and the

Re: Blocked threads in tomcat

2008-11-01 Thread Mohit Anchlia
On Fri, Oct 31, 2008 at 5:52 PM, Caldarale, Charles R <[EMAIL PROTECTED]> wrote: >> From: emerson cargnin [mailto:[EMAIL PROTECTED] >> Subject: Blocked threads in tomcat >> >> Below is the JConsole result, you can see that there are a lot of >> blocked threads on there. >> >> Stack trace: >> java.l

RE: Blocked threads in tomcat

2008-10-31 Thread Caldarale, Charles R
> From: emerson cargnin [mailto:[EMAIL PROTECTED] > Subject: Blocked threads in tomcat > > Below is the JConsole result, you can see that there are a lot of > blocked threads on there. > > Stack trace: > java.lang.Object.wait(Native Method) > org.apache.commons.httpclient.MultiThreadedHttpConnectio