Bug #13589 Updated: Persistent connections stay open and accumulate
| From: | sander@php.net | Date: | Tue, 20 Nov 2001 17:31:00 +0000 |
| Subject: | Bug #13589 Updated: Persistent connections stay open and accumulate | ||
| References: | 1 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-71102@lists.php.net to get a copy of this message | ||
ID: 13589
Updated by: sander
Reported By: mtremblay@sitebrand.com
Old Status: Open
Status: Closed
Bug Type: MySQL related
Operating System: RedHat 7.1
PHP Version: 4.0.6
New Comment:
This is what Derick said about this (in #14149):
This is not a bug, the MySQL extension will open a new connection if the _current apache child_ has
no open connection to MySQL.
With this in mind, it's very normal to see that apache has multiple connections open to MySQL.
Previous Comments:
------------------------------------------------------------------------
[2001-10-07 17:33:26] mtremblay@sitebrand.com
While trying to use persistent connections for performance on an ad server, connections to the MySQL
server stay open and accumulate over time until it hits the max_connections setting is hit. Once
this happens, MySQL refuses to allow connections.
After looking at the MySQL process list, it seams that connections are not always recycled. In
theory, idle established connections' Commands should be "Sleep" but curiously, it
looks like connections not being recycled have "Query" command and a state of
"NULL".
Presently using MySQL 3.23.36.
------------------------------------------------------------------------
Edit this bug report at http://bugs.php.net/?id=13589&edit=1