Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 General SQL Server Forums
 New to SQL Server Administration
 sqlserver memory usage

Author  Topic 

Sharon911
Starting Member

46 Posts

Posted - 2010-06-07 : 16:08:40
Noticed sqlserver.exe is using almost 3GB RAM, we are running sharepoint system. Is this normal? Any suggestion to reduce the RAM being used by sql server?

Thanks,
Sharon

tkizer
Almighty SQL Goddess

38200 Posts

Posted - 2010-06-07 : 16:24:32
It is normal for SQL Server to use all available memory. Due to this, you should cap the amount of memory that SQL Server can allocate using sp_configure or the SSMS GUI (right click on the server, properties). You should reserve memory for the OS and other processes. Please note that since SQL Srver is a memory hog, it is typically recommended that nothing else run on that server.

Microsoft recommends reserving 1GB per CPU for the OS. For instance, I have 48GB of memory and 8 CPUs (2 quad-core sockets) on one of my systems. We set the max memory to 40GB for SQL Server.

If you cap SQL Server memory lower than what it needs, you will see performance degradation.

Tara Kizer
Microsoft MVP for Windows Server System - SQL Server
http://weblogs.sqlteam.com/tarad/

Subscribe to my blog
Go to Top of Page

Sharon911
Starting Member

46 Posts

Posted - 2010-06-08 : 14:38:33
Thanks Tara, if I update the maximum memory value using SSMS GUI, do I need to restart the service for the update to take effective?
Go to Top of Page

tkizer
Almighty SQL Goddess

38200 Posts

Posted - 2010-06-08 : 14:50:56
You don't need to restart the service for it.

Tara Kizer
Microsoft MVP for Windows Server System - SQL Server
http://weblogs.sqlteam.com/tarad/

Subscribe to my blog
Go to Top of Page

Sharon911
Starting Member

46 Posts

Posted - 2010-06-08 : 15:31:04
Thats great,

Would the sqlserver return the memory to OS after use?
Go to Top of Page

tkizer
Almighty SQL Goddess

38200 Posts

Posted - 2010-06-08 : 16:01:27
Maybe, maybe not. A restart would ensure it happens though. SQL Server normally only releases it if it no longer needs it and another process needs it.

Tara Kizer
Microsoft MVP for Windows Server System - SQL Server
http://weblogs.sqlteam.com/tarad/

Subscribe to my blog
Go to Top of Page
   

- Advertisement -