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 02-08-2011, 10:01 PM
jpietrowiak jpietrowiak is offline
 
Join Date: Dec 2008
Posts: 46
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default Too many connections MYSQL

Hello,
I am having anywhere from 1 to 3 a day where my server bombs out for a few minutes. My site seems slow sometimes as well. Started a couple weeks ago. I contacted my host they reset the server but didn't do any good. The file that each error references changes all the time. Though I do see more external.php RSS files for about 1 out of every 5. Any ideas on how to figure out what is going on.

mysql_connect() [<a href='function.mysql-connect'>function.mysql-connect</a>]: Too many connections ......./includes/class_core.php on line 311

It also says I have alot of guests. How many is to many and would this cause it? I don't know if I really believe there are that many guests, so could it be search engines causing server load?

Thanks to anyone that can shed some light or help point me in the right direction.
Jamey
Reply With Quote
  #2  
Old 02-08-2011, 11:01 PM
KevinL KevinL is offline
 
Join Date: Apr 2005
Posts: 1,287
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Either upgrade to a VPS or a better shared hosting environment.

I would say another shared environment depending on how busy your actual site is.

Can we have a link to the site?
Reply With Quote
  #3  
Old 02-08-2011, 11:20 PM
jpietrowiak jpietrowiak is offline
 
Join Date: Dec 2008
Posts: 46
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Sorry here is the vbulletin URL for the CNC Professional Forum

I tried a VPS once when it was hosted at Dreamhost. I had to keep sliding the slider for memory and it was at $50 a month and still was not enough. I requested to go back to shared hosting since I did not have any problems there and it was alot less. I only upgraded at the time because I wanted it to be as fast as it could be. Didn't think it would cost that much. Now I am on Gatorhost. Have not had any problems until the last 3 weeks. No major upgrades either, so its kindof odd. Just wondering if it was hacked or something. Also I do not archive any old posts so would this also be a possible cause?
Reply With Quote
  #4  
Old 02-11-2011, 03:07 PM
benstillman benstillman is offline
 
Join Date: Jun 2007
Location: Ohio
Posts: 187
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

What is max_connections set at? Sounds like it's probably too low.
Reply With Quote
  #5  
Old 02-11-2011, 05:02 PM
jpietrowiak jpietrowiak is offline
 
Join Date: Dec 2008
Posts: 46
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks, Where would I find that? I tried looking through my control panel but can't seem to find it. I looked in the PHP.ini EZ config which is where I thought it should be.

Also I noticed a setting "Add No-Cache HTTP Headers" and I have this set to yes. Would this be an option to maybe help and if so would that cause my visitors not to see new posts made to threads if they viewed that thread previously?
Reply With Quote
  #6  
Old 02-11-2011, 11:52 PM
Videx's Avatar
Videx Videx is offline
 
Join Date: Feb 2007
Posts: 3,085
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I believe Hostgator has a fixed max 25 mysql connections for shared hosting. That should be okay for up to maybe 75 concurrent users depending what they're doing.

BTW, I too have been seeing "Guest attacks" recently, with 10X the normal number of them, all from different places doing different things.
Reply With Quote
  #7  
Old 02-12-2011, 01:18 AM
Boofo's Avatar
Boofo Boofo is offline
 
Join Date: Mar 2002
Location: Des Moines, IA (USA)
Posts: 15,776
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hostgator won't up it from 25 on shared hosting. They blame it on vb.
Reply With Quote
  #8  
Old 02-14-2011, 06:07 PM
jpietrowiak jpietrowiak is offline
 
Join Date: Dec 2008
Posts: 46
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I wonder what is going on with all the guest attacks, thats interesting! Still have not gotten it figured out. I tried a few different things in Vb over the past few days but nothing made a difference. I am trying to turn off the "Add No-Cache HTTP Headers" today to see what happens if anything. I am shooting in the wind right now.
Reply With Quote
  #9  
Old 02-14-2011, 06:15 PM
Videx's Avatar
Videx Videx is offline
 
Join Date: Feb 2007
Posts: 3,085
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I suppose we're not off topic here, because clearly an overload of guests would throw him over the 25 mysql limit.

The only odd thing I saw in my referrers was 100X the number from mikle.com (feedwind) (about 30,000 to the next one, Facebook with about 400). So, shooting in the dark as well, I've excised my feedwind blocks; we'll see how it goes.
Reply With Quote
  #10  
Old 02-17-2011, 01:09 AM
jpietrowiak jpietrowiak is offline
 
Join Date: Dec 2008
Posts: 46
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Well after turning off the "Add No-Cache HTTP Headers" I still am getting about 3 time outs today. So I am at a loss on what else to do at this time. Anyone have any more ideas?
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:27 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.04413 seconds
  • Memory Usage 2,250KB
  • 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)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (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_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
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete