Click here to monitor SSC
SQLServerCentral is supported by Redgate
Log in  ::  Register  ::  Not logged in
Home       Members    Calendar    Who's On

Add to briefcase

Basic Memory Question - > 2147483647 2g limit? it even enabled? Expand / Collapse
Posted Friday, February 13, 2009 11:14 AM
SSC Rookie

SSC RookieSSC RookieSSC RookieSSC RookieSSC RookieSSC RookieSSC RookieSSC Rookie

Group: General Forum Members
Last Login: Wednesday, February 10, 2010 2:12 PM
Points: 27, Visits: 87
I have a question regarding the memory settings. I have new installs of 64bit sql server, and when I just do a default install, the Properties > Memory settings have a panel that has a checkbox to use AWE to allocate memory, and then 2 numeric boxes below, one with zero and one with 2147483647. My question is, Are the 2 boxes with the numbers related to the AWE checkbox, and is this what's used to limit the memory allocation? The reason is that this particular box is a VMWare install, and has 32g of memory allocated. There are 4 instances of SQL Server running here. Can I limit the memory used by the 4 instances, or should I just leave it and let it take what it needs. There seems to be plenty available as the instances are separated for a variety of requirements, but performance/load isn't one of them. Or should I enable this feature and just set each instance to max out at something below 8g?
Thanks for any insight

Not a downstroke, fistpicker
Post #656856
Posted Monday, February 16, 2009 3:33 AM


Group: General Forum Members
Last Login: Thursday, May 22, 2014 7:04 AM
Points: 1,688, Visits: 8,766
You don't need to switch on AWE. However it is recommended you grant the SQL
service account the "Lock Pages in Memory" right (you can do this by going
to Start>Programs>Administrative Tools>Local Security Policy and expanding
Local Policies>User Rights Assignment). For more details see

Also, to keep memory usage under control by each instance set max server memory parameter under sp_configure.

Post #657564
Posted Tuesday, February 17, 2009 4:08 AM
Hall of Fame

Hall of FameHall of FameHall of FameHall of FameHall of FameHall of FameHall of FameHall of FameHall of Fame

Group: General Forum Members
Last Login: Yesterday @ 5:40 AM
Points: 3,052, Visits: 3,771
It is important to set the maximum memory limit for 64-bit SQL Server. The memory reported as available to SQL Server includes the page file size, so if you have a page file then SQL Server will try to use it as part of its memory pool. You are then looking at what should be memory to memory transfers being disk to memory, which will badly hurt your performance.

When deciding how much memory to allocate to SQL Server, you must first take out what is needed by Windows, Anti-Virus, file cache, and other components that are always running. You can divide the rest up between your SQL instances. If they are all of the same importance, give them all the same memory. Otherwise give the most important instances the most memory.

Original author: SQL Server FineBuild 1-click install and best practice configuration of SQL Server 2016, 2014, 2012, 2008 R2, 2008 and 2005. 29 Aug 2016: now over 38,000 downloads.
Disclaimer: All information provided is a personal opinion that may not match reality.
Quote: "When I give food to the poor they call me a saint. When I ask why they are poor they call me a communist." - Archbishop Hélder Câmara
Post #658352
Posted Wednesday, February 18, 2009 7:47 AM
SSC Veteran

SSC VeteranSSC VeteranSSC VeteranSSC VeteranSSC VeteranSSC VeteranSSC VeteranSSC Veteran

Group: General Forum Members
Last Login: Monday, October 17, 2016 5:12 PM
Points: 299, Visits: 351
I'd set the max on each instance to total up to about 2.5 gig less than the total RAM installed. On our 64 bit servers, (single instance) it seems that with max RAM set to 13.5 Gig the peak still gets up close to 16 Gig.

And I'd firmly echo the thought that 64 bit installs need the lock pages in memory setting for the account running SQL Server. Failing to do that on one machine left me with intermittant "slow to a crawl" episodes as windows decided to page out sql server from time to time.

Student of SQL and Golf, Master of Neither
Post #659402
« Prev Topic | Next Topic »

Add to briefcase

Permissions Expand / Collapse