SQL Server encounters memory pressure and generate 701 Error due to incorrect configuration of Service Broker

Here is one of the rare scenario on SQL Server memory issue (701 error) caused due service broker misconfiguration or incorrectly used, causing memory object OBJECTSTORE_SERVICE_BROKER to grow and not releasing memory back. Below is the memory error, we observed in SQL Server error log followed by DBCC MEMORYSTATUS output. You will see below error…

1