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

Saturday, March 24, 2012

Atlas Slow first time load

Hey guys,

I hope this is the right forum for posting this. I'm using Ajax 1.0 and the ASP.NET AJAX Control Toolkit.

The problem that I'm having is that the very first time I visit the page, or when the page has been sitting idle for 20 minutes, it takes about 25 seconds before it comes up. After it loads up once, I can refresh and it loads up within less then a second. I have enabled Trace output, and it tells me that the page is loading up in .5xxxx seconds, but from a users perspective when they hit the page, it takes 25 seconds. This happens with the ASP.NET AJAX Control Toolkit sample website as well.

I have set<compilationdebug="false">and it's had no effect. The server that it's on is a new Intel Woodcrest on a RAID 5, so it should be plenty fast enough. Compiling it in Visual Studio takes 1-2 seconds.

I'm not sure what's going on, but for about 23 of the 25 seconds there is no CPU utilization going on. Here is a picture of Task Manager to show what's going on. The stuff in the red box shows when I refreshed the page after I restarted IIS.

Free Image Hosting at www.ImageShack.us

Anyone have any ideas on what's going on during the 20 seconds of the CPU not doing anything?

Thanks,

-Will

Hmmm, that's a new one. Some questions. Do you see this behavior with a standard ASP.NET application? Are you sure the pause is on the server side and not the client side (e.g. is your browser proxy configured right, etc.)? Is the server busy doing something else? Maybe check disk activity during that 20s.

Thanks for the response.

I do not see it with a standard ASP.NET application, but I've only tried out a very basic application. I have tested this on 2 different web servers that we have. I get the same pause when I view it on a browser on the server, or on another computer targeting an Ajax Control Tooklit page. I have also looked at disk I/O as well during the pause. There is some but it's very minimal. I've disabled the Virus scanner to see if it's causing anything. The only things really installed on them, because I just built it, are Windows 2003 Enterprise Edition, Mcafee Virus Scan, IIS 6.0, Visual Studio 2005, Ajax v1.0, and the Ajax Control Toolkit.

I'm suprised, that other people aren't experiencing this. I've experienced it on 2 computers now. I thought it had something to do with having .NET 3.0 RC1 and the orcas stuff, but I just did a brand new clean install on another machine and I'm getting the exact same pause.

Any other advice or suggestions would be appreciated.

Thanks


Hi, i am having the same problem. It seems that the page is trying to download the whole toolkit dll every time the page loads. I am on a 56k connection and the page takes about 2 mins to open. The same happens when i try to open this site (asp.net site). Has any solution been found for this?? Thanks.


Could you maybe get a complete trace with Fiddler so we can get an idea what's going on?


I'm currently working on a client issue involving a ASP.NET Website. This site initially takes 25 seconds to load on a Windows Server 2003 OS.

The same ASP.NET Website loads 2 seconds initially on a Windows Server 2000 OS. The website uses the Reports Server control for report viewing.

Perhaps a previous post gives a hint in the direction I might take to figure this out! (i.e., DLL Load Time)!

Stay posted!


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

Wednesday, March 21, 2012

ATLAS seems to me to be slow

I've bulild a new website, some of the pages uses Atlas others not.

Pages without Atlas are 3 times faster then pages with Atlas.

Are there some trick to perform the pages with atlas?

Christian

Hi Christian,

It may be that you are running in debug mode. Please see this otherpost for details.

thanks,
David


Hi David,

thanks!

This was the solution!

Christian

Atlas postback very very slow.

Hi i have a web app and most of the pages work fine, but i have two that are responding very slowly. I use Atlas update panels on the page so i thought if anything the responce would be quicker.
The postback is not doing a great deal. all i am doing is selecting a link button on a grid view which has the command='select' property. Within the row_command event all i am doing is changing the state of a couple of buttons on a seperate update panel.

The buttons act equally slow, they perform more code but still not a 4/10 sec round trip as i have other buttons that do more yet postback faster.

Any thoughts appreciated.

Steve

Hi Steve,

Can you check two things:

1) Are you running the app in debug mode? If so, the Atlas script libraries get downloaded on each request -- and that might be one cause of the delay.

2) What is the size of the viewstate on the page that you are working on? It could be that you have a lot of viewstate on the page which is slowing it down. Disabling viewstate would make postbacks work much faster.

Hope this helps,

Scott


Hi Scott

Thanks for posting.

I dont have it in debug mode.

How would i find the size of viewstate?

Steve


Scott

I disabled view state and the datagrid came back empty. The grid is only 1 col which is a template field with a link button in.

Steve


I have just done a view source on the two pages in question.

One: Viewstate = just short of 45000 chars.
Two: Viewstate = just short of 9000 chars.

So i guess thats the problem?? I am guessing that to cure the gridview coming back blank i will need to rebind on each postback?

Steve


How do i use properties like selectedindex from the gridview when viewstate is disabled??


You can use ControlState instead, which acts a lot like ViewState except that it's never turned off. Seehttp://msdn2.microsoft.com/en-us/library/system.web.ui.pagestatepersister.controlstate.aspx for more information. I'm not 100% sure you can enable at the page level as its supposed to work on controls, but then again a page is just a control

HTH
Thanks

How do i use the selectedindex from control state?

Steve

i use selectedvalue all over the place. Without creating my own control from the gridview is there anyway i can use this value.
I guess the selectedindex would work i could put the id in a hidden value and get it that way BUT... with view state turned off on the gridview i am unable to get the selectedindex, i thought selectedindex was held in control state....is there something special i need to do to use the control state properties?

Thanks

Steve


OK got it sorted.

on rowdatabound i have done e.Row.EnableViewState=false;
this has reduced the viewstate from 50K chars to a little over 6K. And I can access selectedvalue OK.

Time to stick it up live and see how we go.

Thanks, Steve