Solved

SQL Server 2008R2 Memory & Performance Issues

Posted on 2014-02-19
4
810 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

Does Powershell have you tied up in knots?

Managing Active Directory does not always have to be complicated.  If you are spending more time trying instead of doing, then it's time to look at something else. For nearly 20 years, AD admins around the world have used one tool for day-to-day AD management: Hyena. Discover why

Question has a verified solution.

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

Why is this different from all of the other step by step guides?  Because I make a living as a DBA and not as a writer and I lived through this experience. Defining the name: When I talk to people they say different names on this subject stuff l…
I have a large data set and a SSIS package. How can I load this file in multi threading?
This tutorial will show how to configure a new Backup Exec 2012 server and move an existing database to that server with the use of the BEUtility. Install Backup Exec 2012 on the new server and apply all of the latest hotfixes and service packs. The…
Viewers will learn how the fundamental information of how to create a table.

776 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