From: spam at vrana dot cz Operating system: Linux PHP version: 4.3.3 PHP Bug Type: MySQL related Bug description: Persistent connection not reused
Description: ------------ Configuration: Apache 1.3.28 MySQL 4.0.15a With Apache configuration directive MaxClients set to 150, the number of database connection raised up to 466 (until MySQL denied connections with Too many connections error). In all scripts I use the same mysql_pconnect("localhost", "user", "pwd"). MySQL command SHOW PROCESSLIST showed that all 466 connections were made with the same connection parameters. All connections were in state Sleep. I am connecting to MySQL only from PHP module in Apache so I think this behavior is caused by some bug in handling with connection pool in PHP. -- Edit bug report at http://bugs.php.net/?id=26117&edit=1 -- Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=26117&r=trysnapshot4 Try a CVS snapshot (php5): http://bugs.php.net/fix.php?id=26117&r=trysnapshot5 Fixed in CVS: http://bugs.php.net/fix.php?id=26117&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=26117&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=26117&r=needtrace Try newer version: http://bugs.php.net/fix.php?id=26117&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=26117&r=support Expected behavior: http://bugs.php.net/fix.php?id=26117&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=26117&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=26117&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=26117&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=26117&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=26117&r=dst IIS Stability: http://bugs.php.net/fix.php?id=26117&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=26117&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=26117&r=float