HighTechTalks DotNet Forums  

Tracing: "End ProcessPostData" and "Begin Page_Load"

Dotnet Framework (Performance) microsoft.public.dotnet.framework.performance


Discuss Tracing: "End ProcessPostData" and "Begin Page_Load" in the Dotnet Framework (Performance) forum.



Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old   
Man Manovich
 
Posts: n/a

Default Tracing: "End ProcessPostData" and "Begin Page_Load" - 10-05-2004 , 05:22 AM






I have placed Trace.Write() at the begining of the Page_Load method. Here is
trace log:


aspx.page Begin Init
aspx.page End Init 0.005577 0.005577
aspx.page Begin LoadViewState 0.005611 0.000035
aspx.page End LoadViewState 0.005702 0.000091
aspx.page Begin ProcessPostData 0.005720 0.000018
aspx.page End ProcessPostData 0.007424 0.001704
Page_Load begin 0.055457 0.048033
Page_Load end 0.299973 0.244515
aspx.page Begin ProcessPostData Second Try 0.300013 0.000040
aspx.page End ProcessPostData Second Try 0.300037 0.000024

.....

What happens after "End ProcessPostData" and before "Begin Page_Load"? It
takes too much time (0.048033). But the real problem is that sometimes it
can take up to 7-10 seconds!!! It's not acceptable.
In according to
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnaspp/html/aspnet-pageobjectmodel.asp
Page_Load executes immediately after ProcessPostData.



Reply With Quote
  #2  
Old   
Man Manovich
 
Posts: n/a

Default Re: Tracing: "End ProcessPostData" and "Begin Page_Load" - 10-05-2004 , 06:55 AM






Here is more detailed trace log:

aspx.page Begin Init
DimensionTreeView Begin OnInit 0.000030 0.000030
DimensionTreeView End OnInit 0.005146 0.005116
aspx.page End Init 0.005195 0.000049
aspx.page Begin LoadViewState 0.005211 0.000016
aspx.page End LoadViewState 0.005301 0.000090
aspx.page Begin ProcessPostData 0.005318 0.000018
aspx.page End ProcessPostData 0.005374 0.000056
aspx.page begin OnLoad 0.005391 0.000017
Page_Load begin 9.208083 9.202692
Page_Load end 9.451887 0.243804
aspx.page end OnLoad 9.451926 0.000039
aspx.page Begin ProcessPostData Second Try 9.451944 0.000018
aspx.page End ProcessPostData Second Try


I have override Page.OnLoad method:
protected override void OnLoad(EventArgs e)

{

Trace.Write("aspx.page", "begin OnLoad");

base.OnLoad (e);

Trace.Write("aspx.page", "end OnLoad");

}

So slowing down occurs in Page.OnLoad method. I have only one event handler
for "Load" event - Page_Load.



"Man Manovich" <manovich (AT) ua (DOT) fm> wrote

Quote:
I have placed Trace.Write() at the begining of the Page_Load method. Here
is trace log:


aspx.page Begin Init
aspx.page End Init 0.005577 0.005577
aspx.page Begin LoadViewState 0.005611 0.000035
aspx.page End LoadViewState 0.005702 0.000091
aspx.page Begin ProcessPostData 0.005720 0.000018
aspx.page End ProcessPostData 0.007424 0.001704
Page_Load begin 0.055457 0.048033
Page_Load end 0.299973 0.244515
aspx.page Begin ProcessPostData Second Try 0.300013 0.000040
aspx.page End ProcessPostData Second Try 0.300037 0.000024

....

What happens after "End ProcessPostData" and before "Begin Page_Load"? It
takes too much time (0.048033). But the real problem is that sometimes it
can take up to 7-10 seconds!!! It's not acceptable.
In according to
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnaspp/html/aspnet-pageobjectmodel.asp
Page_Load executes immediately after ProcessPostData.




Reply With Quote
  #3  
Old   
Man Manovich
 
Posts: n/a

Default Re: Tracing: "End ProcessPostData" and "Begin Page_Load" - 10-06-2004 , 02:17 AM



I have solved this problem. In fact base class for WebForm was not
System.Web.UI.Page, it was custom class and it has own overloaded OnLoad
method %)

"Man Manovich" <manovich (AT) ua (DOT) fm> wrote

Quote:
Here is more detailed trace log:

aspx.page Begin Init
DimensionTreeView Begin OnInit 0.000030 0.000030
DimensionTreeView End OnInit 0.005146 0.005116
aspx.page End Init 0.005195 0.000049
aspx.page Begin LoadViewState 0.005211 0.000016
aspx.page End LoadViewState 0.005301 0.000090
aspx.page Begin ProcessPostData 0.005318 0.000018
aspx.page End ProcessPostData 0.005374 0.000056
aspx.page begin OnLoad 0.005391 0.000017
Page_Load begin 9.208083 9.202692
Page_Load end 9.451887 0.243804
aspx.page end OnLoad 9.451926 0.000039
aspx.page Begin ProcessPostData Second Try 9.451944 0.000018
aspx.page End ProcessPostData Second Try


I have override Page.OnLoad method:
protected override void OnLoad(EventArgs e)

{

Trace.Write("aspx.page", "begin OnLoad");

base.OnLoad (e);

Trace.Write("aspx.page", "end OnLoad");

}

So slowing down occurs in Page.OnLoad method. I have only one event
handler for "Load" event - Page_Load.



"Man Manovich" <manovich (AT) ua (DOT) fm> wrote in message
news:uZEOkWsqEHA.3976 (AT) TK2MSFTNGP10 (DOT) phx.gbl...
I have placed Trace.Write() at the begining of the Page_Load method. Here
is trace log:


aspx.page Begin Init
aspx.page End Init 0.005577 0.005577
aspx.page Begin LoadViewState 0.005611 0.000035
aspx.page End LoadViewState 0.005702 0.000091
aspx.page Begin ProcessPostData 0.005720 0.000018
aspx.page End ProcessPostData 0.007424 0.001704
Page_Load begin 0.055457 0.048033
Page_Load end 0.299973 0.244515
aspx.page Begin ProcessPostData Second Try 0.300013 0.000040
aspx.page End ProcessPostData Second Try 0.300037 0.000024

....

What happens after "End ProcessPostData" and before "Begin Page_Load"? It
takes too much time (0.048033). But the real problem is that sometimes it
can take up to 7-10 seconds!!! It's not acceptable.
In according to
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnaspp/html/aspnet-pageobjectmodel.asp
Page_Load executes immediately after ProcessPostData.






Reply With Quote
Reply




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.