-----------------------------
Please read the FAQ!
<http://java.apache.org/faq/>
-----------------------------


On Tue, 14 Sep 1999, Priatel, Mark (ott) wrote:
> -----------------------------
> Please read the FAQ!
> <http://java.apache.org/faq/>
> -----------------------------
> 
> > (Actually, while writing this I just restarted apache to fix the problem,
> > and it told me httpd wasn't running...hmmm)
> 
> >We've had this problem with servlets hanging a few times and it was always
> a
> >bug in our own servlets/classes that caused it. It usually had to do with
> bug's
> >in the code dealing with the pool of DB connections. Are your servlets
> >connecting to a DB by any chance?
> 
> As a matter of fact, I am! =)
> 
> I'm using the DbConnectionBroker class by Marc Mnich.  Presently, I only
> have about 4 servlets running that each make use of their own broker, and
> since they're not being hit often (except by me and my team), it shouldn't
> be too hard to track down the source of the bug.   If this (-my bug) is only
> happening after a long period of inactivity, is it possible that something
> is happening when the servlets are being destroyed ?  Because these servlets
> are just skeleteons, none of them implement destroy() at all...

   That explains. There is a bug in DbConnectionBroker 1.0.8 (doesn't
close all file-streams -> with time uses up all JVM's file descriptors ->
it crashes). I've mailed Marc about it.

   You could (and should :)) do you own ConnectionBroker, there is a good
article at: http://webdevelopersjournal.com/columns/connection_pool.html

        Tommi

> Anyhow, if you can think of any good places to start looking, let me
> know...I'll start checking for loose connections, and destroying the broker
> on destroy()
> 
> 
> 
> --
> --------------------------------------------------------------
> Please read the FAQ! <http://java.apache.org/faq/>
> To subscribe:        [EMAIL PROTECTED]
> To unsubscribe:      [EMAIL PROTECTED]
> Archives and Other:  <http://java.apache.org/main/mail.html>
> Problems?:           [EMAIL PROTECTED]
> 
> 



--
--------------------------------------------------------------
Please read the FAQ! <http://java.apache.org/faq/>
To subscribe:        [EMAIL PROTECTED]
To unsubscribe:      [EMAIL PROTECTED]
Archives and Other:  <http://java.apache.org/main/mail.html>
Problems?:           [EMAIL PROTECTED]

Reply via email to