X-Original-To: pgsql-admin-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [64.117.224.130]) by svr1.postgresql.org (Postfix) with ESMTP id E1883D1B56C for ; Wed, 24 Sep 2003 06:19:00 +0000 (GMT) Received: from svr1.postgresql.org ([64.117.224.193]) by localhost (neptune.hub.org [64.117.224.130]) (amavisd-new, port 10024) with ESMTP id 13537-07 for ; Wed, 24 Sep 2003 03:18:43 -0300 (ADT) Received: from host2.christianwebhost.com (host2.christianwebhost.com [209.239.34.84]) by svr1.postgresql.org (Postfix) with ESMTP id 2EEACD1B522 for ; Wed, 24 Sep 2003 03:18:27 -0300 (ADT) Received: from [192.168.1.109] (YahooBB219061232113.bbtec.net [219.61.232.113]) by host2.christianwebhost.com (8.12.10/8.12.10) with ESMTP id h8O6IQMl011379 for ; Wed, 24 Sep 2003 02:18:27 -0400 Date: Wed, 24 Sep 2003 15:18:16 +0900 From: Junichi Sako To: pgsql-admin@postgresql.org Subject: postgres's idle process remains on BSD Message-Id: <20030924151113.7D3D.SAKO@cyphertec.net> MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit X-Mailer: Becky! ver. 2.06.02 X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200309/387 X-Sequence-Number: 10475 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