XF 2.1 Troubleshooting Tip

penturners

Active member
At (seemingly) random times, my site freezes for about a minute, then I get the error message below (in browser). There doesn't seem to be any correlation with Cron jobs or any other time-based activities. About a minute late, everthing returns to normal. No recent changes, normal operation for months prior.

How do I begin to troubleshoot this?

Code:
Fatal error: Uncaught XF\Db\Exception: Too many connections in /home/MySite/public_html/src/XF/Db/Mysqli/Adapter.php:165 Stack trace:
#0 /home/MySite/public_html/src/XF/Db/Mysqli/Adapter.php(28): XF\Db\Mysqli\Adapter->makeConnection(Array)
#1 /home/MySite/public_html/src/XF/Db/AbstractAdapter.php(60): XF\Db\Mysqli\Adapter->getConnection()
#2 /home/MySite/public_html/src/XF/Db/Mysqli/Adapter.php(113): XF\Db\AbstractAdapter->connect()
#3 /home/MySite/public_html/src/XF/Db/AbstractAdapter.php(516): XF\Db\Mysqli\Adapter->escapeString('options')
#4 /home/MySite/public_html/src/XF/Db/AbstractAdapter.php(494): XF\Db\AbstractAdapter->quote('options')
#5 /home/MySite/public_html/src/XF/DataRegistry.php(138): XF\Db\AbstractAdapter->quote(Array)
#6 /home/MySite/public_html/src/XF/DataRegistry.php(83): XF\DataRegistry->readFromDb(Array, Array)
#7 /home/MySite/public_html/src/XF/DataRegistry.php(226): XF\DataRegistry->get(Array)
#8 /home/MySite/public_html/src/XF/App.php(1650): XF\DataRegistry-> in /home/MySite/public_html/src/XF/Db/Mysqli/Adapter.php on line 165

Thanks
 
Your host limits the number of simultaneous connections.

You will need to contact them and ask them to increase the limit and/or monitor to see what is using all of the available connections.
 
Top Bottom