[Bitrix\Main\DB\ConnectionException] 
Mysql connect error [localhost]: (2006) MySQL server has gone away (400)
/home/bitrix/www/bitrix/modules/main/lib/db/mysqliconnection.php:65
#0: Bitrix\Main\DB\MysqliConnection->connectInternal()
	/home/bitrix/www/bitrix/modules/main/lib/db/mysqliconnection.php:122
#1: Bitrix\Main\DB\MysqliConnection->queryInternal(string, array, NULL)
	/home/bitrix/www/bitrix/modules/main/lib/db/connection.php:330
#2: Bitrix\Main\DB\Connection->query(string)
	/home/bitrix/www/bitrix/modules/ammina.optimizer/include.php:1193
#3: CAmminaOptimizer::doCheckCDN()
	/home/bitrix/www/bitrix/modules/ammina.optimizer/lib/core2/application.php:214
#4: Ammina\Optimizer\Core2\Application->__construct()
	/home/bitrix/www/bitrix/modules/ammina.optimizer/lib/core2/application.php:134
#5: Ammina\Optimizer\Core2\Application::getInstance()
	/home/bitrix/www/bitrix/modules/ammina.optimizer/include.php:193
#6: CAmminaOptimizer::OnPageStart()
	/home/bitrix/www/bitrix/modules/main/classes/general/module.php:490
#7: ExecuteModuleEventEx(array)
	/home/bitrix/www/bitrix/modules/main/include.php:284
#8: require_once(string)
	/home/bitrix/www/bitrix/modules/main/include/prolog_before.php:14
#9: require_once(string)
	/home/bitrix/www/bitrix/modules/main/include/prolog.php:10
#10: require_once(string)
	/home/bitrix/www/bitrix/header.php:1
#11: require(string)
	/home/bitrix/www/brands/index.php:2
#12: include_once(string)
	/home/bitrix/www/bitrix/modules/main/include/urlrewrite.php:159
#13: include_once(string)
	/home/bitrix/www/bitrix/urlrewrite.php:2