Re: Persistent Connects (pg_pconnect)

From: Serge Canizares <serge(at)ephilosopher(dot)com>
To: Itai Zukerman <zukerman(at)math-hat(dot)com>, SQL <pgsql-sql(at)postgresql(dot)org>
Subject: Re: Persistent Connects (pg_pconnect)
Date: 2000-11-22 14:08:47
Message-ID: 3A1BD36F.68722F03@ephilosopher.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

> Not sure if this is related, but under the non-threading Apache
> server, you get 1 persistent connection per Apache process. I don't
> think you can be sure which process gets the page with the connection
> request, so if you have a limit of, say, 50 processes, and your server
> is hit fairly often, eventually you'll see 50 connections even though
> only a few simultaneous accesses to PHP/PostgreSQL are made.
>
> Or, I could be totally off.
>
> -itai

Actually, with php 4.0x, the apache processes can gather a pool of persistent connexions.

I had the same sort of problem once, and saw that each apache process was grabbing ~4
postgreSQL connexions and thus maxing out the number available from the server.

In response to

Browse pgsql-sql by date

  From Date Subject
Next Message Roberto Mello 2000-11-22 15:46:30 Re: Persistent Connects (pg_pconnect)
Previous Message Jason Davies 2000-11-22 10:48:28 Getting default values from PostgreSQL