Performance hit on ASP.NET

J

Jeremy

I'm seeing a huge performance decrease in my ASP.NET
pages when executing on a production machine verses my
local machine. It isn't the bandwidth, and it isn't the
code itself. For some reason the compilation, or caching
or something is destroying the response times. While it
executes perfectly locally (XP & IIS 5) it executes
periodically at about 45 seconds or more per page on the
production machine (2000 Server & IIS 5). Any ideas?
 
T

Todd Thompson

I would suggest editing the web.config file <trace> tag and enable it and
enable the pageOutput attribute. You can then create a trace context and
output to it.

protected System.Web.TraceContext con = null;

protected void PageLoad()
{
con = this.Page.Trace;
con.Write("PageLoad", "_Begin something");
// doing something
con.Write("PageLoad","_End something");
}

It provided me some very valuable timing information that helped me isolate
the source of a slowness I was experiencing, namely using the
identity.IsInRole(group) function.

HTH,

Todd Thompson
 
J

Jeremy

I have timers set on each section of the code, including
the constructor, the pageLoad and the executions... they
all execute in effectively zero time, somewhere IIS is
simply locking up for up to a minute at a time, probably
prior to ever executing the page.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,769
Messages
2,569,582
Members
45,057
Latest member
KetoBeezACVGummies

Latest Threads

Top