We have noticed that as soon as we import a Uskin skin into our Umbraco website the load of the first page and subsequent pages slow down dramatically ( approx. 60 secs) We are using Umbracro 7.5.3. We have tried it on Windows 2008 R2 and Windows 2012 R2 Server with the same results.
Any ideas please?
Hi Alex,
Thanks for the reply. I should explain that the slowness in loading the pages is only the first time that any page is loaded. If you go back to the home page or any other page you have previously loaded then the speed is fine. However if you restart the web service on the server then the initial load of the pages is back to loading slowly again for the first time.
Do you know if Umbraco has any special settings for ASP.net to resolve this slow loading problem?
Hi Alex,
We have been testing this on various Windows platforms with the same results every time. The site takes 60 secs to load after the IIS service is restarted. On inspecting the umbraco logs we can see the 60 sec delay is to do with the log scrubbing. (See log below). Is it possible to turn off the log scrubbing within Umbraco, we have followed the reference guide on the Umbraco website but are unable to stop the log scrubbing. can you let us know how to do this please?
This delay happens on a default Umbraco installation which we have done several times on both Windows 2008R2 and Windows 2012 R2.
Umbraco Log:
2017-02-15 14:44:56,758 [P5444/D2/T9] INFO umbraco.content - Load Xml from file...
2017-02-15 14:44:56,758 [P5444/D2/T9] INFO umbraco.content - Loaded Xml from file.
2017-02-15 14:44:58,352 [P5444/D2/T9] INFO Umbraco.Core.PluginManager - Starting resolution types of Umbraco.Core.PropertyEditors.IParameterEditor
2017-02-15 14:44:58,352 [P5444/D2/T9] INFO Umbraco.Core.PluginManager - Completed resolution of types of Umbraco.Core.PropertyEditors.IParameterEditor, found 0 (took 2ms)
2017-02-15 14:45:56,868 [P5444/D2/T15] INFO umbraco.BusinessLogic.Log - Log scrubbed. Removed all items older than 2017-02-14 14:45:56
I've ran into this issue as well, hosting Umbraco sites on IIS - if we haven't been on the website for a while, it can take up to a minute to load initially.
In my case, this was due to the application pool recycling after a period of inactivity on the site. I noticed that the Umbraco trace log file in /App_Data would contain a line that looks something like:
This was happening because the app pool by default was set to shutdown after 20 minutes of inactivity. To resolve this, I first went into Edit Application Pool Recycling Settings in IIS and changed the Recycling Conditions to Specific Time (04:00), then went into Advanced Settings and changed "Idle Time-out (minutes)" to 43200 (maximum) and changed Idle Time-out Action from Shutdown to Suspend.
So far so good, I've gone away for a couple of hours and reloaded the page and it was a much better speed (down from about 40 seconds to 500ms).
Hope this helps someone out who's having the same issue.
Umbraco Site Very Slow Loading
Hi,
We have noticed that as soon as we import a Uskin skin into our Umbraco website the load of the first page and subsequent pages slow down dramatically ( approx. 60 secs) We are using Umbracro 7.5.3. We have tried it on Windows 2008 R2 and Windows 2012 R2 Server with the same results. Any ideas please?
Chris
Hi Chris
Community can't know exactly why your installation is so slow.
But as I know Uskin isn't perfectly written themes, I think you have to refactor code of views and maybe turn on some caching. I would start from:
1) Caching is the easiest way to improve performance of pages, look at CachedPartil helper -
https://our.umbraco.org/documentation/reference/templating/mvc/partial-views#caching
2) Use MiniProfiler for tracing performance problems
I hope it will help, share more info about your solution, maybe some code examples or name of Uskin theme.
Thanks,
Alex
Hi Alex, Thanks for the reply. I should explain that the slowness in loading the pages is only the first time that any page is loaded. If you go back to the home page or any other page you have previously loaded then the speed is fine. However if you restart the web service on the server then the initial load of the pages is back to loading slowly again for the first time. Do you know if Umbraco has any special settings for ASP.net to resolve this slow loading problem?
Cheers Chris
Hi Chris
Did you find a way to fix performance issue on your site?
Thanks,
Alex
The cache is build the first time you visit a site.
You could visit all the pages with a bot after restarting the web service.
Hi Chris,
As told Nicolas, cache is build the first time you visit a site, also there are maybe some tasks at startup event.
Thanks,
Alex
Hi Alex, We have been testing this on various Windows platforms with the same results every time. The site takes 60 secs to load after the IIS service is restarted. On inspecting the umbraco logs we can see the 60 sec delay is to do with the log scrubbing. (See log below). Is it possible to turn off the log scrubbing within Umbraco, we have followed the reference guide on the Umbraco website but are unable to stop the log scrubbing. can you let us know how to do this please?
This delay happens on a default Umbraco installation which we have done several times on both Windows 2008R2 and Windows 2012 R2.
Umbraco Log:
2017-02-15 14:44:56,758 [P5444/D2/T9] INFO umbraco.content - Load Xml from file... 2017-02-15 14:44:56,758 [P5444/D2/T9] INFO umbraco.content - Loaded Xml from file. 2017-02-15 14:44:58,352 [P5444/D2/T9] INFO Umbraco.Core.PluginManager - Starting resolution types of Umbraco.Core.PropertyEditors.IParameterEditor 2017-02-15 14:44:58,352 [P5444/D2/T9] INFO Umbraco.Core.PluginManager - Completed resolution of types of Umbraco.Core.PropertyEditors.IParameterEditor, found 0 (took 2ms) 2017-02-15 14:45:56,868 [P5444/D2/T15] INFO umbraco.BusinessLogic.Log - Log scrubbed. Removed all items older than 2017-02-14 14:45:56
Regards
Chris
I've ran into this issue as well, hosting Umbraco sites on IIS - if we haven't been on the website for a while, it can take up to a minute to load initially.
In my case, this was due to the application pool recycling after a period of inactivity on the site. I noticed that the Umbraco trace log file in /App_Data would contain a line that looks something like:
This was happening because the app pool by default was set to shutdown after 20 minutes of inactivity. To resolve this, I first went into Edit Application Pool Recycling Settings in IIS and changed the Recycling Conditions to Specific Time (04:00), then went into Advanced Settings and changed "Idle Time-out (minutes)" to 43200 (maximum) and changed Idle Time-out Action from Shutdown to Suspend.
So far so good, I've gone away for a couple of hours and reloaded the page and it was a much better speed (down from about 40 seconds to 500ms).
Hope this helps someone out who's having the same issue.
Hello, I had the same issue - very on initial loading, but very fast after. Then it's slow again after a few minutes.
Yes. I did find the 'log scrubbing'. I looked for 'disable' settings but i did not find it.
What I did find was that Umbraco (version 8.0) is setting 'Cache-Control' to 'private' (e.g. cache-control=private). Discussion about that is here: https://our.umbraco.com/forum/using-umbraco-and-getting-started/79715-output-cache-in-umbraco-752
My website is behind a CDN. It confused me, why my CDN was not caching web pages as it should be. It's still slow. As if my CDN was not working.
I applied a fixed and my web pages loaded much quicker than what it was.
This works for me:
web.config
ref: https://forums.asp.net/t/2134899.aspx?How+to+set+no+cache+in+http+header+via+web+server+configuration+instead+of+code+change+and+its+running+cycle
Filter Config
public class FilterConfig { public static void RegisterGlobalFilters(GlobalFilterCollection filters) { filters.Add(new CacheGlobalActionFilter()); } }
public class CacheGlobalActionFilter : ActionFilterAttribute { public override void OnResultExecuted(ResultExecutedContext filterContext) { HttpCachePolicyBase cache = filterContext.HttpContext.Response.Cache; cache.SetCacheability(HttpCacheability.Public); base.OnResultExecuted(filterContext); } }
https://juristr.com/blog/2012/10/output-caching-in-aspnet-mvc/
Additional references
is working on a reply...