• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 345
  • Last Modified:

SQL 2005 64 bit Memory Options

I recently installed SQL 2005 on Windows 2003 server (64 bit).   We have 32 GB of physical RAM.   In SSMS here are the current settings:  (These were the default values.)  

Use AWE to allocate memory = NOT CHECKED
Minimum Server Memory = 0
Maximum Server Memory = 2147483647

When I look at the taskmgr in Windows, it consistently shows sqlservr.exe taking almost all 32 GB of memory (even when CPU is low and there's nothing really being done in SQL).    Is this normal?   Input would be appreciated.   Thanks!
1 Solution
There were several reasons for this and to be checked. Check your memory options and System log file for more info.

Jagdish DevakuSr DB ArchitectCommented:

I got the below options from a blog:

If 64 Bit and enterprise make sure you lock pages in memory.

How to: Enable the Lock Pages in Memory Option (Windows)
Updated: 14 April 2006
The Windows policy Lock Pages in Memory option is disabled by default. This privilege must be enabled to configure Address Windowing Extensions (AWE). This policy determines which accounts can use a process to keep data in physical memory, preventing the system from paging the data to virtual memory on disk. On 32-bit operating systems, setting this privilege when not using AWE can significantly impair system performance. Although not required, we recommend locking pages in memory when using 64-bit operating systems.
Use the Windows Group Policy tool (gpedit.msc) to enable this policy for the account used by SQL Server 2005 Database Engine. You must be a system administrator to change this policy.
For a table that lists the maximum server memory values, see Memory Architecture.
To enable the lock pages in memory option
1. On the Start menu, click Run. In the Open box, type gpedit.msc.
The Group Policy dialog box opens.
2. On the Group Policy console, expand Computer Configuration, and then expand Windows Settings.
3. Expand Security Settings, and then expand Local Policies.
4. Select the User Rights Assignment folder.
The policies will be displayed in the details pane.
5. In the pane, double-click Lock pages in memory.
6. In the Local Security Policy Setting dialog box, click Add.
7. In the Select Users or Groups dialog box, add an account with privileges to run sqlservr.exe.

Make sure you set MIN memory i got mine set to 8196 and make sure the MAX Memory is set too...(i have 64 gig ram so put in 51260 for 51 GIG).

For more info:



colorbokAuthor Commented:
Thank you.
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now