Solved

SQL Server 2008R2 Memory & Performance Issues

Posted on 2014-02-19
4
819 Views
Last Modified: 2014-02-25
I am running SQL Server 2008R2 on a virtual Windows Server 2008R2, hosted on a VMware host running ESX 4.0.  The problem I am having is one of slow responsiveness on the server.  The server was originally configured with 8GB of memory and the SQL server was set at a maximum memory of 3GB.  

When checking the memory usage on the Performance tab in Task Manager, I found that 98% of available physical memory was being used. On the Resource Monitor I found that sqlservr.exe was utilizing the most with Working memory of 1.2GB.  This has resulted in slow response time to the users connecting to the SQL database, ase well as slow response when logged onto the server itself.

I decided to bump the physical memory on the VM to 16GB and reset the SQL memory to 4GB.
vm configuration
SQL max memory
Our current situation is that even with these changes, memory is now maxed out again around 98-99% utilized.
Performance
The SQL server appears to be using the bulk of the memory, but adding up all the running processes only nets me about 6GB in use. I’ve no idea what is using the remaining 10GB
resource monitor

Any thoughts on how I can improve performance or decrease the amount of memory that is being used?
0
Comment
Question by:Pancomp60
  • 3
4 Comments
 

Author Comment

by:Pancomp60
ID: 39870731
Update:

I ran a Sysinterals App named RamMap and found that "Driver Locked" has 10,906.096K allocated to it.  From what I can find online, Driver Locked corresponds to locked pages in memory.  Since the SQL service is not configured to utilize locked pages, why would I have 10GB in locked pages?
0
 
LVL 35

Assisted Solution

by:David Todd
David Todd earned 500 total points
ID: 39871041
HI,

I suggest that if your VM has 16GB of memory, then 4GB for SQL is too low. Suggest that a better figure would be in the 10-14GB range.

HTH
  David
0
 

Accepted Solution

by:
Pancomp60 earned 0 total points
ID: 39874951
Thanks David, I suspected as much too but when I adjusted it, the whole system bogged down.  But...that turned out not to be the issue.

Apparently whoever originally setup this particular VM configured the reserved memory limit to 4GB!  Have no idea why, but once I set it unlimited, my memory issues went away.  I will leave the SQL memory setting at 12GB per David's suggestion as it makes sense to me.  So far the system is running better than it ever has and since the VM was ported over from a bare-metal server 3 years ago, I kick myself for not discovering the memory configuration error earlier.
0
 

Author Closing Comment

by:Pancomp60
ID: 39885114
Lesson learned: Thoroughly check over your memory configuration and settings on the VM before addressing them in SQL or Windows.
0

Featured Post

Enterprise Mobility and BYOD For Dummies

Like “For Dummies” books, you can read this in whatever order you choose and learn about mobility and BYOD; and how to put a competitive mobile infrastructure in place. Developed for SMBs and large enterprises alike, you will find helpful use cases, planning, and implementation.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
Ever wondered why sometimes your SQL Server is slow or unresponsive with connections spiking up but by the time you go in, all is well? The following article will show you how to install and configure a SQL job that will send you email alerts includ…
This tutorial will walk an individual through the steps necessary to install and configure the Windows Server Backup Utility. Directly connect an external storage device such as a USB drive, or CD\DVD burner: If the device is a USB drive, ensure i…
This tutorial will walk an individual through the process of transferring the five major, necessary Active Directory Roles, commonly referred to as the FSMO roles to another domain controller. Log onto the new domain controller with a user account t…

730 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question