1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

XF 1.5 Too many connections error?

Discussion in 'Troubleshooting and Problems' started by Tristan10, Aug 11, 2016.

  1. Tristan10

    Tristan10 Member

    Every once in a while I get an error on my site. Can anyone tell me what is causing this and how I might be able to prevent it? Thanks.

    An exception occurred: Too many connections in /home/rivalfo1/public_html/library/Zend/Db/Adapter/Mysqli.php on line 333

    1. Zend_Db_Adapter_Mysqli->_connect() in Zend/Db/Adapter/Abstract.php at line 315
    2. Zend_Db_Adapter_Abstract->getConnection() in XenForo/Application.php at line 730
    3. XenForo_Application->loadDb()
    4. call_user_func_array() in XenForo/Application.php at line 973
    5. XenForo_Application->lazyLoad() in XenForo/Application.php at line 1004
    6. XenForo_Application::get() in XenForo/Application.php at line 1609
    7. XenForo_Application::getDb() in XenForo/Model.php at line 161
    8. XenForo_Model->_getDb() in XenForo/Model/DataRegistry.php at line 138
    9. XenForo_Model_DataRegistry->_getMultiFromDb() in XenForo/Model/DataRegistry.php at line 97
    10. XenForo_Model_DataRegistry->getMulti() in XenForo/Dependencies/Abstract.php at line 147
    11. XenForo_Dependencies_Abstract->preLoadData() in XenForo/FrontController.php at line 127
    12. XenForo_FrontController->run() in /home/rivalfo1/public_html/index.php at line 13
  2. Jake B.

    Jake B. Well-Known Member

    Are you on your own server, or shared hosting? If shared hosting there probably isn't much you can do
  3. Tristan10

    Tristan10 Member

    Shared hosting.
  4. Brogan

    Brogan XenForo Moderator Staff Member

    You can try asking your host to increase the limit, but if it's due to other users on the same server or a limit cap, as mentioned, there's not much you can do other than to switch servers/packages/hosts.
  5. DFI

    DFI Active Member

    what exactly should i ask my host ? i am on a VPS and frequently getting this error on my website.
  6. Tracy Perry

    Tracy Perry Well-Known Member

    To increase the max connections settings in my.cnf (the SQL configuration file).
    max_connections = XXX where XXX is a reasonable # of connections (I use 500 which is overkill, but my server has more than adequate memory).

Share This Page