KB2895494 was raised as part of SQL2012 SP1 CU7 to stop a memory leak caused by theMEMOBJ_COMPILE_ADHOC memory object not releasing memory. The KB includes a query:-
select type, sum(pages_in_bytes)/1024.0/1024.00 'Mem in MB', count (*) 'row count' from sys.dm_os_memory_objects where type like '%MEMOBJ_COMPILE_ADHOC%' group by type;
When this query is run over a period of time the Mem in MB and row count goes up and up.
We run CU6 and did not install CU7 but now we are installing CU8 and when I run this query on a CU8 server these numbers continue to climb just like they do on a CU6 build server.
Can somebody confirm that it did work in CU7 and is anybody else seeing this behaviour?
It is showing in both a failover cluster and an Availability Group cluster.
Thanks
Chris