Installation and deployment
Version 3.x > Installation and deployment > Landing page download times View modes: 
User avatar
Member
Member
sahuspilwal1981-hotmail - 1/30/2009 1:05:33 PM
   
Landing page download times
To anyone that can help!

I have a website running in development environment on two seperate server(s). One on my personal server and another on DiscountASP hosting environment. I'm getting very slow speeds when accessing the landing page for example URL http://www.domain.com/default.aspx.

It takes between 10 - 15 seconds to load. The default.aspx page holds few controls and web parts and has 2 images plus 2/3 paragraphs of text. Once this home page loads the remainder child page requests run fast. Any ideas why this would occur? Also once site landing page is cached it runs fast as expected!

Any help would be greatly appreciated.

Kind regards,

Sahus Pilwal

User avatar
Member
Member
ken-inorbital - 1/30/2009 2:24:02 PM
   
RE:Landing page download times
hey, i'm not sure if this is the case

if your landing page is an asp.net page and you just made changes to it, the first time it runs, IIS will recompile the page and that takes a little bit time, after the first compile, next run will be fast

hope that helps

User avatar
Kentico Support
Kentico Support
kentico_jurajo - 2/2/2009 8:24:30 AM
   
RE:Landing page download times
Hi,

The problem can be also caused by the hosting environment restrictions - I am aware that DiscountASP has restrictions on CPU and Memory usage and also on idle time. The application is then killed, so the first start takes more then usual. Could you please check the event log in Site Manager -> Administration? You should see there Application_End and Application_Start events.

Best Regards,
Juraj Ondrus

User avatar
Member
Member
sahuspilwal1981-hotmail - 2/2/2009 11:37:12 AM
   
RE:Landing page download times
Hi Jurajo,

I see lots of references to Application_Start and Application_End every 15 mins or so in the event log.

Here is the content of the log:

Event ID: 762
Event type: Error
Event time: 2/2/2009 1:31:11 PM
Source: Application_End
Event code: EXCEPTION
IP address:
Description: Message: HostingEnvironment initiated shutdown
HostingEnvironment caused shutdown

Shutdown stack: at System.Environment.GetStackTrace(Exception e, Boolean needFileInfo)
at System.Environment.get_StackTrace()
at System.Web.Hosting.HostingEnvironment.InitiateShutdownInternal()

Call stack: at Global.Application_End(Object sender, EventArgs e)
at System.RuntimeMethodHandle._InvokeMethodFast(Object target, Object[] arguments, SignatureStruct& sig, MethodAttributes methodAttributes, RuntimeTypeHandle typeOwner)
at System.RuntimeMethodHandle.InvokeMethodFast(Object target, Object[] arguments, Signature sig, MethodAttributes methodAttributes, RuntimeTypeHandle typeOwner)
at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture, Boolean skipVisibilityChecks)
at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
at System.Web.HttpApplication.ProcessSpecialRequest(HttpContext context, MethodInfo method, Int32 paramCount, Object eventSource, EventArgs eventArgs, HttpSessionState session)
at System.Web.HttpApplicationFactory.FireApplicationOnEnd()
at System.Web.HttpApplicationFactory.Dispose()
at System.Web.HttpRuntime.Dispose()
at System.Web.HttpRuntime.ReleaseResourcesAndUnloadAppDomain(Object state)
at System.Threading._ThreadPoolWaitCallback.WaitCallback_Context(Object state)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
at System.Threading._ThreadPoolWaitCallback.PerformWaitCallbackInternal(_ThreadPoolWaitCallback tpWaitCallBack)
at System.Threading._ThreadPoolWaitCallback.PerformWaitCallback(Object state)

I also received this slow load when it was hosted on my own development server so not sure if this is the problem. Do you know of any methods to optimise the speed of the website. I also got a report done from website speed testing tool. It came back stating the site was loading in 0.9 - 1.7 seconds. Though I've found it to take anything from 3 - 10 seconds loading from my own browsers.

Any help would be greatly appreciated.

All the best,

Sahus Pilwal

User avatar
Kentico Support
Kentico Support
kentico_jurajo - 2/3/2009 5:10:55 AM
   
RE:Landing page download times
Hi,

If my information is correct, discountASP is killing the application after 20 minutes idle time. Can be this the issue?

Moreover, here you can find more information about performance - http://devnet.kentico.com/Blogs/Martin-Hejtmanek/August-2008/Performance-of-Kentico-CMS.aspx

Best Regards,
Juraj Ondrus

User avatar
Member
Member
sahuspilwal1981-hotmail - 2/5/2009 6:43:52 AM
   
RE:Landing page download times
Hi Jurajo,

Yes it's restarting the application every 20 minutes. I'm sure this is causing the problem as the website has to re-compile serverside code into the asp.net runtime engine before it returns the code to the client. This would occur anytime the IIS or website application restarts. As this occurs every 20 minutes it seems the site landing page is always slow. That's not the case. It's because it's re-compiling everytime which is normal behaviour.

Do you think DiscountASP are doing this for a reason relating to the CMS solution. Can I prevent them restarting the application or request them to stop this restart of web app? Would it be worth uploading the default corporate site and see if this occurs also. This could enlimate the problem being with the CMS solution or just the website package?

Any help would be greatly appreciated.

All the best,

Sahus



User avatar
Kentico Support
Kentico Support
kentico_jurajo - 2/6/2009 7:50:08 AM
   
RE:Landing page download times
Hi,

These are the default settings for all applications hosted on DiscountASP. We do not know why they have these restrictions.

I do not know if they will change the setting for you. Anyway, I would like to recommend you Applied Innovations hosting - http://www.kentico.com/Partners/Hosting-Partners.aspx

Best Regards,
Juraj Ondrus