Fatal error: Out of memory (allocated 4194304) (tried to allocate 4096 bytes) in /var/www/root-admin/data/www/scarlett.ru/bitrix/modules/main/lib/data/cacheenginefiles.php on line 348

Fatal error: Uncaught Bitrix\Main\DB\SqlQueryException: Mysql query error: (2006) MySQL server has gone away in /var/www/root-admin/data/www/scarlett.ru/bitrix/modules/main/lib/db/mysqliconnection.php:137 Stack trace: #0 /var/www/root-admin/data/www/scarlett.ru/bitrix/modules/main/lib/db/connection.php(329): Bitrix\Main\DB\MysqliConnection->queryInternal('INSERT INTO `b_...', Array, NULL) #1 /var/www/root-admin/data/www/scarlett.ru/bitrix/modules/main/lib/db/connection.php(378): Bitrix\Main\DB\Connection->query('INSERT INTO `b_...', NULL) #2 /var/www/root-admin/data/www/scarlett.ru/bitrix/modules/main/lib/db/connection.php(453): Bitrix\Main\DB\Connection->queryExecute('INSERT INTO `b_...') #3 /var/www/root-admin/data/www/scarlett.ru/bitrix/modules/main/lib/entity/datamanager.php(623): Bitrix\Main\DB\Connection->add('b_sec_session', Array, NULL) #4 /var/www/root-admin/data/www/scarlett.ru/bitrix/modules/security/classes/general/session_db.php(96): Bitrix\Main\Entity\DataManager::add(Array) #5 [internal function]: CSecurity in /var/www/root-admin/data/www/scarlett.ru/bitrix/modules/main/lib/db/mysqliconnection.php on line 137