Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How much RAM is SQL Server actually using? [closed]

Tags:

I am debugging one of my apps and noticed that the RAM on my SQL Server 2005 x64 box (running on a Windows 2003 R2 x64 ) is pegged and even going into the paging file.

I understand that SQL Server 2005 x64 just grabs everything it can, so this might be normal (???). How can I check how much memory it is actually using?

like image 732
AngryHacker Avatar asked Aug 17 '09 18:08

AngryHacker


People also ask

Does SQL use a lot of RAM?

SQL Server will consume as much memory as you will allow it. By default, that number would encompass 100% of your numerical memory on your machine. SQL Server will dynamically use memory, so even if you set max memory to 12 GB if SQL requires, it will use memory to 12 GB.

How do I know if my SQL Server has too much memory?

Max Server Memory is set at the instance level: right-click on your SQL Server name in SSMS, click Properties, Memory, and it's “Maximum server memory.” This is how much memory you're willing to let the engine use.


1 Answers

You need to run Perfmon (start->control panel->administrative tools->performance). The counters you want, I believe, are in SQL Server:Memory Manager. Target Server Memory is how much it's allowed to take if needed, Total Server Memory is how much it's currently using. If you click on Explain it'll pop open a box with the details.

By default it's uncapped, and should use all but a couple gb of memory (it leaves that for the OS). However, there are various bugs and memory leaks that can cause it to go into paging.

like image 55
mbourgon Avatar answered Sep 20 '22 17:09

mbourgon