Note that there are some explanatory texts on larger screens.

plurals
  1. POMinimize startup time for asp.net
    text
    copied!<p>I have multiple web services (WCF) running in IIS. When the services are warm (loaded), typical requests take about 0.5 seconds to complete. However, when the application is not warm (cold start), the first hit takes some 20 seconds before the service is up and running. The same happens when an app pool recycle occurs.</p> <p>I'm looking to reduce the cold start times for this web service. Some actions i have already performed are:</p> <ul> <li><p>Configured the application pool so that it doesn't recycle after 20 min, idle time (so that the application stays warm). <strong>This minimizes the occurence of cold starts, but doesn't make cold starts faster</strong>. app pool recycles are now limited, but do stil occur.</p></li> <li><p>Modified the machine.config,</p></li> </ul> <p>like this:</p> <pre><code>&lt;runtime&gt; &lt;!-- see http://msdn.microsoft.com/en-us/library/bb629393(v=vs.90).aspx --&gt; &lt;generatePublisherEvidence enabled="false"/&gt; &lt;/runtime&gt; </code></pre> <p><strong>This reduces startup times from 20 secs to about 10 secs.</strong></p> <ul> <li>I've tried using <code>NGEN</code> to precompile the assemblies,</li> </ul> <p>like this</p> <pre><code>for %d in (*.dll) do ngen install %d </code></pre> <p><strong>This doesn't reduce startup times</strong> (only adds complexity to deployment).</p> <p><strong>I would really like to reduce the cold start times even further. What options do i have to do this?</strong></p> <p>(on a side note: what is the best way to find out where the time is spend during startup? how do i monitor what's going on?)</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload