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 08-21-2008, 07:38 PM
King Justice King Justice is offline
 
Join Date: Apr 2006
Posts: 222
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default Thousands of Errors via Email! Too many connections to database!?

Hello!

My site is high-traffic (I guess?). I get about 10k uniques per day to my forum and over 100k page-views from them..

I know my server can handle it:
Intel Quad Core Q6600 processor
4GB DDR2-800mhz RAM
2x 160GB 7200rpm HDD (8mb cache)

I am getting many of the following error messages via email:
Quote:
Originally Posted by vBulletin Database Error
Database error in vBulletin :

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

MySQL Error :
Error Number :
Request Date : Friday, August 22nd 2008 @ 01:33:24 AM
Error Date : Friday, August 22nd 2008 @ 01:33:24 AM
Script : ../showthread.php?t=[doesn't matter]
Referrer :
IP Address : [IP of user and guest at the time]
Username :
Classname : vB_Database
MySQL Version :
What do I need to tweak to fix/prevent this error? Are there PHP config settings I should change etc?

Please help me ASAP.
Thank you.
Reply With Quote
  #2  
Old 08-21-2008, 07:45 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Have you posted over in the Server Configuration forum for help tweaking your system? Yes, there are settings you can play with, but usually there are several that kinda go together. Also, it's hard to just tell you 'oh, change this value to that value' because every server/site likes a different configuration.


This is from the manual about your issue:

Quote:
mysql_connect(): Too many connections
The server has maxed out the number of MySQL connections it allows. You can try turning persistent connections off by adding this to your config.php: $config['MasterServer']['usepconnect'] = 0;


But if you still have problems after that, you will need ask your host to raise the maximum number of connections they allow.

Here is more info on that error: http://dev.mysql.com/doc/refman/5.0/...nnections.html
Reply With Quote
  #3  
Old 08-21-2008, 08:56 PM
King Justice King Justice is offline
 
Join Date: Apr 2006
Posts: 222
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

What do you think the recommended number for this setting should be?

Code:
max_user_connections=
Reply With Quote
  #4  
Old 08-21-2008, 10:32 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I don't have a recommendation, that's why I said to post in that forum because George is very good at making recommendations if you post all the required information he asks for (see the sticky at the top of the forum).
Reply With Quote
  #5  
Old 08-22-2008, 01:24 AM
Videx's Avatar
Videx Videx is offline
 
Join Date: Feb 2007
Posts: 3,085
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Contact your host as well. Many have mysql concurrent connection limits.
Reply With Quote
  #6  
Old 08-22-2008, 07:49 AM
Marco van Herwaarden Marco van Herwaarden is offline
 
Join Date: Jul 2004
Posts: 25,415
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

There should not be any host set limits on a dedicated server.
Reply With Quote
  #7  
Old 08-22-2008, 09:53 PM
King Justice King Justice is offline
 
Join Date: Apr 2006
Posts: 222
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

What do you mean?
Reply With Quote
  #8  
Old 08-22-2008, 11:05 PM
Videx's Avatar
Videx Videx is offline
 
Join Date: Feb 2007
Posts: 3,085
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

What does who mean? I think Marco was pointing out that if you're running a dedicated server you shouldn't have any host limits on connections. Lynne was saying that, again assuming you're running your own dedicated server, that you go read and post in another area. I was telling you to open a ticket with your host just to see what they say.
Reply With Quote
  #9  
Old 08-23-2008, 03:00 PM
King Justice King Justice is offline
 
Join Date: Apr 2006
Posts: 222
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Videx View Post
What does who mean? I think Marco was pointing out that if you're running a dedicated server you shouldn't have any host limits on connections. Lynne was saying that, again assuming you're running your own dedicated server, that you go read and post in another area. I was telling you to open a ticket with your host just to see what they say.
It's the PHP settings and MySQL settings...I did contact my host and they set it for me. I am still learning how to properly administrate my server (it is managed).

I do have full control but the settings have to have a max number/setting. I do know that after reading vbulletin.com's response.
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 04: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.04153 seconds
  • Memory Usage 2,240KB
  • 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_code
  • (3)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (9)post_thanks_box
  • (9)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (9)post_thanks_postbit_info
  • (9)postbit
  • (9)postbit_onlinestatus
  • (9)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