Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Performance issue with large no. of nodes. (Read 4779 times)
Pazhanivel
YaBB Newbies
*
Offline


I Love MindFusion!

Posts: 10
Location: Chennai
Joined: Sep 4th, 2015
Performance issue with large no. of nodes.
Nov 30th, 2016 at 6:54am
Print Post  
Hi,
We are facing performance issue when we create more than 200 nodes using Imagemap mode.
  
Back to top
 
IP Logged
 
Slavcho
YaBB Moderator
*****
Offline


tech.support

Posts: 3435
Joined: Oct 19th, 2005
Re: Performance issue with large no. of nodes.
Reply #1 - Nov 30th, 2016 at 9:03am
Print Post  
And what kind of issue would that be? Waiting for some automatic layout to complete?
  
Back to top
 
IP Logged
 
Pazhanivel
YaBB Newbies
*
Offline


I Love MindFusion!

Posts: 10
Location: Chennai
Joined: Sep 4th, 2015
Re: Performance issue with large no. of nodes.
Reply #2 - Nov 30th, 2016 at 4:14pm
Print Post  
We are creating large no. of nodes(more than 400) dynamically.
It is working fine in local system.It takes more time(nearly 20 mins) When we host the application in IIS.
We did not use any session object for diagram creation.
Is there  any session objects are used internally?,because in ImageGen.aspx.cs we saw the following code:

protected void Page_Load(object sender, System.EventArgs e)
     {
           string typeParam = Request.Params["type"];
           string dataIdParam = Request.Params["dataId"];

           byte[] data = Session[dataIdParam] as byte[];

        Response.ContentType = typeParam;
           Response.Clear();
        Response.Cache.SetCacheability(HttpCacheability.NoCache);
           Response.OutputStream.Write(data, 0, data.Length);
           Response.Flush();
     }


  
Back to top
 
IP Logged
 
Slavcho
YaBB Moderator
*****
Offline


tech.support

Posts: 3435
Joined: Oct 19th, 2005
Re: Performance issue with large no. of nodes.
Reply #3 - Nov 30th, 2016 at 6:26pm
Print Post  
Recent versions use an ashx HttpHandler instead of aspx page as target of the image element. It's the same principle though - image is generated by page GET request handler along with an <img> tag and its bytes stored in session for the image GET request to return. In any case that should not take 20 minutes, more likely you are seeing effect of IIS CPU Throttling -
https://blogs.iis.net/shauneagan/cpu-throttling-iis-7-vs-iis-8

while running a longer operation on the diagram like path finding, link routing or automatic layout. Try adding some logs for DateTime.Now to see what exactly takes that much time.

Regards,
Slavcho
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint