Click here to monitor SSC
SQLServerCentral is supported by Red Gate Software Ltd.
 
Log in  ::  Register  ::  Not logged in
 
 
 
        
Home       Members    Calendar    Who's On


Add to briefcase

DataBase Max Server Memory Setting Expand / Collapse
Author
Message
Posted Wednesday, March 7, 2012 5:54 PM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: General Forum Members
Last Login: Wednesday, September 10, 2014 2:46 AM
Points: 4, Visits: 13
Hi

My server RAM is 32GB, But the Max Server Memory set to 2147483647MB. How this effects? If I would like to change it to less than 32GB Will that effect anything on database data or Services.

Thanks.
Post #1263369
Posted Wednesday, March 7, 2012 6:48 PM


SSC-Insane

SSC-InsaneSSC-InsaneSSC-InsaneSSC-InsaneSSC-InsaneSSC-InsaneSSC-InsaneSSC-InsaneSSC-InsaneSSC-InsaneSSC-Insane

Group: General Forum Members
Last Login: Today @ 12:41 PM
Points: 20,734, Visits: 32,510
The current max setting is 2 TB. SQL Server could potentially starve the OS. You really do need to change that setting. Depending on what other software is running on the server (AV, other application software, etc) you should set it to something less than 32 GB. If the only thing running is SQL Server (and maybe AV), I would probably set it to 28 GB. That will leave 4 GB for the OS .



Lynn Pettis

For better assistance in answering your questions, click here
For tips to get better help with Performance Problems, click here
For Running Totals and its variations, click here or when working with partitioned tables
For more about Tally Tables, click here
For more about Cross Tabs and Pivots, click here and here
Managing Transaction Logs

SQL Musings from the Desert Fountain Valley SQL (My Mirror Blog)
Post #1263385
Posted Thursday, March 8, 2012 1:36 AM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: General Forum Members
Last Login: Wednesday, September 10, 2014 2:46 AM
Points: 4, Visits: 13
Thanks for the reply, I do have admin access to database but limited access to OS(log folders and Data folders). If I make any changes to less than 32GB will that effect any where like do I need to restart any services or OS.... I am doing the same server for sharepoint portal ...
Post #1263467
Posted Monday, March 12, 2012 12:40 PM


SSCertifiable

SSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiable

Group: General Forum Members
Last Login: Yesterday @ 8:51 PM
Points: 7,125, Visits: 12,723
You can change the max memory setting and it takes effect without requiring a restart. Here is a good guide on what to set it to:

Suggested Max Memory Settings for SQL Server 2005/2008

The article only mentions 64-bit specifically, but the recommendations are relevant for 32-bit systems as well.


__________________________________________________________________________________________________
There are no special teachers of virtue, because virtue is taught by the whole community. --Plato
Post #1265461
Posted Monday, March 12, 2012 12:52 PM


SSCommitted

SSCommittedSSCommittedSSCommittedSSCommittedSSCommittedSSCommittedSSCommittedSSCommitted

Group: General Forum Members
Last Login: Thursday, June 12, 2014 2:04 PM
Points: 1,786, Visits: 1,014
Would 4 GB on OS RAM be sufficent for a database being used with sharepoint ?


Jayanth Kurup
Post #1265468
Posted Monday, March 12, 2012 1:13 PM


SSC-Forever

SSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-Forever

Group: General Forum Members
Last Login: Today @ 1:38 PM
Points: 40,201, Visits: 36,603
Jayanth_Kurup (3/12/2012)
Would 4 GB on OS RAM be sufficent for a database being used with sharepoint ?


Depends on what else is installed on the server and how much memory there is in total. If there's nothing other than SQL Server on that machine and there's 32 GB physical memory then 4GB is certainly adequate and probably generous. If the sharepoint frontend is on the same server (so IIS and the web application) then the SQL max memory needs to be lowered to allow the 4GB for the OS and whatever IIS needs.



Gail Shaw
Microsoft Certified Master: SQL Server 2008, MVP
SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability

We walk in the dark places no others will enter
We stand on the bridge and no one may pass

Post #1265494
Posted Tuesday, March 13, 2012 8:03 AM


SSCarpal Tunnel

SSCarpal TunnelSSCarpal TunnelSSCarpal TunnelSSCarpal TunnelSSCarpal TunnelSSCarpal TunnelSSCarpal TunnelSSCarpal TunnelSSCarpal Tunnel

Group: General Forum Members
Last Login: Today @ 11:33 AM
Points: 4,402, Visits: 6,263
1) Never EVER leave sql server max memory setting at the default.

2) For 32GB system with JUST sql server running I would start at 27GB and monitor for execessive paging and go up or down from there. The more things you have running the lower you will need to drop the memory. Remember, max mem setting just controls the sql server BUFFER POOL - there are MANY other buckets of memory sql will use that are NOT constrained by that number.


Best,

Kevin G. Boles
SQL Server Consultant
SQL MVP 2007-2012
TheSQLGuru at GMail
Post #1265929
Posted Tuesday, March 13, 2012 8:21 AM


SSC-Forever

SSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-Forever

Group: General Forum Members
Last Login: Today @ 1:38 PM
Points: 40,201, Visits: 36,603
TheSQLGuru (3/13/2012)
Remember, max mem setting just controls the sql server BUFFER POOL - there are MANY other buckets of memory sql will use that are NOT constrained by that number.


Don't think I'd use the word 'many' there. Non-buffer memory is usually a lot smaller than the buffer pool, with a lot less in it. (unless using really wacky CLR that it)



Gail Shaw
Microsoft Certified Master: SQL Server 2008, MVP
SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability

We walk in the dark places no others will enter
We stand on the bridge and no one may pass

Post #1265948
Posted Tuesday, March 13, 2012 6:15 PM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: General Forum Members
Last Login: Wednesday, September 10, 2014 2:46 AM
Points: 4, Visits: 13
As I am already holding data in that database server, If I change that to lets say 27GB then do I need to restart any thing like service or database or any other to make this change effected. this change will effect any thing on the existing data.... no right?
Post #1266432
Posted Tuesday, March 13, 2012 7:43 PM


SSCertifiable

SSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiable

Group: General Forum Members
Last Login: Yesterday @ 8:51 PM
Points: 7,125, Visits: 12,723
opc.three (3/12/2012)
You can change the max memory setting and it takes effect without requiring a restart.


__________________________________________________________________________________________________
There are no special teachers of virtue, because virtue is taught by the whole community. --Plato
Post #1266452
« Prev Topic | Next Topic »

Add to briefcase

Permissions Expand / Collapse