Portal Engine Questions on portal engine and web parts.
Version 4.x > Portal Engine > Poor performance View modes: 
User avatar
Member
Member
kentico-2622.co - 1/13/2010 6:47:27 AM
   
Poor performance
Hey guys,

I am developing a portal engine site using Kentico 4.1, however the performance is really poor when accessing the site via the web for the first load.

I have turned on caching in the following areas as recommended in a couple of threads in:
- CMSDesk > Properties > General >Cache = 1440
- SiteManager > Settings > Cache content (minutes) = 1440
- SiteManager > Settings > Cache page info (minutes) = 1440

This has helped speed up subsequent page requests however the first time a user enters the site we are still looking at a load time of around 22 seconds.

Any thoughts on anything else that I can do to help speed this up?

Thanks in advance

Mac

User avatar
Member
Member
Alex Rybin - 1/13/2010 6:50:28 AM
   
RE:Poor performance
Fisrt of all - use precompiled web-site. Kentico CMS contains a lot of code, so really slow starts. Precompilation solves this problem.

User avatar
Member
Member
kentico-2622.co - 1/13/2010 7:44:12 AM
   
RE:Poor performance
Hi Alex,

Thanks for your quick response, I have just read here that there are some disadvantages and limitations to doing this. Also I don't think that this will work for me as it will mean that I cannot add a web part to a template without having to build and deploy the website.

Is there anything else that I can try?

Thanks again

User avatar
Member
Member
Alex Rybin - 1/13/2010 1:13:47 PM
   
RE:Poor performance
May be you got some mistakes. You can add web-parts, change templates and so on. You will have some restrictions with editing transformations and layouts. And no other...

User avatar
Member
Member
Alex Rybin - 1/13/2010 1:14:41 PM
   
RE:Poor performance
kentico-2622.co wrote: Is there anything else that I can try?

Buy HUGE server! :)

User avatar
Kentico Support
Kentico Support
kentico_jurajo - 1/14/2010 2:14:26 AM
   
RE:Poor performance
Hi all,

I am not sure if you have already seen our CTO's blog, but he is posting useful posts about optimization and how to speed up the site, please find below the links to the posts and documentation:

http://devnet.kentico.com/docs/devguide/performance_overview.htm
http://devnet.kentico.com/Blogs/Martin-Hejtmanek/January-2010/Optimization-tip--Write-better-code,-disable-Outpu.aspx
http://devnet.kentico.com/Blogs/Martin-Hejtmanek/December-2009/Optimization-tip--Speed-up-your-images-and-files.aspx
http://devnet.kentico.com/Blogs/Martin-Hejtmanek/December-2009/Tip--Is-your-menu-and-controls-cache-settings-effi.aspx
http://devnet.kentico.com/Blogs/Martin-Hejtmanek/October-2009/Webinar-2---Performance-optimization-and-caching-i.aspx


Also, if you are using shared hosting, please check Site Manager -> Administration -> Event log. It is possible that the environment is killing the application, so each start takes longer time.

Best Regards,
Juraj Ondrus

User avatar
Member
Member
kentico-2622.co - 1/21/2010 5:55:28 AM
   
RE:Poor performance
Hi all,

Many thanks for your posts, I have had a look at the event log and you are right the environment is killing the application. I have sent a message to my hosting company to ask if I can provent this from happening however either way I think that me pre-compiling the application is a good idea.

Three newbie questions:

1) I have been building the site remotely as it runs faster than in vs2008 - Are there any files / folders that I will need to copy back from my server before I compile?

2) What is the best practice method that I should follow if I want to create a transformation after the website has been compiled?

3) Is there anything else that I should be aware off when doing this? I read somewhere about changing the VPP in the web.config - anything else?


Thanks

Mac

User avatar
Kentico Support
Kentico Support
kentico_jurajo - 1/26/2010 5:41:36 AM
   
RE:Poor performance
Hi again,

1) Basically all files and folders are required. It is hard to say which ones you need because I do not know what you have changes, from which classes are you inheriting or which controls are used on your pages/web parts. You can use the trial and fail approach. I can say for sure that you need all the App_* folders. And also for exampe CMSModules, CMSFormControls, etc - it depends what you are using or what is used by elements on your site.

2) You need to create the transformation locally, save virtual objects to disk and then precompile the web site again and then deploy to live server (this applies also for page templates, page layouts, etc.)

3) I am not sure if I am getting the right meaning - you do not need to change virtual path provider settings, but in precompiled web site this provider won't work probably, therefore you need to deploy virtual objects to disk.

Best Regards,
Juraj Ondrus

User avatar
Member
Member
michael-thefamousgroup.com - 9/2/2010 9:13:11 PM
   
RE:Poor performance
Hi

Sorry to re-open up an old thread, but we're having major loading issues with all our Kentico sites - they are very slow to load and even the default corporate site is the same.

Reading the above we have looked at the event log and see that the App is being Ended every so often.

So my question is - did you manage to get your hosting company to not kill the app, and if so, did this make a noticeable difference?

Thanks
Michael

User avatar
Kentico Support
Kentico Support
kentico_jurajo - 9/6/2010 2:53:22 AM
   
RE:Poor performance
Hi,

Could you please post more details about the exceptions?

There should be some difference, since once the application is started - all necessary data are loaded to memory, if you are using cache - data are cached and therefore faster accessible. If the application is restarted very often - the data have to be loaded to memory again and again from disk and this take extra time.

Best regards,
Juraj Ondrus