J
Jason
Hi
I have a "problem"
i have got a ASP.NET application. in this application i have included
logging. in the logging i have logged how many seconds it takes for this
application to fully load.
i have placed these timing loggings in the Load and Init events on a typical
aspx page. i.e. first line of code in Page_Load is
DateTime dtStart = DateTime.Now;
and the last lines of code are
DateTime dtEnd = DateTime.Now;
TimeSpan timeTaken = dtStart - dtEnd;
// log result to log files;
according to my log files, for the first load, it takes 2 seconds for the
application to fully load. every subsequent access to that application takes
1 second or less to fully load. yet, when i manually count the seconds
between clicking "Go" and the time the application is fully loaded, it is
about 17 seconds.
NOTE: the above is a first time load (restarting the web server, or
restarting IIS). every load (from "Go" to "finish") after that, takes 2
seconds or less. Restarting IIS service will then mean the application will,
again, take 17 seconds to load, but only 2 of those seconds are used by the
application.
Are their events i am missing that i should be timing?
is it really IIS that is actually taking up all the time?
what can i do about this first time hit?
Thanks.
Hope i have made sense, if not, lemme know so i can clarify
Jason
I have a "problem"
i have got a ASP.NET application. in this application i have included
logging. in the logging i have logged how many seconds it takes for this
application to fully load.
i have placed these timing loggings in the Load and Init events on a typical
aspx page. i.e. first line of code in Page_Load is
DateTime dtStart = DateTime.Now;
and the last lines of code are
DateTime dtEnd = DateTime.Now;
TimeSpan timeTaken = dtStart - dtEnd;
// log result to log files;
according to my log files, for the first load, it takes 2 seconds for the
application to fully load. every subsequent access to that application takes
1 second or less to fully load. yet, when i manually count the seconds
between clicking "Go" and the time the application is fully loaded, it is
about 17 seconds.
NOTE: the above is a first time load (restarting the web server, or
restarting IIS). every load (from "Go" to "finish") after that, takes 2
seconds or less. Restarting IIS service will then mean the application will,
again, take 17 seconds to load, but only 2 of those seconds are used by the
application.
Are their events i am missing that i should be timing?
is it really IIS that is actually taking up all the time?
what can i do about this first time hit?
Thanks.
Hope i have made sense, if not, lemme know so i can clarify
Jason