[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 341
  • 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!
0
colorbok
Asked:
colorbok
1 Solution
 
radcaesarCommented:
There were several reasons for this and to be checked. Check your memory options and System log file for more info.

http://social.msdn.microsoft.com/Forums/en-IE/sqldatabaseengine/thread/67ebbdde-d833-4949-b2ab-a0184ff666a7
0
 
Jagdish DevakuSr DB ArchitectCommented:
Hi,

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:

http://www.sqlteam.com/forums/topic.asp?TOPIC_ID=100315

http://support.microsoft.com/kb/918483

Bye
0
 
colorbokAuthor Commented:
Thank you.
0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone 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