Portal Engine Questions on portal engine and web parts.
Version 5.x > Portal Engine > Aggressive Ram / Memory resource usage. View modes: 
User avatar
Member
Member
janssy.cai-gmail - 10/17/2010 6:40:29 AM
   
Aggressive Ram / Memory resource usage.
Hi there,

I am using Kentico 5.5, which is originally upgraded from Kentico 4.0.

I got a message from my web hosting as follows:

During a recent server audit / monitoring it was found that your domain's application pool was consuming aggressive Ram resources. Exactly above a 163-MB Ram / memory (with the peak memory of 185MB) resources and this resource usage was rapidly increasing over a short period of time interval which could have caused the Server itself to crash or goto un-responsive state as we are also investigating the reasons of the previous server Crash incidents and our team will be keeping a very close eye on the server itself so that it cant happen again to acomplish our mission, we were forced to limit the RAM / memory for your application Pool temporarily. Regarding this memory limit we have tried our best to facilitate you within the maximum memory limit which was set up with 80MB for your site's application pool.

...

According to the available statistics information for your website, that the most hits to your website is being served by "/ScriptResource.axd" page and then followed by "/CMSPages/GetCSS.aspx" page. You may need to check with your developer on how these two pages could significantly contribute memory consumption of your website at times.


Could anyone please help me out? My website is www.shada.com.au.

Many thanks!




User avatar
Member
Member
Jeffrey H. - 10/18/2010 9:28:19 AM
   
RE:Aggressive Ram / Memory resource usage.
Since it looks like your largest hits are for static resources, we found significant improvement for our site by turning on CMSFullClientCache. We shaved off several gb of bandwidth per month after our initial go live.

You may also try setting your page cache settings in Kentico to be less aggressive, ours is set pretty high but we have a million of hits per day and we use a dedicated server. If you reduce your caching settings then your site may use more CPU and less memory.

It's very hard to pinpoint these type of things, just make a change then monitor the results.

Good luck tuning up your site.

Jeff

User avatar
Kentico Support
Kentico Support
kentico_jurajo - 10/27/2010 2:47:21 AM
   
RE:Aggressive Ram / Memory resource usage.
Hi,

I would also like to add some more information here which I already sent over the e-mail to your colleague.

As you can see on our system requirements page, recommended memory is 125MB+ - www.kentico.com/Download/System-Requirements.aspx. But it also depends on the content of the site (static text vs. dynbamic content), traffic, user's behavior, system and web parts settings etc. If the site has a big traffic, it is usual that the application uses 1GB of memory (with caching options etc.). If yor application pool has only 80MB of allocated memory, this is too few and it will cause application restarts. I would recommed to look for another hosting with more resources available. You can aslo go through the links below to see how to optimize the CMS:

devnet.kentico.com/docs/devguide/sql_queries_debugging.htm
devnet.kentico.com/docs/devguide/threads_debugging.htm

devnet.kentico.com/Blogs/Martin-Hejtmanek/January-2010/Debugging-options-in-Kentico-CMS-5-0.aspx
devnet.kentico.com/Blogs/Martin-Hejtmanek/August-2008/Performance-of-Kentico-CMS.aspx
devnet.kentico.com/Blogs/Martin-Hejtmanek/October-2009/Webinar-2---Performance-optimization-and-caching-i.aspx
devnet.kentico.com/docs/devguide/caching_options.htm
devnet.kentico.com/Blogs/Martin-Hejtmanek/April-2009/Deep-Dive---Kentico-CMS-Caching.aspx
devnet.kentico.com/Blogs/Martin-Hejtmanek/January-2010/Optimization-tip--Write-better-code,-disable-Outpu.aspx
devnet.kentico.com/Blogs/Martin-Hejtmanek/December-2009/Optimization-tip--Speed-up-your-images-and-files.aspx
devnet.kentico.com/Blogs/Martin-Hejtmanek/December-2009/Tip--Is-your-menu-and-controls-cache-settings-effi.aspx

www.kevinleary.net/testing-page-load-speed-with-firebug

Best regards,
Juraj Ondrus

User avatar
Member
Member
janssy.cai-gmail - 11/7/2010 4:27:20 AM
   
RE:Aggressive Ram / Memory resource usage.
Hi Juraj,

Thank you for the information. I would like to mention two points

1. I tried to follow the steps to optimize the site but I could not find the SQL Quries tab under Administration-->System-->Debug. System objects, cache items and Worker threads are the only tabs there. I am using 5.5.3789

2. I have faced a big problem which I hope that you can help me.

I did not know that Kentico is using 1 GB memory. Unfortunately the server that we have shared is offering 80 MB memory which apparently is not enough for Kentico. I received a warning from webhosting about upgrading our account to VPS otherwise they will suspend it. But we can not afford it.

The webiste does not have much traffic , perhaps 50 visitors per day and it does not have much development any more.

Is there any way to disable some functions in Kentico to use up to 80 MB memory ?

I do hope that there is a way for that otherwise Kentico is only a good platform for websites of big business not small ones since I do not think that majority of small businesses can afford to rent VPS hosting.

I really hope that you can help me on this

Kind regards
Janssy

User avatar
Kentico Support
Kentico Support
kentico_jurajo - 11/11/2010 6:45:13 AM
   
RE:Aggressive Ram / Memory resource usage.
Hi,

1) Have you added the keys in the web.config file as per documentation?

2) You can try to install "new" Kentico CMS instance using the web installer where you can deselect the modules you are not using. This can decrease the memory usage. However, 80MB memory for a web site in these days? That sounds strange and for today's web sites it is too low even if the web site is not managed in a CMS. Have you looked for another hosting provider who will give you more memory?

Best regards,
Juraj Ondrus