From: Josh Berkus <josh@agliodbs.com>
To: pgsql-performance@postgresql.org
Cc: Fei Liu <fei.liu@aepnetworks.com>
Subject: Re: large number of connected connections to postgres database (v8.0)
Date: Fri, 20 Jul 2007 16:28:27 -0700
Message-ID: <200707201628.28266.josh@agliodbs.com> (raw)
In-Reply-To: <469D0F99.1030002@aepnetworks.com>
References: <469D0F99.1030002@aepnetworks.com>
Fei Liu,
> It appears my multi-thread application (100 connections every 5 seconds)
> is stalled when working with postgresql database server. I have limited
> number of connections in my connection pool to postgresql to 20. At the
> begining, connection is allocated and released from connection pool as
> postgres serves data request. The pool can recover from exhaustion. But
> very quickly (after about 400 client requests), it seems postgres server
> stops serving and connection to postgres server is not released any more
> resulting a resource exhausting for clients.
This sounds more like a problem with your connection pool. Unless
PostgreSQL is slowing down due to CPU/RAM/I/O saturation?
In any case, I doubt the problem is too many connections, or you'd just get
an error message ...
--
--Josh
Josh Berkus
PostgreSQL @ Sun
San Francisco
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 using the --to and --cc options:
reply via email
To: pgsql-performance@postgresql.org
Cc: josh@agliodbs.com, fei.liu@aepnetworks.com
Subject: Re: large number of connected connections to postgres database (v8.0)
In-Reply-To: <200707201628.28266.josh@agliodbs.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