Go Back   vb.org Archive > vBulletin 4 Discussion > vB4 General Discussions
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 12-12-2016, 05:15 PM
Flibnipktz Flibnipktz is offline
 
Join Date: Jul 2013
Posts: 22
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default Week 2 of Database errors 4.2.2

Hi All,

Heading into week 2 of daily

Quote:
Database error in vBulletin :

mysql_connect() [<a href='function.mysql-connect'>function.mysql-connect</a>]: Too many connections
/home/thesquir/public_html/forums/includes/class_core.php on line 317
errors.

This is out of a clear blue sky, after at least 6 months of entirely satisfactory service/no incidents from our provider- who shall remain unnamed for the time being. I've been chasing them, and after repeated "what's going on?" nagging, they advise that they're 'tweaking the settings'.

I've done a little research and am reasonably certain this isn't my responsibility as forum admin, and that it's not related to vB. Does anyone have a similar experience? Is this serious... a lack of expertise... how much of a problem is this? I'm trying to be patient but can't help wondering what's going on and how hard to push our provider.
Reply With Quote
  #2  
Old 12-12-2016, 05:20 PM
RichieBoy67's Avatar
RichieBoy67 RichieBoy67 is offline
 
Join Date: Apr 2004
Location: CT - Down in a hole..
Posts: 3,057
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

It is pretty basic here. You could change some settings in my.cnf(max connections) but if you are on shared your site is most likely using too many resources.

Does this happen always around the same time? If so it is probably a cron task that is overloading your server.
Reply With Quote
  #3  
Old 12-12-2016, 05:25 PM
Flibnipktz Flibnipktz is offline
 
Join Date: Jul 2013
Posts: 22
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks for the quick response. Occurrences are all over the map, time-wise. We're on a semi-dedicated hosted server. Apart from automated BDay mail-outs, no jobs to speak of, will take another look. Is it possible that we're seeing this as a result of activity from another client account on the server?
Reply With Quote
  #4  
Old 12-12-2016, 05:40 PM
RichieBoy67's Avatar
RichieBoy67 RichieBoy67 is offline
 
Join Date: Apr 2004
Location: CT - Down in a hole..
Posts: 3,057
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Flibnipktz View Post
Thanks for the quick response. Occurrences are all over the map, time-wise. We're on a semi-dedicated hosted server. Apart from automated BDay mail-outs, no jobs to speak of, will take another look. Is it possible that we're seeing this as a result of activity from another client account on the server?
Not sure what "Semi Dedicated" is.. but if you have access just raise your max connections a bit in my.cnf.

There may be plug ins running on your site as well that you can lessen the impact of or even disable.
Reply With Quote
  #5  
Old 12-12-2016, 05:44 PM
Dave Dave is offline
 
Join Date: May 2010
Posts: 2,583
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

If your host set it up properly then each MySQL user has its own configuration and other websites on the same server will not be the cause of this error.

Refer to https://mediatemple.net/community/pr...-for-my-server on how to increase the max connections value.
Reply With Quote
  #6  
Old 12-12-2016, 07:44 PM
Paul M's Avatar
Paul M Paul M is offline
 
Join Date: Sep 2004
Location: Nottingham, UK
Posts: 23,748
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Dave View Post
If your host set it up properly then each MySQL user has its own configuration and other websites on the same server will not be the cause of this error.
Errr... Yes they will (or can be).

The connections limit is a server wide setting, so they could all be eaten up by a completely different user and/or site. They only way that could not happen is if each site had its own MySQL server (instance).
Reply With Quote
  #7  
Old 12-12-2016, 07:45 PM
Flibnipktz Flibnipktz is offline
 
Join Date: Jul 2013
Posts: 22
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Not sure what "Semi Dedicated" is.. but if you have access just raise your max connections a bit in my.cnf.
I'm not sure either. However, "vB Platinum" seems to be the choice of our forum admins, and so be it. Checked Logs, will go back for any Plugins, the only one that comes to mind is the Post Thank You hack.


Quote:
Refer to https://mediatemple.net/community/pr...-for-my-server on how to increase the max connections value.
Thanks, unfortunately (AFAIK) no root access, just cPanel.

I'm getting the impression that this is more of an annoyance than an escalating problem. If so I can continue forwarding the error messages and hope they figure it out. Site was slow on the weekend, they scheduled a MySQL restart, and at least the speed returned. Fewer errors this morning.
Reply With Quote
  #8  
Old 12-12-2016, 07:47 PM
Dave Dave is offline
 
Join Date: May 2010
Posts: 2,583
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Yes, in that case you will have to ask your host to tweak your MySQL settings. They are not always willing to do that though.
Reply With Quote
  #9  
Old 12-12-2016, 08:00 PM
RichieBoy67's Avatar
RichieBoy67 RichieBoy67 is offline
 
Join Date: Apr 2004
Location: CT - Down in a hole..
Posts: 3,057
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Flibnipktz View Post
I'm not sure either. However, "vB Platinum" seems to be the choice of our forum admins, and so be it. Checked Logs, will go back for any Plugins, the only one that comes to mind is the Post Thank You hack.




Thanks, unfortunately (AFAIK) no root access, just cPanel.

I'm getting the impression that this is more of an annoyance than an escalating problem. If so I can continue forwarding the error messages and hope they figure it out. Site was slow on the weekend, they scheduled a MySQL restart, and at least the speed returned. Fewer errors this morning.
It's an annoyance but when your server is running at peak some people will get that error rather than reaching the site..

I think your probably need to go up another package if they have anything higher than platinum. Maybe see if they have a plutonium package.
I highly doubt they will increase your max connections because you are using more then your current hosting package allows.
Reply With Quote
  #10  
Old 12-12-2016, 11:16 PM
Flibnipktz Flibnipktz is offline
 
Join Date: Jul 2013
Posts: 22
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
It's an annoyance but when your server is running at peak some people will get that error rather than reaching the site..

I think your probably need to go up another package if they have anything higher than platinum. Maybe see if they have a plutonium package.
I highly doubt they will increase your max connections because you are using more then your current hosting package allows.
Yeah- I haven't heard any grousing yet, but that's exactly what happened to me yesterday, and I still don't know if it was my browser cache or the site itself. Plutonium... with Deuterium options.


Thanks all... I'll keep yanking on their chain.
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 11:33 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04315 seconds
  • Memory Usage 2,260KB
  • Queries Executed 13 (?)
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
  • (7)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (10)postbit
  • (10)postbit_onlinestatus
  • (10)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_postinfo_query
  • fetch_postinfo
  • 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