Received: from localhost (postgresql.org [64.49.215.8]) by postgresql.org (Postfix) with ESMTP id 9DB74475B05 for ; Wed, 14 Aug 2002 17:36:05 -0400 (EDT) Received: from shire.ontko.com (shire.ontko.com [199.164.165.1]) by postgresql.org (Postfix) with ESMTP id 4EC3B475994 for ; Wed, 14 Aug 2002 17:36:03 -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 QAA00472; Wed, 14 Aug 2002 16:36:02 -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: "Chad R. Larson" , "pgsql-admin" Subject: Re: Leftover processes on shutdown - Debian+JDBC Date: Wed, 14 Aug 2002 16:32:30 -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) In-reply-to: <4.2.2.20020814142044.00a79bc0@ecint.ecinet.com> X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4522.1200 Importance: Normal X-Virus-Scanned: by AMaViS new-20020517 X-Archive-Number: 200208/185 X-Sequence-Number: 5300 The tests I did were on a "quiet" system- I shut down Tomcat to ensure that any old transactions were closed, then brought it back up and immediately did the tests before any new transactions had started. (On a development system, so no users could have snuck in.) Our application opens a group of pooled persistent connections on startup, so there were about 4 connections open, but they weren't doing anything. Does -m fast actually close connections on your server? -Nick > -----Original Message----- > From: Chad R. Larson [mailto:clarson@eldocomp.com] > Sent: Wednesday, August 14, 2002 4:24 PM > To: nickf@ontko.com; pgsql-admin > Subject: Re: [ADMIN] Leftover processes on shutdown - Debian+JDBC > > > At 12:48 PM 8/14/02 , Nick Fankhauser wrote: > >Then I tried changing "smart" to "fast", and did the same two tests. The > >results were exactly the same, so apparently "fast" mode does > not forcibly > >disconnect clients as the Docs state. > > As best I can tell, with "smart" the backend waits for the > connection to go > away, "fast" waits for the current transaction to complete and > then exits, > and with "immediate" the backend croaks right away (forcing a > rollback and > recovery on the next start up). > > If your Java servlet has requested some transaction that takes a =very= > long time to run, you'd see what you see. > > > -crl > -- > Chad R. Larson (CRL22) chad@eldocomp.com > Eldorado Computing, Inc. 602-604-3100 > 5353 North 16th Street, Suite 400 > Phoenix, Arizona 85016-3228 >