Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at

  • Michael Friis 2 posts 21 karma points
    May 22, 2012 @ 08:22
    Michael Friis
    0 "recompiles" daily

    Hey all,

    Last week i installed a copy of for a collegue of mine on his domain @ surftown.

    It's running pretty well and performance is good, except during the first visit of the day. 

    Ever since he comlained about the long load times i decided to visit it more often to check on it. It seems like the first run of the day always recompiles (load time is similiar to the first run after install) Umbraco.

    Obviously this wont work if the first visitor is a customer.

    Surftown cant help and insists its a software problem.

    Is there a setting on the server or in Umbracos web.config that makes the compiled code "timeout" or similiar?

    Hope you can help, and thx for all your hard work :)

  • Jeroen Breuer 4908 posts 12265 karma points MVP 5x admin c-trib
    May 22, 2012 @ 12:51
    Jeroen Breuer

    Here at our company we recycle our app pool every night. This causes the website to "recompile". Maybe Surftown also does that.


  • Grant Thomas 291 posts 324 karma points
    May 22, 2012 @ 13:13
    Grant Thomas

    Are you sure it's actually being recompiled? As Jeroen alludes to, it could be the application pool getting recycled (the standard App Pool Recycling setting for IIS 6/7 is something like 1740 minutes = 1.2 days); this could cause a bit of a performance hit on the first visit while memory is being mapped, so to speak.

    Of course, exceeding a number values (recycle timeout, max request count, etc.) could also cause this threshold to be hit, and hence initiate a recycle.

  • Michael Friis 2 posts 21 karma points
    May 22, 2012 @ 14:31
    Michael Friis

    How are you handling it on your servers? Do you just accept the poor performance for that unlucky user or can you set something up to "keep it alive"?

  • Grant Thomas 291 posts 324 karma points
    May 22, 2012 @ 14:43
    Grant Thomas

    You can extend the time and other threshold values so that this happens much less frequently than every day - but this really depends on your system - for instance, that will be no good if your site is memory, or cycle hungry and is force-recycled prior to meeting your specified thresholds. Since your host is denying the problem, though, you don't seem to have that much control and so it's not as easy as tweaking the settings and analysing over some time.

    Unfortunately the problem can't be completely removed (at least not yet), only delayed and made to seem removed. It's almost analogous to grumpy humans on any given Monday. It's the usual thing.

    Optimising your site could yield some improvement, too, if you're sure to minimise memory usage and application init complexity and whatnot.

Please Sign in or register to post replies

Write your reply to: