Fatal error: Allowed memory size of 536870912 bytes exhausted (tried to allocate 16384 bytes) in /var/www/bx_mayak/bitrix/modules/main/classes/mysql/database_mysqli.php on line 47

Fatal error: Uncaught Bitrix\Main\DB\SqlQueryException: Mysql query error: (2014) Commands out of sync; you can't run this command now in /var/www/bx_mayak/bitrix/modules/main/lib/db/mysqliconnection.php:137 Stack trace: #0 /var/www/bx_mayak/bitrix/modules/main/lib/db/connection.php(330): Bitrix\Main\DB\MysqliConnection->queryInternal('SELECT \n\t`main_...', Array, NULL) #1 /var/www/bx_mayak/bitrix/modules/main/lib/orm/query/query.php(3306): Bitrix\Main\DB\Connection->query('SELECT \n\t`main_...') #2 /var/www/bx_mayak/bitrix/modules/main/lib/orm/query/query.php(817): Bitrix\Main\ORM\Query\Query->query('SELECT \n\t`main_...') #3 /var/www/bx_mayak/bitrix/modules/main/lib/orm/data/datamanager.php(500): Bitrix\Main\ORM\Query\Query->exec() #4 /var/www/bx_mayak/bitrix/modules/main/lib/analytics/sitespeed.php(95): Bitrix\Main\ORM\Data\DataManager::getList(Array) #5 /var/www/bx_mayak/bitrix/modules/main/lib/analytics/counter.php(92): Bitrix\Main\Analytics\SiteSpeed::isIntranetSite('s1') #6 /var/www/bx_mayak/bitrix/modules/main/cl in /var/www/bx_mayak/bitrix/modules/main/lib/db/mysqliconnection.php on line 137