Quick Nav:  Online Store   |   Login | Register

Optimal cache memory limit for DNN in shared hosting environments

Rate this topic:

Please Register to post a reply. Another benefit of registration is the ability to subscribe to and recieve notifications of new posts.
AuthorMessages
eoghan o'neill
<50 Posts
Posts:38


08/10/2007 7:10 AM  

I installed the free version of Page Blaster this week on my DNN 4.5.5 install. My site is in a shared hosting environment. When installing Page Blaster I kept the default configuration parameters in the PB configuration XML file (i.e. 25MB limit for Memory cache and 100MB limit for disk cahing).

All went well for two days until my hosting company said that (for the first time in over a year of them hosting my DNN site) that my memory usage in the shared environemnt was excessive (accoridng to their email to me: "The site's application will jump to over 200MB in less than 5 minutes"). I reacted to this then by reduicing the PF Memory cache in the configuration file from 25MB to 5MB). As an extra precaution I also deleted 4 DLL files from the DNN bin folder that my install didn't use and then restarted the app by adding an extra blankspace to the web.config file. So far all is fine, no other warnigns from the hostign company since the changes and site is working smoothly. (I confirm as well that I did not install any other DNN modules in the last few days, and that the only 3rd party DNN module on the server is Active Forums v3.7)

My questions are:

  • Is there a recommended Page Blaster memory cache limit for DNN sites on shared servers? Is the suggested 25MB limit in the configuration file really best for dedicated servers?
  • I kept the memroy cache interval to the default - of 4 hours. If I reduce this can it help?
  • Any other suggestions to avodi this sort of warning from my hosting company? (who BTW are a DNN benefactor, platinum I think)

I am curious to know!

Thanks,

eoghano

John Mitchell
Posts:3492


08/10/2007 7:30 AM  

Hi eoghano,

What you experienced is normal.  A DNN website usually takes about 160-200 MB of memory, so adding PageBlaster probably pushed you over their threshold if it was at 200.

The default setting of 25MB is more or less optimal for any environment just because that size will store a lot of pages in the memory cache. The setting was put there to limit the memory use in shared hosting environments, but no site should really need more than that.

Decreasing the size will not be a problem on small sites either though. At 5 MB you are still going to be able to cache about 1000 pages in memory on average.  The amount of time can be increased also. 4 hours is on the low end of how long you may want to cache a page, but if you are getting decent traffic then the 4 hour limit may not ever be reached since it is a sliding expiration window. In other words, as long as the page gets called again in that 4 hour window, then it will not be removed from memory.

The other nice thing about PageBlaster is that the whole page also gets cached to disk, so if you are using memory caching, and a page does happen to expire or the application restarts then the next page request can be pulled from disk just like a static html file. After the page is pulled from disk it is put back in memory for the next request, so the disk backup even if you are using a low threshold for memory will provide great performance too.

You may want to tell your hosting company why your memory consumption changed and enquire as to what your threshold is.  200 MB is about as small as should be allowed for a DNN site.

Dan Ward
<20 Posts
Posts:3


08/10/2007 1:16 PM  
This topic leads me to a question that is sort of on topic/off topic. If I have a page that is updated rather often say once every 5 minutes, how does the caching work for this? If I use the default settings of 4 hours and with constant traffic will the users never be able to see the new content or is there a refresh point?
John Mitchell
Posts:3492


08/10/2007 1:20 PM  
Anytime there is a post-back to the server on a specific page the cache is invalidated and rebuilt on the next request.
You can also clear the PageBlaster cache on the server just like with the client-side browser cache by CTRL+F5 in IE or Shift+F5 in FireFox.
eoghan o'neill
<50 Posts
Posts:38


08/11/2007 12:52 AM  
John,
Thanks for the background info & clarification. As advised I've told my hosting company why my memory consumption changed and have enquired as to what my threshold is.
Eoghano
Please Register to post a reply. Another benefit of registration is the ability to subscribe to and recieve notifications of new posts.
Forums >Snapsis Product Support >PageBlaster > Optimal cache memory limit for DNN in shared hosting environments



ActiveForums 3.7
Powered by: Snapsis Software