PDA

View Full Version : Keep getting to many connections database errors


owning_y0u
09-23-2010, 05:25 PM
I keep getting the following error


Database error in vBulletin :

mysql_connect() [<a href='function.mysql-connect'>function.mysql-connect</a>]: Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)
/var/www/vhosts/xxxxxxxx.eu/httpdocs/includes/class_core.php on line 313


Database error in vBulletin :

mysql_connect() [<a href='function.mysql-connect'>function.mysql-connect</a>]: Too many connections
/var/www/vhosts/xxxxxxx.eu/httpdocs/includes/class_core.php on line 313

the database has a connection limit set on 250 connections so thats not the problem (as we have max 75 connections at the sametime.
Cookie session times out after 15 mins so not a problem.

getting crazy as i get around the 50 e-mails a day about it.

Lynne
09-23-2010, 06:10 PM
These are server issues that you will need to talk to your host about.

owning_y0u
09-23-2010, 06:48 PM
These are server issues that you will need to talk to your host about.

The host said it has nothing to-do with the server i hope you can be a bit more precise about it so i know where to start looking

KevinL
09-23-2010, 07:27 PM
Your host has limited the connections to the database. So it is a host problem.

If it is hostgator I think they only allow 50 concurrent connections...

TheRageIsOn
09-23-2010, 07:29 PM
check the mysql config to shorten the timeout values!
You may post them here...

TNCclubman
09-23-2010, 07:33 PM
are you on a dedicated server or shared server?

owning_y0u
09-23-2010, 08:31 PM
Your host has limited the connections to the database. So it is a host problem.

If it is hostgator I think they only allow 50 concurrent connections...

no its not hostgator we use a decent host, Connection limited is set to 250 and we have a max of 75 open connections on peak times.

are you on a dedicated server or shared server?

its shared with 1 other website. at this very moment a dedicated server isn't in the option list.

Lynne
09-23-2010, 09:14 PM
See this page which covers both problems - Common MySQL Error Messages (http://www.vbulletin.com/docs/html/troubleshoot_mysql_errors) It is a server issue.

Videx
09-23-2010, 11:23 PM
High CPU loads on an oversold shared server can cause both these errors - and lots of other semi-random ones. But unless your one other co-sharer is really misbehaving I can't see that. Still, you need to check your cpu loads around the times of the errors.