Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

MySQLi - Too Many Connections Error due to Amazon AWS

Discussion in 'Database Discussion' started by RobNH, Jun 21, 2018.

  1. RobNH

    RobNH Member

    Joined:
    Nov 14, 2013
    Messages:
    5
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
    All of a sudden this week, my forums have been getting slammed on two different servers from a ton of hits coming in from various IP addresses that all go back to Amazon AWS.

    I've increased max_user_connections in MySQL to 10,000 and tried blocking some of the IP ranges but nothing seems to be working.

    Is anyone else seeing this in their forums?

    Example:

    Database error in vBulletin :

    mysqli_real_connect(): (HY000/1040): Too many connections
    /home/public_html/forums/includes/class_core.php on line 1351

    MySQL Error :
    Error Number :
    Request Date : Thursday, June 21st 2018 @ 11:48:43 AM
    Error Date : Thursday, June 21st 2018 @ 11:48:44 AM
    Script : /forums/external.php?type=RSS2&forumids=200
    Referrer :
    IP Address : 34.209.102.89
    Username :
    Classname : vB_Database_MySQLi
    MySQL Version :
    Server : 50.22.50.218
    User Agent :


    Stack Trace:

    #0 vB_Database->halt() called in [path]/includes/class_core.php on line 5948
    #1 catch_db_error() called in on line
    #2 mysqli_real_connect() called in [path]/includes/class_core.php on line 1351
    #3 vB_Database_MySQLi->db_connect() called in [path]/includes/class_core.php on line 280
    #4 vB_Database->connect() called in [path]/includes/init.php on line 213
    #5 require_once([path]/includes/init.php) called in [path]/includes/class_bootstrap.php on line 101
    #6 vB_Bootstrap->init() called in [path]/includes/class_bootstrap.php on line 72
    #7 vB_Bootstrap->bootstrap() called in [path]/global.php on line 26
    #8 require_once([path]/global.php) called in [path]/external.php on line 54
    #9 require([path]/external.php) called in [path]/dbseo.php on line 434
     
  2. Infopro

    Infopro cPanel Sr. Product Evangelist
    Staff Member

    Joined:
    May 20, 2003
    Messages:
    16,516
    Likes Received:
    425
    Trophy Points:
    583
    Location:
    Pennsylvania
    cPanel Access Level:
    Root Administrator
    Twitter:
    Do you have CSF installed on that server?
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. RobNH

    RobNH Member

    Joined:
    Nov 14, 2013
    Messages:
    5
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
  4. Infopro

    Infopro cPanel Sr. Product Evangelist
    Staff Member

    Joined:
    May 20, 2003
    Messages:
    16,516
    Likes Received:
    425
    Trophy Points:
    583
    Location:
    Pennsylvania
    cPanel Access Level:
    Root Administrator
    Twitter:
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  5. RobNH

    RobNH Member

    Joined:
    Nov 14, 2013
    Messages:
    5
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
    I assume you mean ConfigServer? I'm not sure if I do or not. If it's not automatically installed with cPanel and WHM, then chances are, no, I don't have it installed. I've been blocking the IP ranges via .htaccess
     
  6. Infopro

    Infopro cPanel Sr. Product Evangelist
    Staff Member

    Joined:
    May 20, 2003
    Messages:
    16,516
    Likes Received:
    425
    Trophy Points:
    583
    Location:
    Pennsylvania
    cPanel Access Level:
    Root Administrator
    Twitter:
    It's not installed with cPanel, root user needs to install and configure it manually.

    You'll be happy you did. ;)
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice