Symptoms
Assume that you use the AlwaysOn Availability Groups feature in Microsoft SQL Server. If you enable change tracking for a database that's in the availability group, a memory leak may occur on the secondary replica.
The memory leak is reported under MEMORYCLERK_SQLSTORENG memory clerk and the MEMOBJ_PERDATABASE memory object. You can query these values from the DMV sys.dm_os_memory_clerks and sys.dm_os_memory_objects.
Resolution
The issue was first fixed in the following cumulative updates of SQL Server:
- Cumulative Update 1 for SQL Server 2014 SP2
- Cumulative Update 8 for SQL Server 2014 SP1
- Cumulative Update 1 for SQL Server 2016
- Cumulative Update 14 for SQL Server 2014
- Cumulative Update 4 for SQL Server 2012 SP3
- Cumulative Update for 12 SQL Server 2012 SP2
Recommendation: Install the latest cumulative update for SQL Server
Each new cumulative update for SQL Server contains all the hotfixes and all the security fixes that were included with the previous cumulative update. We recommend that you download and install the latest cumulative updates for SQL Server:
- Latest cumulative update for SQL Server 2016
- Latest cumulative update for SQL Server 2014 (SP1/SP2)
- Latest cumulative update for SQL Server 2012 SP3
- Latest cumulative update for SQL Server 2012 SP2
Status
Microsoft has confirmed that this is a problem in the Microsoft products that are listed in the "Applies to" section.
References
Learn about the terminology that Microsoft uses to describe software updates.