pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Junichi Sako <sako@cyphertec.net>
To: pgsql-admin@postgresql.org
Subject: postgres's idle process remains on BSD
Date: Wed, 24 Sep 2003 15:18:16 +0900
Message-ID: <20030924151113.7D3D.SAKO@cyphertec.net> (raw)

Dear all,

I am running a PostgreSQL 7.3.2 on a FreeBSD.  A Tomcat server
connects to it locally by JDBC.
I created a test module which sends a http request to the Tomcat
server to store some data on DB.  The test module sends a http
request 5000 times continusly. After sending 5000 requests, a lot
of postgres idle processes remains, and if I send more request to
the server, the postgres stops accepting connection when the
number of postgres processes reaches 127 which is the same number
as postgres's max_connections.  The idle processes do not
disappear even two days passed.

Anybody have any idea what is going on?


At the beginning only 3 processes:
99832  p0- S      0:42.80 /usr/local/bin/postmaster (postgres)
99836  p0- S      0:03.71 postmaster: stats buffer process    (postgres)
99838  p0- S      0:08.67 postmaster: stats collector process (postgres)

As I acess to the Tomcat server:
18263  p0- I      0:00.01 postmaster: test tdb 127.0.0.1 idle (postgres)
18283  p0- I      0:00.01 postmaster: test tdb 127.0.0.1 idle (postgres)
18445  p0- I      0:00.01 postmaster: test tdb 127.0.0.1 idle (postgres)
these idle processes grow upto 127 processes which is same as 
max_connection setting.

The specs:
FreeBSD 5.1-RELEASE-p3
Apache 2.0.47
PostgreSQL 7.3.2
J2SDK 1.4.1p3_3
Jakarta-Tomcat 4.1.27

Thanks for any help,

Jun




Message-ID: <20030924151113.7D3D.SAKO@cyphertec.net>
Permalink:  ../20030924151113.7D3D.SAKO@cyphertec.net/
Also on:    postgresql.org/message-id/20030924151113.7D3D.SAKO@cyphertec.net

 · 

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: sako@cyphertec.net
  Subject: Re: postgres's idle process remains on BSD
  In-Reply-To: <20030924151113.7D3D.SAKO@cyphertec.net>
  References: <20030924151113.7D3D.SAKO@cyphertec.net>

* 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