Go Back   vb.org Archive > Community Discussions > Forum and Server Management
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 01-22-2009, 09:07 AM
otpsoft otpsoft is offline
 
Join Date: May 2008
Posts: 6
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default Database Errors Since 3.8 Upgrade

Hi,

Since upgrading to 3.8 last Saturday I have had many complaints that the forum is slow to load and I have now had the following error twenty times in the past three days.

How do I fix it:

Database error in vBulletin :

mysql_connect() [<a href='function.mysql-connect'>function.mysql-connect</a>]: User otpsoft_ already has more than 'max_user_connections' active connections
/home/otpsoft/public_html/buellersdownunder/includes/class_core.php on line 311

MySQL Error :
Error Number :
Request Date : Thursday, January 22nd 2009 @ 02:52:31 AM
Error Date : Thursday, January 22nd 2009 @ 02:52:32 AM
Script : http://www.buellersdownunder.com/pic...042945&thumb=1
Referrer : http://www.buellersdownunder.com/album.php?albumid=95
IP Address : 60.230.201.203
Username :
Classname : vB_Database
MySQL Version :


Any help will be greatly appreciated.

Otpsoft
Reply With Quote
  #2  
Old 01-22-2009, 09:09 AM
Marco van Herwaarden Marco van Herwaarden is offline
 
Join Date: Jul 2004
Posts: 25,415
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

You will need to contact your host to raise the maximum number of connections
Reply With Quote
  #3  
Old 01-22-2009, 09:22 AM
otpsoft otpsoft is offline
 
Join Date: May 2008
Posts: 6
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

They have already upped the Apache "Max_Connections.
The above error is in the VB Database ........
Using the diagnostics tool in admincp shows that max_user_connections is set in the MySQL database at 30 ............................. how do I lift this limit ?
Reply With Quote
  #4  
Old 01-22-2009, 10:09 AM
Marco van Herwaarden Marco van Herwaarden is offline
 
Join Date: Jul 2004
Posts: 25,415
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Your host will need to change the MySQL configuration.
Reply With Quote
  #5  
Old 01-30-2009, 02:11 PM
whaase whaase is offline
 
Join Date: May 2006
Posts: 17
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by otpsoft View Post
They have already upped the Apache "Max_Connections.
The above error is in the VB Database ........
Using the diagnostics tool in admincp shows that max_user_connections is set in the MySQL database at 30 ............................. how do I lift this limit ?
I just went through this exact same thing. My hosting company was great in helping me figure this out, so ill pass it on

When your database gets errors it will create "overhead". A bit is ok, but I had 22 megs lol. When vBulletin makes a connection to your database, it should release it. When you have a lot of errors in the database, it locks or freezes connections forcing vBulletin to make another.

What I had to do was have the hosting company clear all those forzen/locked connections. Then do a repair/optimize on the database. And stay on top of it. I now do a repair daily just because. I'm also trying to track down what it is that is causing most of my errors. Add ons/plugins can do it, but you have to figure out which one is the culprit lol

30 connections should be more then enough for even a big forum. I was amazed how much faster the forum has been running after getting this all fixed.

Hope it helps
Reply With Quote
  #6  
Old 01-30-2009, 02:14 PM
TNCclubman's Avatar
TNCclubman TNCclubman is offline
 
Join Date: Sep 2008
Posts: 690
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Did you turn off your forum before the upgrade? Sounds like you built up a bunch of errors while you were upgrading as mentioned above and now its clogging your system.
Reply With Quote
  #7  
Old 01-30-2009, 02:32 PM
whaase whaase is offline
 
Join Date: May 2006
Posts: 17
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Just another note

My system was so clogged, I could not even run the database repair. I couldn't connect to it until the host company killed some of those connections.

I have a small forum, maybe 20-25 users on at once. My Max connections is set at 65. You can do the math on that one lol upping the max connections is a bandaid solution, you will have to find the cause first. I would start with getting it cleared out, optimize the database, then start searching the logs to see what errors are going on. I've noticed quite a few with our acrade, I may turn it off to see what happens. I've also seen quite a few with the 'search' button. I'm not sure yet what to do with that one.

Walter
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 12:45 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.03901 seconds
  • Memory Usage 2,213KB
  • Queries Executed 11 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (1)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (7)post_thanks_box
  • (7)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (7)post_thanks_postbit_info
  • (7)postbit
  • (7)postbit_onlinestatus
  • (7)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete