pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Nick Fankhauser <nickf@ontko.com>
To: Chad R. Larson <clarson@eldocomp.com>
To: pgsql-admin <pgsql-admin@postgresql.org>
Subject: Re: Leftover processes on shutdown - Debian+JDBC
Date: Wed, 14 Aug 2002 16:32:30 -0500
Message-ID: <NEBBLAAHGLEEPCGOBHDGKECGFJAA.nickf@ontko.com> (raw)
In-Reply-To: <4.2.2.20020814142044.00a79bc0@ecint.ecinet.com>

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
>




view thread (17+ messages)  latest in thread

Message-ID: <NEBBLAAHGLEEPCGOBHDGKECGFJAA.nickf@ontko.com>
Permalink:  ../NEBBLAAHGLEEPCGOBHDGKECGFJAA.nickf@ontko.com/
Also on:    postgresql.org/message-id/NEBBLAAHGLEEPCGOBHDGKECGFJAA.nickf@ontko.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-admin@postgresql.org
  Cc: nickf@ontko.com, clarson@eldocomp.com
  Subject: Re: Leftover processes on shutdown - Debian+JDBC
  In-Reply-To: <NEBBLAAHGLEEPCGOBHDGKECGFJAA.nickf@ontko.com>
  References: <4.2.2.20020814142044.00a79bc0@ecint.ecinet.com> <NEBBLAAHGLEEPCGOBHDGKECGFJAA.nickf@ontko.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox