vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=252)
-   -   Keep getting to many connections database errors (https://vborg.vbsupport.ru/showthread.php?t=251047)

owning_y0u 09-23-2010 05:25 PM

Keep getting to many connections database errors
 
I keep getting the following error


Quote:

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
Quote:

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

Quote:

Originally Posted by Lynne (Post 2102379)
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

Quote:

Originally Posted by KevinL (Post 2102416)
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.

Quote:

Originally Posted by TNCclubman (Post 2102419)
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 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.


All times are GMT. The time now is 08:03 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.00985 seconds
  • Memory Usage 1,726KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (5)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (9)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete