17th-Configuring SQL Server (2)-memory configuration in 32-bit and 64-bit systems

Source: Internet
Author: User
Tags deprecated server memory

Original: 17th-Configuring SQL Server (2)-memory configuration in 32-bit and 64-bit systems


This article covers memory configurations in 32-bit and 64-bit systems, where DBAs often try to turn on AWE to limit memory in SQL Server 2005/2008. However, after SQLServer2012, this option will be deprecated, so you cannot use this method to control the virtual address space of a 32-bit instance. If you have a lot of memory on your server, you can only upgrade to a 64-bit system. Here is the memory limit given by Microsoft:

Although AWE has been deprecated since 2012, learn how the 32-bit system uses AWE (Address windowingextensions) to enable the operating system to access more memory. If the available physical memory is more than the maximum server memory option, SQL Server locks the maximum server memory option if the maximum server If the memory option is not set or the physical memory is set less than this option, the SQL Server instance consumes all available memory and retains only 256MB.

Preparatory work:

Remember the values of the current maximum server memory and minimum server memory, which can be viewed in the View Sys.configurations table, which contains configuration information at the system level.


1. Set the minimum memory for SQL Server with the following statement:

EXEC sp_configure ' min server memory (MB) ', 1024GORECONFIGURE with OVERRIDE; GO

2. Set the maximum memory with the following script:

EXEC sp_configure ' max server memory (MB) ', 3000GORECONFIGURE with OVERRIDE; GO


Step 1 Configure the minimum memory to SQL Server, the default value is 0, you can set the minimum value less than or equal to the max server memory value.

Step 2 configures the maximum allocated memory for SQL Server, with a default value of 2TB, which cannot be less than 64M.

All settings are stored in the buffer pool of SQL Server. If you use a 32-bit system, your SQL Server cannot use more than 3G of memory. No matter how many servers you have available within the server. Unless AWE and PAE are turned on.

If the system service in the system only runs SQL Server, set the maximum memory, but if there are multiple services running at the same time. And the domain controller uses the maximum memory, SQL Server will be out of memory, at a different angle, if SQL Server uses the maximum memory, then the domain controller will be out of memory, resulting in, should be reasonable configuration of memory to avoid memory overflow.

17th-Configuring SQL Server (2)-memory configuration in 32-bit and 64-bit systems

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.