Solved

SQL Server 2008R2 Memory & Performance Issues

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

Do You Know the 4 Main Threat Actor Types?

Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

Join & Write a Comment

Ever needed a SQL 2008 Database replicated/mirrored/log shipped on another server but you can't take the downtime inflicted by initial snapshot or disconnect while T-logs are restored or mirror applied? You can use SQL Server Initialize from Backup…
For both online and offline retail, the cross-channel business is the most recent pattern in the B2C trade space.
This tutorial will walk an individual through the steps necessary to enable the VMware\Hyper-V licensed feature of Backup Exec 2012. In addition, how to add a VMware server and configure a backup job. The first step is to acquire the necessary licen…
This tutorial will show how to configure a single USB drive with a separate folder for each day of the week. This will allow each of the backups to be kept separate preventing the previous day’s backup from being overwritten. The USB drive must be s…

708 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

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now