From: | Matthew Terenzio <matt(at)jobsforge(dot)com> |
---|---|
To: | Richard Huxton <dev(at)archonet(dot)com> |
Cc: | "'pgsql-general(at)postgresql(dot)org'" <pgsql-general(at)postgresql(dot)org>, Shaun Clements <ShaunC(at)relyant(dot)co(dot)za> |
Subject: | Re: Postgres PHP error |
Date: | 2005-05-23 16:20:59 |
Message-ID: | 281faad19d1f44ff0e93bc56cf6123ba@jobsforge.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
I f you are using Apache, also check the max connections in the
httpd.conf. You really can't allow more Apache children than your max
number of Postgres connections. At least it solved the problem in my
case.
On May 23, 2005, at 9:47 AM, Richard Huxton wrote:
> Shaun Clements wrote:
>> Thanks. Great idea.
>> I assume there is more than one connection per user.
>> As judging by the scope of the system, more than one connection is
>> made.
>> Would you suggest I increase the size of the connections.
>> What kind of performance decrease would I see, even if 100 isnt
>> always used.
>
> It doesn't cost a lot to have many idle connections.
>
> However - I'd still be tempted to see if the PHP application can't be
> tweaked to reduce the time it spends with an open connection. It's
> probably a case that scripts are opening connections, making one short
> query and leaving the connection open unnecessarily after they've
> finished with it.
>
> --
> Richard Huxton
> Archonet Ltd
>
> ---------------------------(end of
> broadcast)---------------------------
> TIP 2: you can get off all lists at once with the unregister command
> (send "unregister YourEmailAddressHere" to majordomo(at)postgresql(dot)org)
>
From | Date | Subject | |
---|---|---|---|
Next Message | Scott Marlowe | 2005-05-23 16:29:34 | Re: PITR restore hot standby |
Previous Message | Patrick.FICHE | 2005-05-23 16:05:50 | Re: How to recover from : "Cache lookup failed for rela |