note 80024 added to function.mysql-connect
| From: | Steve at osu1 dot php dot net | Date: | Mon, 24 Dec 2007 23:32:45 +0000 |
| Subject: | note 80024 added to function.mysql-connect | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-133987@lists.php.net to get a copy of this message | ||
The too many connections issue can be due to several problems.
1. you are using pconnect. This can tie up many connections and is not really needed for MySQL as
new connections are really fast.
2. Apache children are hanging around for too long - combine this with pconnect and you have recipe
for disaster.
Suggestions: reduce the amount of time apache child processes stay connected to the client and how
many connections before they are killed off. And don't use pconnect.
----
Server IP: 64.71.164.2
Probable Submitter: 70.112.34.197
----
Manual Page -- http://www.php.net/manual/en/function.mysql-connect.php
Edit -- https://master.php.net/note/edit/80024
Del: integrated -- https://master.php.net/note/delete/80024/integrated
Del: useless -- https://master.php.net/note/delete/80024/useless
Del: bad code -- https://master.php.net/note/delete/80024/bad+code
Del: spam -- https://master.php.net/note/delete/80024/spam
Del: non-english -- https://master.php.net/note/delete/80024/non-english
Del: in docs -- https://master.php.net/note/delete/80024/in+docs
Del: other reasons-- https://master.php.net/note/delete/80024
Reject -- https://master.php.net/note/reject/80024
Search -- https://master.php.net/manage/user-notes.php