How do I fix slow first web service responses (17+ seconds) from iis7 on Windows 2008 Server?

Posted on 2011-09-08
Last Modified: 2012-06-27
We've just upgraded our server from Windows 2000 Server to Windows 2008 Server 64-bit and copied the .NET 2005 web services across to the new server.
We've still kept the old server and it's response times are always fast.
The new server's first response is slow and then fast subsequently but if not used for a couple of minutes resort to first response (slow) mode.
I've looked into (this (Q_27241923)) (application pool) solution but I can't get it to work.
Question by:kev1970
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 4
  • 2
  • 2
  • +1

Accepted Solution

Tehzar earned 100 total points
ID: 36503508

Author Comment

ID: 36503868
I've scanned that article but I think that what I need is force IIS7 to stop unloading the web service.

Assisted Solution

by:Grant Spiteri
Grant Spiteri earned 100 total points
ID: 36506742
We came across the same issue basically definitely have a look @ Tehzar's link as well as the following link is what we used:

Complete VMware vSphere® ESX(i) & Hyper-V Backup

Capture your entire system, including the host, with patented disk imaging integrated with VMware VADP / Microsoft VSS and RCT. RTOs is as low as 15 seconds with Acronis Active Restore™. You can enjoy unlimited P2V/V2V migrations from any source (even from a different hypervisor)


Expert Comment

by:Grant Spiteri
ID: 36506761
My apologies looks like it has been discontinued.

Expert Comment

ID: 36509293
First time you access a .Net service, it "compiles" it, which is why it takes some time.

Your service uses an app pool. If the service is not used for a timeout period, it is recycled.
The next time its used, it's "compiled" again.

You need to set this timeout up, to postpone recycling ..

Hope this helps..

Author Comment

ID: 36509901
Thanks, that's what I tried to base my original solution on but it doesn't seem to work in Windows Server 2008/IIS7.
I'm assuming that you referring to the "Idle Time-out (minutes)" property. I've set it to 0 so, theoretically, it should never timeout.
What are the exact settings required stop web services from unloading in IIS7?

Assisted Solution

Srm74 earned 100 total points
ID: 36509973

Yes, setting it to 0 should disable the idle timeout.

Provinding its not caused by an error, try checking the periodic restart settings..

Periodic restart

Other than that, i should work..

Assisted Solution

kev1970 earned 0 total points
ID: 37099377
I apologise for the long delay (holiday, other work issues, ...).

IIS wasn't unloading the web services, as I thought. The problem was resolved by re-naming the server.

To summarise, the server had 2 web sites which had 2 different names which we registered manually in the DNS server (ie IntServ - and IntServ2 - The server and one of it's web sites had identical names (IntServ) and unfortunately, with Windows Server 2008 SP2, this meant that every time the server was rebooted, the DNS server ensured that all of the IP addresses were registered against the server name ( IntServ would, thus, have 2 DNS entries registered against it, for and respectively, which caused the DNS server to resolve IntServ in a round-robin fashion.
To fix this we re-named the server (ie ServerIntServ) which meant that the DNS server would register the 2 IP addresses against ServerIntServ and IntServ would always maintain it's 1 DNS entry. ServerIntServ will now round-robin which won't affect the end users.

I don't understand the mechanics of this resolution as we always ensured that IntServ only had one entry in the DNS server by deleting the 2nd entry when neccessary.

Subsequent IntServ web service hits have responded in less than 1 sec and even after 15 hours the response-time was less than 7 secs.

Author Closing Comment

ID: 37126685
This was a Windows Server 2008 SP2 and DNS issue and not an IIS issue. Unfortunately, no one pointed me in that direction.

Featured Post

Three Reasons Why Backup is Strategic

Backup is strategic to your business because your data is strategic to your business. Without backup, your business will fail. This white paper explains why it is vital for you to design and immediately execute a backup strategy to protect 100 percent of your data.

Question has a verified solution.

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

Suggested Solutions

This tutorial will show you how to add an attribute to an XML ( stream returned from a Windows Communication Foundation ( (WCF) Web Service.  Some knowled…
Debug Tools to analyse IIS process: This article focus on taking memory dumps from IIS to determine which code is taking more time and to analyse which calls hangs/causes more CPU usage. To take dumps,download the following. Install1: To st…
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…

749 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