[Bitrix\Main\DB\ConnectionException] 
Mysql connect error [localhost]: (1040) Too many connections (400)
/home/bitrix/ext_www/mcrm.ru/bitrix/modules/main/lib/db/mysqliconnection.php:65
#0: Bitrix\Main\DB\MysqliConnection->connectInternal()
	/home/bitrix/ext_www/mcrm.ru/bitrix/modules/main/lib/db/mysqliconnection.php:122
#1: Bitrix\Main\DB\MysqliConnection->queryInternal(string, array, NULL)
	/home/bitrix/ext_www/mcrm.ru/bitrix/modules/main/lib/db/connection.php:330
#2: Bitrix\Main\DB\Connection->query(string, NULL)
	/home/bitrix/ext_www/mcrm.ru/bitrix/modules/main/lib/db/connection.php:379
#3: Bitrix\Main\DB\Connection->queryExecute(string)
	/home/bitrix/ext_www/mcrm.ru/bitrix/php_interface/after_connect_d7.php:3
#4: include(string)
	/home/bitrix/ext_www/mcrm.ru/bitrix/modules/main/lib/db/connection.php:984
#5: Bitrix\Main\DB\Connection->afterConnected()
	/home/bitrix/ext_www/mcrm.ru/bitrix/modules/main/lib/db/mysqliconnection.php:81
#6: Bitrix\Main\DB\MysqliConnection->connectInternal()
	/home/bitrix/ext_www/mcrm.ru/bitrix/modules/main/lib/db/mysqliconnection.php:122
#7: Bitrix\Main\DB\MysqliConnection->queryInternal(string, NULL, NULL)
	/home/bitrix/ext_www/mcrm.ru/bitrix/modules/main/lib/db/connection.php:330
#8: Bitrix\Main\DB\Connection->query(string, NULL, integer, integer)
	/home/bitrix/ext_www/mcrm.ru/bitrix/modules/main/lib/db/connection.php:358
#9: Bitrix\Main\DB\Connection->queryScalar(string)
	/home/bitrix/ext_www/mcrm.ru/bitrix/modules/security/lib/session.php:114
#10: Bitrix\Security\SessionTable::lock(string, integer)
	/home/bitrix/ext_www/mcrm.ru/bitrix/modules/security/classes/general/session_db.php:52
#11: CSecuritySessionDB::read(string)
	/home/bitrix/ext_www/mcrm.ru/bitrix/modules/security/classes/general/session_handler.php:23
#12: CSecuritySessionHandler->read(string)
	
#13: session_start()
	/home/bitrix/ext_www/mcrm.ru/bitrix/modules/main/include.php:289
#14: require_once(string)
	/home/bitrix/ext_www/mcrm.ru/bitrix/modules/main/include/prolog_before.php:14
#15: require_once(string)
	/home/bitrix/ext_www/mcrm.ru/bitrix/modules/main/include/prolog.php:10
#16: require_once(string)
	/home/bitrix/ext_www/mcrm.ru/bitrix/header.php:1
#17: require(string)
	/home/bitrix/ext_www/mcrm.ru/patients/consult/detail.php:5
#18: include_once(string)
	/home/bitrix/ext_www/mcrm.ru/local/php_interface/include/urlrewrite.php:178
#19: include_once(string)
	/home/bitrix/ext_www/mcrm.ru/bitrix/urlrewrite.php:4