vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   Too Many Connections MySQL vB3.8.11 (https://vborg.vbsupport.ru/showthread.php?t=327625)

oldengine 10-31-2019 11:54 AM

Too Many Connections MySQL vB3.8.11
 
Any hints on this as to where to increase the number of connections?

Database error in vBulletin :

mysqli_real_connect(): (HY000/1040): Too many connections
/home/-----/public_html/forum/includes/class_core.php on line 1210

MySQL Error :
Error Number :
Request Date : Thursday, October 31st 2019 @ 12:38:40 PM
Error Date : Thursday, October 31st 2019 @ 12:38:41 PM
Script : http://www.smokstak.com/forum/forumdisplay.php?f=1
Referrer :
IP Address : 174.198.11.64
Username :
Classname : vB_Database_MySQLi
MySQL Version :
Server : 192.252.219.187
User Agent :


Stack Trace:

#0 vB_Database->halt() called in [path]/includes/class_core.php on line 3608
#1 catch_db_error() called in on line
#2 mysqli_real_connect() called in [path]/includes/class_core.php on line 1210
#3 vB_Database_MySQLi->db_connect() called in [path]/includes/class_core.php on line 287
#4 vB_Database->connect() called in [path]/includes/init.php on line 207
#5 require_once([path]/includes/init.php) called in [path]/global.php on line 20
#6 require_once([path]/global.php) called in [path]/forumdisplay.php on line 101

Dave 10-31-2019 01:23 PM

<a href="https://www.electrictoolbox.com/update-max-connections-mysql/" target="_blank">https://www.electrictoolbox.com/upda...ections-mysql/</a>

If you get a lot of traffic, that might be a fix. If you don't have a lot of traffic, there might be something else going on that is causing it (for example a database backup running behind the scenes that is locking up the tables).

Stingray27 10-31-2019 01:41 PM

Quote:

Originally Posted by oldengine (Post 2601098)
Any hints on this as to where to increase the number of connections?

You set it in your my.cnf file.

https://www.electrictoolbox.com/upda...ections-mysql/

Pay attention to the warning at the end.

romaine 11-02-2019 03:12 PM

You should use memcached for your forum and change sessions from database into memory, that can handle high load problem for your forum pretty well.

In the past, I faced this problem more times and when I used the method above, I am rather get this problem again unless it was a ddos attack.


All times are GMT. The time now is 07:11 PM.

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.00935 seconds
  • Memory Usage 1,718KB
  • 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
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (4)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