iis 7 - WCF Performance Slow for the first call -
I have a WCF service installed on IIS7. I noticed that the first call for my service is always very slow. Fast & amp; Acceptable
If for some time no call is made in service, then it goes back to sleep mode. Then the next call takes a long time again.
Any remedy for this problem?
is due to process management on IIS when there is no call for some time IIS releases release And stops the process. This is the reason why you can see that it is slow for the first request and the request after a long delay. Because for the first time or after long silence, the IIS loads everything from scratch. GIT compliant runs and so on ...
Also note: When you are hosting WCF services on IIS, WCF services enjoy all the features of ASP.NET applications. You should be aware of these features because they can create unpredictable behavior in the world of services. One of the key features is application recycling, including application recycling and recycling process. Through the IIS management console, you can configure different rules when you want to recycling. You can set some thresholds on time and on the amount of processed requests. When IIS recurs a worker process, all application domains will be reused within the worker process
If you need Automatic start : Windows Service Control Manager Startup type to automate you, so that once the Windows starts, the service will start without an interactive logon on the machine. So you can use the Windows service as a host.
More information that you can check in
Comments
Post a Comment