We operate an instance of the MS SQL Server 2022 (standard 16.0.4095.4) on Windows Server 2022 (virtual machine with 32GB RAM) and having issue with the "Modified Memory" consumed by the sqlservr.exe process.
The SQL Server memory configuration is as follows:
The overall memory consumption looks like this:
When I look at what consumes this modified memory, I can see it is the SQL Server:
This "Modified" portion of the memory is constantly growing and does not seem to go ever down (it has been keeping high and higher for days). The SQL Server perf stats do not indicate any performance issue at the moment.
Also the output from the DBCC MEMORYSTATUS does not gives me any clue about what this "Modified memory" portion could be. As I understand the output (see below) the memory consumption reported by the DBCC MEMORYSTATUS fits into the limit set in "Maximum server memory".
Do you have any idea, what could cause the kind of memory consumption far above the value set in "Maximum server memory" or how I can investigate further?
The issue does not occur on any other instances we have - the "Modified memory" is a minor portion of the memory consumption there. The only difference between this and other instances is that there is several basic availability groups setup on this box. There are not any other "suspicious features" allowed there (no columnstore indexes, no in-memory OLPT ...).
What I tried just for a curiosity is to decrease the "Maximum server memory" value. The only effect was that the "In use memory" freed by this has been then slowly but surely switched into the "Modified memory" in some time. I am considering increasing the VM memory, but I am afraid a bit that it may result just into a bigger "Modified memory" consumption...









