Avatar of John Baker
John Baker
 asked on

Virtual SQL Server Running Slow

We have a Windows Server 2012 R2 Server running Hyper-V.  The virtual server is also Windows Server 2012 R2.  The virtual server is running SQL Server 2012.  I have allocated 16GB of RAM to the server and it has 12 virtual processors.  The resource manager shows that it is not being worked hard but we have a program that uses SQL to pull reports and it is extremely slow doing it.  Are there any thoughts?

Thanks for any help.
Microsoft SQL ServerWindows OSHyper-VWindows Server 2012SQL

Avatar of undefined
Last Comment
ITSysTech

8/22/2022 - Mon
SOLUTION
ITSysTech

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
ITSysTech

If you suspect that the reports are causing issues you could also check "Recent Expensive Queries" and scroll down to see if any of them are extremely high.
SOLUTION
ste5an

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
SOLUTION
Vitor Montalvão

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
⚡ FREE TRIAL OFFER
Try out a week of full access for free.
Find out why thousands trust the EE community with their toughest problems.
SOLUTION
Scott Pletcher

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
⚡ FREE TRIAL OFFER
Try out a week of full access for free.
Find out why thousands trust the EE community with their toughest problems.
ASKER CERTIFIED SOLUTION
Philip Elder

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
⚡ FREE TRIAL OFFER
Try out a week of full access for free.
Find out why thousands trust the EE community with their toughest problems.
John Baker

ASKER
Hello ITSystech,

What numbers would be high?  I do not have much experience with SQL.  The software company has configured the databases but they do not seem to want to help.
John Baker

ASKER
Philip Elder,

The server has dual 8 core processors.
Experts Exchange is like having an extremely knowledgeable team sitting and waiting for your call. Couldn't do my job half as well as I do without it!
James Murphy
Philip Elder

My EE article explains what happens when we assign more vCPUs than physical cores on one CPU.

Suffice it to say, shut the VM down and back it off to four vCPUS and go from there.

Use PerfMon to monitor both host and in-guest resources while the reports are being run to pinpoint the bottleneck.

My suspicion is disk subsystem as that's usually where hidden problems lie. ResMon can be used to see what kind of latency there is on the VHDX files at the host level. Anything over 50ms to 100ms is getting into the catastrophic performance impact territory.
ITSysTech

Let's start with with Processes. If you look at Memory Use (see photo) and then scroll down look for something that is in the thousands or more. We are trying to isolate the process that is causing your server to be slow assuming you are only using this server for SQL.

1.JPG
John Baker

ASKER
Philip, I have dropped the virtual processors down to 7 and it did not make a difference.  I have watched the ResMon and I am not seeing any latency in that range.
⚡ FREE TRIAL OFFER
Try out a week of full access for free.
Find out why thousands trust the EE community with their toughest problems.
John Baker

ASKER
ITSysTech,

I looked at memory and even doubled it to 32GB just to test and it made no difference.
Philip Elder

Check ResMon in-guest while the reports are running. Queue Depth is another indicator for I/O bottlenecks in disks.
Vitor Montalvão

How many databases do you have in the SQL Server instance and how big they are?
All of life is about relationships, and EE has made a viirtual community a real community. It lifts everyone's boat
William Peck
John Baker

ASKER
Vitor,

I know that there are 8 but I am away from the server today and will get back on it on Monday.
ITSysTech

Inactive for 14 days.