Do you know to never give SQL Server all your RAM?
Last updated by ChristianMWaite about 4 years ago.See historyMicrosoft SQL Server is made to use all the available memory in a server for itself. It will eat all the memory you throw at it. This can be a problem because your other applications may suffer performance problems as all the system memory is gone. To limit this behaviour you can limit the maximum amount of memory SQL is allowed to use.
- Open SQL Server Management Studio Figure: SQL Server Management Studio - Login Screen
- Right click on the server name and select “Properties” Figure: SQL Database options and properties menu
- Select the “Memory” tab Figure: Server Properties showing the ridiculously large value set for the maximum server memory
- You will see that the default number is HUGE. Change this to something more realistic. Let SQL use half of the memory in your server.Leave about 1024MB headroom. For example, if you server has 4GB of RAM, give the SQL server a Maximum server memory of 2048mb. Figure: Maximum server memory settings in server properties
This will prevent SQL from “owning” all of the RAM on your system,leaving some memory left for your other applications to use.
Love it
0
Agree
0
Disagree
0
No way
0