Thursday, February 19, 2009

DNN Optimization Steps

  1. Increase it's performance by deleting it's logs. To do that, login to your DNN site as HOST. Then go to "Admin" > "Log Viewer". Then in the log viewer page , there are "Delete selected exceptions" and "Clear log" link at the bottom of page.
  2. Another faster way would be connecting to your DNN db directly and run the following command: - delete from eventlog.
  3. Deleted blank spaces in default.aspx file.
  4. Deleted blank spaces in skin file,Javascript file.
  5. Startup performance can be increased by going to the Site Configuration settings and disable the Logging feature (by setting Logging to "0" in Site Settings or Host Settings)... obviously, this could be done if you don't need a logging feature (and I don't need it).
  6. Disable scheduler mode host>>hostsettings>>advanced settings
  7. Use the release.config from the DNN package
  8. Ensure that DNN does not run in debug mode : LI>
  9. Enable HTTP compression (http://www.dotnetjunkies.com/Article/16267D49-4C6E-4063-AB12-853761D31E66.dcik)
  10. ‘Host’ -> ‘Host Settings’ -> ‘Advanced Settings’ -> ‘Performance Settings’ -> turn on the Compression and Whitespace filter options. Don’t use this option if you have installed any SSL manager module for DNN or if you want use the internal skin, template or css editors.

  11. Set debug mode to false: .
  12. Check if the DNN caching is enabled: ‘Host’ -> ‘Host Settings’ -> ‘Advanced Settings’ -> ‘Performance Settings’ -> Select ‘Moderate Caching’ or ‘Heavy Caching’ from the ‘Performance Setting:’ drop down list.
  13. (‘Host’ -> ‘Host Settings’ -> Advanced Settings’ -> ‘Other Settings’),Select ‘Database’ for ‘Site Log Storage’,Active the ‘Disable Users Online’ checkbox.
  14. More than 50% of all DNN page content is Viewstate. To remove the Viewstate from the page content, go to: ‘Host’ -> ‘Host Settings’ -> ‘Advanced Settings’ -> ‘Performance Settings’ and select ‘Memory’ from ‘Page State Persistence:’ radio button list. This will reduce the page loading time up to 50%.
  15. Some hosting providers unload the DNN dll's after a certain time to save CPU time on their shared hosting environments. Also DNN deletes the cache after a certain time. This can be bypassed by SmarterPing by SmarterTools.SmarterPing by SmarterTools keeps DNN sites up and running and it does a great job. If you ping DNN URLs it dramatically improves the performance of DNN. Set SmarterPing to ping 4 or 5 key areas every minute. The loading times are 4 or 5 times faster.If there are any problems after you have changed this parameter and you can not go back because the update host settings button doesn’t work, perform the script below via Host -> SQL or SQL Web Admin:update hostsettings,set SettingValue = 'P',where SettingName = 'PageStatePersister'.
  16. Restrict the number of Log Types -> ‘Admin’ -> ‘Log Viewer’ -> select ‘Edit Log Configurations’ from the module menu -> delete all unimportant items.

4 comments:

  1. Thanks for taking the time to discuss this, I feel strongly about it and love learning more on this topic. If possible, as you gain knowledge, would you mind updating your blog with extra information? It is extremely helpful for me.
    DotNetNuke Support

    ReplyDelete
  2. I have bookmarked your blog, the articles are way better than other similar blogs.. thanks for a great blog! internet marketing consultant Eugene

    ReplyDelete