dbTalk Databases Forums  

SQL server memory usage

microsoft.public.sqlserver.server microsoft.public.sqlserver.server


Discuss SQL server memory usage in the microsoft.public.sqlserver.server forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
markcmh60
 
Posts: n/a

Default SQL server memory usage - 02-03-2012 , 01:53 PM






I have a server where sqlserver.exe is using 13.5GB of 16GB of the
available memory available on the server. I want to limit this to 8GB
of RAM that the sqlserver can use, it is clogging things up and
pegging the processor on a regular basis. Is there a setting or a web
site i can be pointed to so in can chance the config on this.

Reply With Quote
  #2  
Old   
Erland Sommarskog
 
Posts: n/a

Default Re: SQL server memory usage - 02-07-2012 , 03:53 PM






markcmh60 (mark6960 (AT) yahoo (DOT) com) writes:
Quote:
I have a server where sqlserver.exe is using 13.5GB of 16GB of the
available memory available on the server. I want to limit this to 8GB
of RAM that the sqlserver can use, it is clogging things up and
pegging the processor on a regular basis. Is there a setting or a web
site i can be pointed to so in can chance the config on this.
EXEC sp_configure 'show advanced options', 1
RECONFIGURE
EXEC sp_configure 'max server memory', 8192
RECONFIGURE

However, note that it is perfectly normal for SQL Server to grab all
memory it can. By having data in the buffer cache, SQL Server can
perform much better. If you have no other applications running on the
server, you should definitely not set the limit as low as 8 MB.

If you have problems with SQL Server taking a lot at CPU at times, you
probably have queries that could benefit from some tuning.


--
Erland Sommarskog, SQL Server MVP, esquel (AT) sommarskog (DOT) se

Links for SQL Server Books Online:
SQL 2008: http://msdn.microsoft.com/en-us/sqlserver/cc514207.aspx
SQL 2005: http://msdn.microsoft.com/en-us/sqlserver/bb895970.aspx

Reply With Quote
  #3  
Old   
Jeroen Mostert
 
Posts: n/a

Default Re: SQL server memory usage - 02-08-2012 , 12:54 AM



On 2012-02-07 22:53, Erland Sommarskog wrote:
Quote:
markcmh60 (mark6960 (AT) yahoo (DOT) com) writes:
I have a server where sqlserver.exe is using 13.5GB of 16GB of the
available memory available on the server. I want to limit this to 8GB
of RAM that the sqlserver can use, it is clogging things up and
pegging the processor on a regular basis. Is there a setting or a web
site i can be pointed to so in can chance the config on this.

EXEC sp_configure 'show advanced options', 1
RECONFIGURE
EXEC sp_configure 'max server memory', 8192
RECONFIGURE

However, note that it is perfectly normal for SQL Server to grab all
memory it can. By having data in the buffer cache, SQL Server can
perform much better. If you have no other applications running on the
server, you should definitely not set the limit as low as 8 MB.

Typo, of course -- this configures SQL Server to use 8 GB. SQL Server can
get by with only a few hundred MB, but I don't think you could get it down
to 8. :-)

--
J.

Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.