Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Load Time on asp.net page cannot be accounted for

I am trying to find where my load time is being consumed. I have added tracing to almost everything I can think of and there is a missing 200ms ( which is more than 50% of the total load)

How can I account for this missing time

 Description                        Duration(ms) with Children(ms)  from start(ms)
  http://localhost:80/default.aspx   320.8        357.3              +0.0
  CreateControlCollection            0.0          0.0                +27.2
  OnPreInit                          0.1          0.1                +27.2
  GetVaryByCustomString              0.0          0.0                +227.0
  Control OnInit                     0.0          0.0                +232.4
  Control OnInit                     0.0          0.0                +232.4
  Control OnInit                     0.0          0.0                +234.2
  Control OnInit                     0.0          0.0                +234.2
  Control OnInit                     0.0          0.0                +234.2
  GetVaryByCustomString              0.0          0.0                +234.6
  Control OnInit                     0.0          0.0                +234.9
  Control OnInit                     0.0          0.0                +234.9
  GetVaryByCustomString              0.0          0.0                +235.0
  GetVaryByCustomString              0.0          0.0                +235.3
like image 292
odeits Avatar asked Feb 14 '12 23:02

odeits


People also ask

How do you fix the requested page Cannot be accessed because the related configuration data for the page is invalid?

The requested page cannot be accessed because the related configuration data for the page is invalid. This problem can occur if the specified portion of the IIS configuration file is locked at a higher configuration level. Unlock the specified section, or don't use it at the higher level.

How do I fix resource Cannot be found?

The resource cannot be found. Description: HTTP 404. The resource you are looking for (or one of its dependencies) could have been removed, had its name changed, or is temporarily unavailable. Please review the following URL and make sure that it is spelled correctly.

Is ASP.NET page loading?

Page_Load happens after ViewState and PostData is sent into all of your server side controls by ASP.NET controls being created on the page. Page_Init is the event fired prior to ViewState and PostData being reinstated. Page_Load is where you typically do any page wide initilization.


1 Answers

It looks like the unaccounted-for time is being consumed between PreInit (a page-only event) and Init for a control. A few ideas:

  1. Control initialization is a possible culprit. The control Init event is fired after control initialization is complete, not before.
  2. Are you using ASP.NET themes or skins? If so, they are applied between PreInit and Init.
  3. Keep in mind that Init events are fired bottom-up; children before parents.
  4. Threading issues are a possible cause of time gaps. Are your measurements from an otherwise idle system? Are there any I/O operations happening early in the page life cycle?
  5. Are you using master pages? If so, keep in mind that they are implemented as a child control of the page.
like image 134
RickNZ Avatar answered Sep 22 '22 23:09

RickNZ