XF 2.2 XF\Db\Exception: Too many connections

Artonn

Active member
I'm currently experiencing these errors, would anybody know why they're suddenly happening?

Code:
XF\Db\Exception: Too many connections src/XF/Db/Mysqli/Adapter.php:165
Generated by: Unknown account Nov 14, 2023 at 7:51 AM

Code:
Stack trace
#0 src/XF/Db/Mysqli/Adapter.php(28): XF\Db\Mysqli\Adapter->makeConnection(Array)
#1 src/XF/Db/AbstractAdapter.php(62): XF\Db\Mysqli\Adapter->getConnection()
#2 src/XF/Db/Mysqli/Adapter.php(113): XF\Db\AbstractAdapter->connect()
#3 src/XF/Db/AbstractAdapter.php(518): XF\Db\Mysqli\Adapter->escapeString('addOnsComposer')
#4 src/XF/Db/AbstractAdapter.php(496): XF\Db\AbstractAdapter->quote('addOnsComposer')
#5 src/XF/DataRegistry.php(139): XF\Db\AbstractAdapter->quote(Array)
#6 src/XF/DataRegistry.php(84): XF\DataRegistry->readFromDb(Array, Array)
#7 src/XF/DataRegistry.php(228): XF\DataRegistry->get(Array)
#8 src/XF/App.php(1931): XF\DataRegistry->offsetGet('addOnsComposer')
#9 src/XF/Container.php(31): XF\App->XF\{closure}(Object(XF\Container))
#10 src/XF/App.php(2460): XF\Container->offsetGet('addon.composer')
#11 src/XF/App.php(2030): XF\App->setupAddOnComposerAutoload()
#12 src/XF/Pub/App.php(94): XF\App->setup(Array)
#13 src/XF.php(497): XF\Pub\App->setup(Array)
#14 job.php(9): XF::setupApp('XF\\Pub\\App')
#15 {main}


Code:
Request state
array(4) {
  ["url"] => string(8) "/job.php"
  ["referrer"] => string(67) "https://danskeakvarier.dk/threads/forvirring-omkring-flying-fox.39/"
  ["_GET"] => array(0) {
  }
  ["_POST"] => array(0) {
  }
}
 
Yeah... your visitors are overloading your shared hosting (which you most likely use) allowances.
Depending on traffic.. .this is not abnormal if you have a low end shared hosting environment in which you have a topic(s) that are generating a lot of visits. The only solution is to upgrade your shared hosting offering or go to a VPS that you have more manual control over.
 
You can also save some queries by configuring caching.. memcache, for example... though there are others. Often times on shared hosting though this is not an option.
 
Yeah... your visitors are overloading your shared hosting (which you most likely use) allowances.
Depending on traffic.. .this is not abnormal if you have a low end shared hosting environment in which you have a topic(s) that are generating a lot of visits. The only solution is to upgrade your shared hosting offering or go to a VPS that you have more manual control over.
I'm currently running stellar plus shared hosting on namecheap. Would upgrading to their VPS be a better choice?
 
Back
Top Bottom