Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeDevelopment and...Development and...DNN Platform (o...DNN Platform (o...DNN 6.1 ClientDependency performance problemDNN 6.1 ClientDependency performance problem
Previous
 
Next
New Post
4/5/2012 6:05 PM
 
Hi all, 

I am building a DNN module and I noticed quite high performance degradation from DNN 06.00.02  to 06.01.05.

I measured the server time with Google Chrome at my local machine: http://code.google.com/intl/sl-SI/chr...

While the “sending” and “receiving” time are for both versions minimal (1ms), the “waiting” time DOUBLES in DNN v 6.1 (from 450 ms to 1000ms) . I suppose this is the server processing time.

I further investigated with the help of the Equatec profiler http://www.eqatec.com/Profiler/   and I found out, that the bottleneck is the method (stack) 

ClientDependency.Core.Controls.ClientDepandencyLoader.OnPreRender(…) ClientDependency.Core.Controls.ClientDepandencyLoader.RegisterClientDependencies(…) ClientDependency.Core.Controls.ClientDepandencyLoader.FindDependencies(…)

from the ClientDependency.Core.dll is even not called in DNN v 6.0.

The ClientDependency.Core.Controls.ClientDepandencyLoader.OnPreRender(…) takes 851 ms.
 
I was really surprises when I Googled about the ClientDependency.Core.dll and I found that this library is actually supposed to increase the performance : ) http://nuget.org/packages/ClientDepen...

Anyone knows there are any additional settings needed, or has any idea why is this method so slow or does have the same problem?

If everywhere works like this I would say this is a bug…??

Any suggestion would be appreciated.
I am running DNN on IIS 7.5

Thank You, 
Kristijan

 
New Post
4/5/2012 6:18 PM
 
It is called as the ClientResourceLoader on default.aspx does a databind on each request (in page init) to link the locations for shared scripts and skin path (which is dynamic hence the bind). However that is concening that it takes that long (though I dont know if that is the case for everyone as for example dotnetnuke.com does not appear to have that issue) - please log this as a bug at support.dotnetnuke.com so we can investigate further.

Buy the new Professional DNN7: Open Source .NET CMS Platform book Amazon US
 
New Post
4/5/2012 7:15 PM
 

Thank you Cathal, 

Your (quick) answer gave me an idea to profile another page (andmin), and here the same method took just 76 ms. 

So I encounter the problem only in my module. Some more info (for the testers): 
  • The method is slow no matter of full page reload or post back call.
  • The method performance changes depending on how many elements have a module sub page (pictures). From 300 ms up to 850ms.
  • In the page I load some js. libraries dynamically and some other refistrations OnInit event …if this could cause any trouble ...? :

....

    RegisterClientScript("jqModal", "~/DesktopModules/ModuleName/Js/Libs/jqModal.js");
            RegisterClientScript("Header", "~/DesktopModules/ModuleName/Js/Header.js");
            RegisterClientScript("MasterDetails", "~/DesktopModules/ModuleName/Js/MasterDetails.js");
            RegisterClientScript("WsiTables", "~/DesktopModules/ModuleName/Js/WsiTables.js");

            if (DotNetNuke.Framework.AJAX.IsInstalled())
            {
                DotNetNuke.Framework.AJAX.RegisterScriptManager();
                RadScriptManager scriptManager = (RadScriptManager)ScriptManager.GetCurrent(this.Page);
                ServiceReference serviceReference = new ServiceReference();
                serviceReference.Path = @"~/DesktopModules/VipCrm/Wsi.asmx";
                scriptManager.Services.Add(serviceReference);


                serviceReference = new ServiceReference();
                serviceReference.Path = @"~/DesktopModules/VipCrm/WsiEntriesTbl.asmx";
                scriptManager.Services.Add(serviceReference);
            }

....

protected void RegisterClientScript(string key, string path)
        {
            if (Page.ClientScript.IsClientScriptBlockRegistered(key))
                return;
            Page.ClientScript.RegisterClientScriptInclude(key, ResolveUrl(path));
        }

Regards,

Kristijan



 
New Post
4/6/2012 6:47 AM
 
6.01.05 take more momory of server, i dont know
and if using jquery cdn (google) => error DotNetNuke.Services.Exceptions.PageLoadException: No such host is known
I think ClientResourceManagement have some bug

https://www.onednn.com
 
New Post
4/6/2012 9:24 AM
 
Before upgrading to 6.1.5 the RAM about 195Mb, now after up to 6.1.5: RAM alway > 290-300Mb, hic, My server is overload

https://www.onednn.com
 
Previous
 
Next
HomeHomeDevelopment and...Development and...DNN Platform (o...DNN Platform (o...DNN 6.1 ClientDependency performance problemDNN 6.1 ClientDependency performance problem


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out