Received: from shire.ontko.com (shire.ontko.com [199.164.165.1]) by postgresql.org (Postfix) with ESMTP id D0B16475980 for ; Fri, 19 Apr 2002 14:45:38 -0400 (EDT) Received: from nick (bilbo.ontko.com [199.164.165.101]) by shire.ontko.com (8.9.3/8.9.3/Debian 8.9.3-21) with SMTP id NAA01177; Fri, 19 Apr 2002 13:45:24 -0500 X-Authentication-Warning: shire.ontko.com: Host bilbo.ontko.com [199.164.165.101] claimed to be nick Reply-To: From: "Nick Fankhauser" To: "James Kelty" , Subject: Re: JDBC and servlet Date: Fri, 19 Apr 2002 13:44:04 -0500 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2911.0) X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4522.1200 In-Reply-To: Importance: Normal X-Archive-Number: 200204/181 X-Sequence-Number: 4069 James- We're using the Tomcat servlet engine & have had no similar problems, So I think you can eliminate the JDBC driver from your list & focus on Resin or something in your code. We also quickly decided that we needed to be using a connection pool for a web app. Opening & closing connections really drags your performance down quickly! Regards, -Nick -------------------------------------------------------------------------- Nick Fankhauser nickf@ontko.com Phone 1.765.935.4283 Fax 1.765.962.9788 Ray Ontko & Co. Software Consulting Services http://www.ontko.com/ > -----Original Message----- > From: pgsql-admin-owner@postgresql.org > [mailto:pgsql-admin-owner@postgresql.org]On Behalf Of James Kelty > Sent: Friday, April 19, 2002 1:30 PM > To: pgsql-admin@postgresql.org > Subject: [ADMIN] JDBC and servlet > > > We seem to be having an issue with the JDBC driver, Resin 2.0.5 servlet > engine, and/or postgres 7.1.2. > > Basically what happens is this. In the Java Servlet code, the programmers > are making an explicit close connection call to the database through the > JDBC driver (As they should). Now! When the code us run from the command > line, instead of through the servlet engine (Resin 2.0.5), > everything works > fine. The connection is made to the database, the SQL queries are run, the > output is taken, and the connection to the DB is closed. But! When run > through the servlet engine, the connection is never dropped, and we end up > with these stale connections to the DB, and eventually, we cannot connect, > since the older connections are never closed. Same code, same JVM, same > database, but Resin sits in the middle. Resin isn't really doing anything > other than passing the HTML output to Apache. > > I am also posting this to caucho.com incase it is a Resin issue, but if > anyone has had this problem before, all help would be appreciated > very much. > Thank you! > > -James > > James Kelty > Sr. Unix Systems Administrator > Everbase Systems > 541.488.0801 > jamesk@everbase.net > > > ---------------------------(end of broadcast)--------------------------- > TIP 6: Have you searched our list archives? > > http://archives.postgresql.org >