Sql-server – odd OS memory consumption by two nearly-identical SQL 2008 R2 instances

sql serversql-server-2008sql-server-2008-r2

Instances are legacy, something we have to carry for the next 3 years, 2008 R2 64-bit, both SQL Server and Windows Server OS. Two copies on two nodes.

Both servers are set to consume "Maximum server memory" parameter set at MAX.

  • VM #1 (8GB RAM total) – memory is utilized to the maximum extent and displayed correctly in Task Manager.
  • VM #2 (32GB RAM total) – memory utilization is shown at ~100MB only, even when I try to force it to eat at least 16GB at startup in the SQL Server properties.

Both task manager and resource monitor on the second VM report barely any RAM consumed by the process.

Is this a SQL Server bug, if the installed OS RAM volume is above certain level? Doubtfully, right?

Or could it be some memory setting on the OS itself?

Best Answer

My bet is #2 has Lock Pages in Memory privileges granted to the SQL Server service account. In this case, Task manager show only a minuscule memory usage (SQL Server uses a different Windows API in this mode). All is normal.

(As an aside, if you by "forcing at startup" mean setting min server memory, then that is not what happens. Min means that if SQL server climbs over it, then it won't go under it. It won't force that allocation at startup. )