Community > Discussions
224 views
7 replies

Slow response time

It seems that the tabs that I have the Live Forum, Live Knowledgebase and Live Exchange on (all on separate tabs)  takes longer to initially load then the Live Form tab.  It also seems that they go to sleep also pretty fast so the extra load time in needed again each time.  If you click a tab with one of the first three modules it may take as much as 7 seconds to load.  If you click off of it and then back it responds almost immediately.  In My Humble Opinion it seems that there is a totally different license method and it seems that the first three keep looking to see if it is a trial that has expired by going back to a ManDeeps license server.  Is there any way to keep these tabs active without writing a ping service to hit these tabs every 5 min?

Bill Bill
Published 06/04/2018 13:43
Add Comment
Bill

using a KeepAlive.aspx helps a lot so far

replied 10/11/2018 20:00
Mandeep Singh

Bill,
We apologize for totally missing this thread. There are no different licensing methods within our modules and none of our products slow down in performance in trying to reach mandeeps license server. As a matter of fact, there is no dependency on mandeeps license server. The server could be down or non-existent and the module would continue to run fine. 

Now let's address why the modules load slow on the 1st page load. There are two reasons: 

  1. DNN compilation on initial page load. 
    • This affects all ASP.NET sites in that IIS releases the site from memory if it has not been accessed in a while. The site then has to recompile and initialize all of its cache which results in significant initial load time. There are many solutions to address this by configuring IIS settings to setting up a Keep Alive service. 
  2. Template compilation on initial page load. 
    • Live Forums, Knowledgebase, and Exchange all use Razor Templates and these are compiled at run-time; meaning, when they're 1st requested. Therefore, the first time these pages are visited the templates are compiled and cached. Subsequent requests are super fast due to caching. This should only happen once during the application lifecycle; unless the app pool is released (See #1 above)
The quick solution is to make sure that your server has adequate resources (Memory) to ensure cache is not recycled and make sure that IIS is configured to release app pool. 

The long term solution would be to pre-compile our templates at initial DNN compilation vs waiting until they modules are accessed for the very first time. I'm going to add this request to our Community Ideas so feel free to vote on it. 
replied 10/09/2018 16:59
Mandeep Singh

You may vote for this idea here: https://www.mandeeps.com/community/ideas/precompile-razor-templates-to-improve-initial-page-load-performance

replied 10/09/2018 17:03
Bill

Does anyone have an answer to this question?  It seems that it happens to your own site the first time in the morning for me.

replied 06/27/2018 12:24
Cody

I experience the same issues and get lots of complaints for the site loading slow discouraging use.   Like you said the initial load of the forum is slow but after that first time opening the page with the module it loads fast.   With the speed everyone expects from websites these days it would be nice to see a performance improvment for initial loads of pages.   It would be nice  to see it at least load the page theme then hand a spinner to show the module is loading.  This would be great for all modules since the future of the world wide web is going to work like this.  HTTP/2 would be what to follow to future proof the design of modules for speed and  performance and cutting down on load times/network demands.

replied 07/04/2018 16:59
Sarai Zyzniewski

We are having the same issue. We are currently looking at 13 seconds for Forums to load (this is with my newest customer who only has one post and a handful of replies.) Is there a way to load some of the module as suggested and continuing loading in the background?

replied 10/05/2018 19:08
Cody

Maybe need to post it as an idea?

replied 10/05/2018 20:16

Last Activity 10/11/2018 20:00