pg.ddx.io  pgsql-odbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Simeó Reig <simeo@incofisa.com>
Cc: pgsql-odbc@postgresql.org
Subject: Re: kill 'zombies'
Date: Mon, 09 Dec 2002 20:11:52 -0500
Message-ID: <21459.1039482712@sss.pgh.pa.us> (raw)
In-Reply-To: <001001c29fdf$737499e0$0500a8c0@incofisa.com>
References: <200212071947.35439.aklaver@attbi.com>
	<001001c29fdf$737499e0$0500a8c0@incofisa.com>

=?iso-8859-1?Q?Sime=F3_Reig?= <simeo@incofisa.com> writes:
> Sometimes access dies and we have lot of 'zombies' connections in our
> server, is it possible to kill only this threads without restart database ?

If it shows as "zombie" in ps, then you can't kill it (because it's
already dead).  kill will have absolutely zero effect.

This should not happen, though.  The only way a Postgres child process
could stay as "zombie" for more than a few milliseconds is if the
postmaster is hung up and unable to notice the dead child process.
If the postmaster were hung, you'd have a lot worse problems than zombie
processes --- you'd not be able to make new connections at all.  So I
think you aren't giving us the straight scoop.  Are you sure that these
zombie processes are actually Postgres processes?  Look to see what
their parent process is.

> PostgreSQL 7.1.3 under freeBSD

You could do worse than update to 7.2.  It's *much* harder for a
misbehaving client to hang the postmaster than it was pre-7.2.
But I'm not convinced that you're describing a Postgres problem.

			regards, tom lane



view thread (3+ messages)  latest in thread

Message-ID: <21459.1039482712@sss.pgh.pa.us>
Permalink:  ../21459.1039482712@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/21459.1039482712@sss.pgh.pa.us

 · 

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-odbc@postgresql.org
  Cc: tgl@sss.pgh.pa.us, simeo@incofisa.com
  Subject: Re: kill 'zombies'
  In-Reply-To: <21459.1039482712@sss.pgh.pa.us>
  References: <200212071947.35439.aklaver@attbi.com> <001001c29fdf$737499e0$0500a8c0@incofisa.com> <21459.1039482712@sss.pgh.pa.us>

* 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