Showing posts with label slow. Show all posts
Showing posts with label slow. Show all posts

Wednesday, March 21, 2012

AJAX Tabpanel - Runs slow on IE 7.0 but very fast on FireFox?

Folks,

I am using AJAX.net TabContainer control with 5 tabpanels in it. Each tabpanel has an update panel [update mode is "conditional"] and inside the update panel, I have a gridview control [Editable]. Now, I also have a "Save" button in each of the update panels, that will save the data I enter in the "GridView". The idea is, to update only the "current tab" when I click on "Save"

The problem is that, the code runs very fast on FireFox [meaning, the update is almost instantaneous]. However, on IE7, the update takes thrice as much time as the "FireFox". I think the Javascript runs slow on IE7

Any help or thoughts?

-Thanks

Any one from the AJAX Team?

ive experienced the same thing..very slow for IE rendering..3-4 second pause before the page renders to the screen versus FireFox which just pops up the content without a delay.


I also had the same problem. Actually i had two TabContainers on one page and i not checked firefox but it was very slow in IE and for that reason i removed tabcontainer from my code. Any reason for it being slow and any help in making it fast would be appriciated. Thanks.
Same here. I had to load several text areas into about 9 tabs. This text was really slagging IE. I ended up using a dropdownlist to choose which tabpanel to make visible instead of loading them all at once.

Hehehe... back in the bad old days before AJAX, I made tab-panels from the wizard control with some CSS work. Then when the AJAX extensions came along, I just droped the wizard into an update panel, and it worked great... 10 second job. Then I started converting these to the TabContainer / TabPanel when the AjaxControlToolkit came out. I have pretty much learned that I wasted my time because of the perfomance issues... it is "faster" on FireFox, but still has poor performance. Thank god for backups.


I have a similar sitiuation. I have 4 tabpanels, one tab has a selectable gridview and associated formview wrapped in an update panel. The other three tabs contain editable gridviews wrapped in update panels. One of three gridviews has two dropdownlists as columns with 8000+ selections. When I click on edit on a row using IE the row enters edit mode in around 4 seconds. If I then click on update or cancel it takes over 2 minutes to repaint; using Firefox it repaints in 5 seconds.

If I get rid of the update panels all is well in IE. If I leave the update panels and replace the dropdownlists with textboxes all is well in IE. Big dropdowns in updatepanel wrapped gridview columns seems to be a problem in IE. Firefox handles fine.

Any ideas??? I've Googled and tried things for two days to no avail?

AJAX Slow Startup Time for First Request

Hi,

After quite a bit of hunting around posts I'm stuggling to find any issues that seem to match our performance issues that appear to only target startup and not actual application performance.

We have a Web Application Project (Visual Studio 2005 SP1) using AJAX that is deployed onto IIS 6 and each time after the worker process is recycled the first request is taking (on average) 20 seconds to complete. Each additional request thereafter is completing in under 2 seconds.

All of the assemblies deployed onto the server are release build assemblies and the debug option within the web.config file is set to true. We are not seeing any issues with the time or amount of data being transferred to the client browser after the first request.

After some extra digging we have discovered that without any reference to System.Web.Extensions within the web.config (effectively removing AJAX from the application) the first request after the worker process is recycled is completing within 3 seconds. And, subsequently adding in the appropriate AJAX references causing the first request to return to taking 20 seconds to complete.

What does adding the System.Web.Extensions references into the Web.Config cause ASP.Net to do on startup? I'm more than happy to accept that there is going to be some additional cost, however, an additonal 15-17 seconds is a large leap.

Is there anything that we can do to minimise this lengthy startup time?

Thanks in advance of any assistance.

With ASP.Net, the first request will always take longer. There is the overhead of JIT compiling for the requested app. One of the ways you can cut this down is to use pre-compilation for your website.

If you are releasing 'release' versions of your dlls, you shouldn't need debug set to true. Setting this to false could also help with speed.


I have the same problem.

AJAX.NET take sometime to load and also Infragistics WebGrid takes about 15 seconds to load.


I understand that there will always be an overhead for a first request.

My concern isn't an ASP.Net problem, but rather an AJAX problem. Our application without any AJAX functionality is able to comlete it's first request in under 3 seconds, however, as soon as we attempt to include AJAX into the application (with no other changes) the first request is now taking 20 seconds to complete.


Regardless of any other application settings, the only one that seems to make it any slower is including the AJAX web.config settings.


We are also facing same issue. Please do let me know if you have managed to resolve this issue.


So far the only workaround we have applied for this issue is to modify the IIS 6 application pool details to prevent the worker processes from recycling as often as they do by default. This is not a long term workaround, but has helped for us as we do not have any memory/performance issues with our application running over long periods of time.


I'll be sure to post here again if we do discover an appropriate solution.


I'll try to set the IIS 6 Application Pool as you wrote.

Thanks!


Hi, we are still trying to solve this problem with the System.Web.Extensions assembly.

We made severals tests and finally today we noticed one thing. We have set up a virtual machine with a clean Windows 2k3 installation, IIS, ASP.NET 2.0 and AJAX Extension.

We found that if this virtual machine is not connected to the network, the assembly load in less than a second, but when we have connected it to the network the startup time was around 20 seconds.

Can anybody test this?

Does anybody have some ideas about how to solve this problem?

Thanks.


After a bit of testing we found a work around for this problem

We installed on our virtual machine a network sniffer and an empty WebSite with only the reference to System.Web.Extensions assembly.

We noticed that during the startup, our machine was trying to connect to the IP address (131.107.115.28) responding to crl.microsoft.com.

We added this line to our hosts file (C:\Windows\System32\Drivers\etc\):

127.0.0.1 crl.microsoft.com

and restart IIS.

Well, our application now takes less than 2 seconds to startup.

Hope you'll find this helpful!Cool


What the hell was it doing that for? Bill? You got some explaining to do!


Dbdj:

After a bit of testing we found a work around for this problem

We installed on our virtual machine a network sniffer and an empty WebSite with only the reference to System.Web.Extensions assembly.

We noticed that during the startup, our machine was trying to connect to the IP address (131.107.115.28) responding to crl.microsoft.com.

We added this line to our hosts file (C:\Windows\System32\Drivers\etc\):

127.0.0.1 crl.microsoft.com

and restart IIS.

Well, our application now takes less than 2 seconds to startup.

Hope you'll find this helpful!Cool

Has anyone else tried this? and did it help?


found this:

That is Microsoft's certificate authority server (CRL stands for "Certificate Revocation List"), which is used to verify whether the certificate for an application (or website) is legitimate or not. Microsoft applications have certificates associated with them and they can be check for validity at crl.microsoft.com.

Here's a relate thread:

http://www.wilderssecurity.com/showthread.php?t=15867

Here's a basic definition for CRL in general terms. You can search Google using "Certificate Revocation List" and find a lot more information.

http://encyclopedia.thefreedictionary.com/Certificate%20Revocation%20List

Now, you could try disabling the check in IE for "publisher's" certificate revocation, that is probably what's causing these particular connections. (IE > Tools menu > Internet Options... > Advanced tab > scroll down to Security section and look for "Check for publisher's certificate revocation" - is it checked?)


We tried to run our application with and without that option but there was no difference. So we decided to work on the "hosts" file.


After my ASP.NET website sits idle for more than 20 mins the next request is very slow. The reason is that the application domain is flushed from IIS and the application needs to be recompiled. I found this utility to be handy.http://www.spikesolutions.net/ViewSolution.aspx?ID=c2b7edc0-5de1-4064-a432-05f6eded3b82

Ajax slow downs page rendering/processing, IE hangs up for some seconds(~10)

I have a grid on my page and i am usingajax. Grid displays just 8 rows of thousands of records, i use a pagingmechanism. I realized that it is so slow at displaying records. Itraced the fetch time of my connection and find out that it is enoughfast. But i realized that my browser hangs up for a while (like 10secs) and thats why i though that data is coming slow, but ajax was theproblem since i saw that everything is OK without an updatepanel.

( problem does notactuallyhappen for the first loa. It gets slower when go further pages. But my query onlyreturns records belongs to that page. I have a custom paging solutionand it takes pagesize and pagenumber as parameter and just works fine. )

The question is how can I make my page rendered or processed or x? inside browser faster without disabling ajax in the page. ?

( Microsoft Ajax Library & Toolkit.. By the way i realized that my views state is almost 10Kb and my page is 70Kb )

hello.

do you have apublic url we can test?


Sorry we don't have one. By the way my page works faster on firefox...

But i can send the pagesource if it make sense


hello.

well, not really. you're saying that it takes a lot of time, so what is really important is seeing the ammount of data that is travelling between client and server and if the time is taking too long to process on the client or in the server. you can always do that yourself with fidder, of course...


well i see... I have already inspected that and i think that's not the problem in my opinion. You know I have also an updateprogresspanel and an animated gif representing loading. Evet that gif stops animating during the the time in topic. I mean loading gets done after maybe 1-2 secs but after that gif stops ie stays like dead body :) for a while


xenonoysf:

vet that gif stops animating during the the time in topic. I mean loading gets done after maybe 1-2 secs but after that gif stops ie stays like dead body :) for a while

Strange because I've found that ie is a little faster than firefox for update panels.

Could you test your app both in ie6 and ie7?

Could you disable/remove google toolbar (or other add-ons) from ie?


unfortunatelly i can't... :(

but i want to share a link of a discussion of the similar problem ...

http://forums.asp.net/t/1065004.aspx?PageIndex=1


hello again.

well, but the problem that is happening there is that there lots of data to be shown, which doesn't happen in your case, right?


hi;

actually yes ... I also tried the solution mentioned there but didn't work out... (= the script block that removes some nodes; i guess clears updatepanel content and enable it rendered back instead removing one by one, or something like that, but i think this only useful when there are lots of rows)

The freezing happens after that block of code works, now i am trying to debug js to find out where that some much time spending...


Did anyone figure out a solution to this, having a nightmare, Ajax fast in everything except IE7, do they not test this sort of thing?!?!?!?!

hello.

well, they do test it but they can't think of everything. nor can anyone, i think...

regarding the problem, I'd start by using fiddler to see where the botleneck is. if it's not on getting teh data, then I'd debug the client code to see what is taking so much time. unfortunately, it seems like thsi problem is not easy to replicate , which means that there's not much anyone that doesn't have the problem can do to help...