| PHP, MySQL General PHP questions. Or go to our PHPsuexec Forum >> |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread |
|
|
#1 (permalink) |
|
All Ur Base R Belong 2 Us
Excelling Contributor
Joined in Feb 2005
Lives in Vegas & New York
824 posts
Gave thanks: 2
Thanked 6 times
|
MySQL/Persistent Connections
It seems Persistent Connections are a trouble for users on shared hosting, as persistent connections can easily lead to blocked access to their databases once they've used up their alloted number of connections, which is not very high since its shared. Most users are using PHP with these MySQL databases.
After going through my own PHP Config php.ini file, I noticed that there's a directive Code:
[MySQL] mysql.allow_persistent = On ; allow or prevent persistent link I'm assuming that if this value is set to Off, even if the persistent connection function is used it would still be a dynamic connection. I say assume since the php.net manual doesn't specify what happens on the mysql_pconnect function page.
__________________
Nobody doing nothing |
|
|
|
|
|
#2 (permalink) |
|
is scientific.
Resident.
Joined in Mar 2004
Lives in fear of Obama.
Hosted on Pass 7
13,117 posts
Gave thanks: 8
Thanked 34 times
|
I was reading about this earlier when trying to figured out why another user's Invision Board message board keeps coming up with a max_connections error. I wasn't sure if Persistant Connections was on or off on these shared servers. I assumed it was off, which is what really puzzelled me.
From what you're saying, with PC on, that may very well be the reason the max connections error comes up? |
|
|
|
|
|
#3 (permalink) |
|
All Ur Base R Belong 2 Us
Excelling Contributor
Joined in Feb 2005
Lives in Vegas & New York
824 posts
Gave thanks: 2
Thanked 6 times
|
That's usually the cause, that or slow/delayed queries. Those slow queries just cause a spiral down in performance, and they aren't always even queries using tables frequently accessed.
__________________
Nobody doing nothing |
|
|
|
|
|
#4 (permalink) |
|
is scientific.
Resident.
Joined in Mar 2004
Lives in fear of Obama.
Hosted on Pass 7
13,117 posts
Gave thanks: 8
Thanked 34 times
|
Hmm. *checks server php.ini file*
actually, maybe I'll do that later. My password is too ridiculous and long to look up again and type in lol |
|
|
|