#10276 [Com]: persistent connections overload
| From: | sex-bondage1273 at hotmail dot com | Date: | Tue, 20 Jul 2004 15:00:37 +0000 |
| Subject: | #10276 [Com]: persistent connections overload | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-62783@lists.php.net to get a copy of this message | ||
ID: 10276
Comment by: sex-bondage1273 at hotmail dot com
Reported By: zeekamotay at hotmail dot com
Status: Bogus
Bug Type: PostgreSQL related
Operating System: linux 2.2
PHP Version: 4.0.4pl1
New Comment:
<a href=http://1000--poo-pissing-a.da.ru>sex
bondage</a>
Previous Comments:
------------------------------------------------------------------------
[2001-08-03 18:59:40] zeekamotay at hotmail dot com
Er, whoops. I totally forgot that I had already reported this issue.
(Hey, it was 4 months ago!) My apologies.
------------------------------------------------------------------------
[2001-08-03 15:52:06] sniper@php.net
One bug report per bug please.
(You can EDIT the old ones, you know..)
I'm bogusing this one now. In the future, for this
bug, modify bug report #12558
------------------------------------------------------------------------
[2001-04-10 19:18:31] zeekamotay at hotmail dot com
Using Apache 1.3.19, PHP 4.0.4pl1, PgSQL 7.0.3. Web server is RedHat
7.0, PgSQL server is RedHat 6.2.
This seems to be the same issue as #8769 and #9185, but I can't edit
those, so I'll add a new entry since my comments may be helpful.
PHP is apparently not always re-using already opened idle persistent
connections. Even though there are only a handful of non-idle
connections running at any one time, the max (currently 256) number of
connections eventually gets hit and the database will refuse new
connections even though it's hardly doing anything.
Right now, my web server has 22 Apache processes running, yet there are
55 Postgres processes running, only two of which are not idle.
My installation was already using a static module, so I tried compiling
all of Apache as one big static, but that had no effect.
Stopping and restarting Apache will clear the idle sessions.
I turned off Apache's keepalive feature, and that seems to have helped
somewhat, since the Apache child processes now don't stick around so
long. However, doing that is a performance hit I don't want to take,
and it still doesn't explain how I can have more Postgres processes
than Apache processes.
Any help is greatly appreciated. Long live PHP!
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=10276&edit=1