I'm using IIS 7.5 on Windows 2008 R2 64 bits and the first time a invoke my asp.net application the server delay to response. The initial page of application dont access any database. The other accesses the server response normally.
What can I
do toimprove the timethe first request?
As Martin said, FRT tracings could tell where the long time is taken. Also you may want to warm-up your application if the long time is definitely needed for the first request. Please take reference to the following article to see the details for warm-up
settings:
<div id="gt-src-c" class="g-unit"><div id="gt-src-p"><div id="gt-src-wrap"><div id="gt-src-tools"><div id="gt-src-tools-l"><div style="zoom: 1;" dir="ltr">I
discoveredthat if thepool identityis set toApplicationPoolIdentityaccessis slow.
If the identityis set toNetworkServiceaccessbe normal
and fast.Why is this?What is the differencebetween the two mode?</div></div></div></div></div></div>
I enabled FRT on the server. It is configured to capture status code 400-999 and elapsed time 2 seconds.
The server generated a xml file but I dont know how to interpret a file and then
find out ifthere are any errors.How can I identifythe parts thatfailed andled to
the delay?
I change to capture errors 200-900 and request delay more than 2 seconds. Apparently I get 200 error code status but I still don't know how to analyse the xml file to found error.
wender.macha...
6 Posts
IIS 7.5 slow to response first time a ASP.NET application
Jan 23, 2012 04:00 PM|LINK
I'm using IIS 7.5 on Windows 2008 R2 64 bits and the first time a invoke my asp.net application the server delay to response. The initial page of application dont access any database. The other accesses the server response normally. What can I do to improve the time the first request?
Someone has been there and can help me?
Thank you!
HCamper
8048 Posts
Re: IIS 7.5 slow to response first time a ASP.NET application
Jan 23, 2012 05:41 PM|LINK
Hello,
How to improve the time the first request. Start Trouble shooting and fix the problems.
You have problems then your can do performace testins.
http://learn.iis.net/page.aspx/113/getting-started-with-iis-manager/ Enable FRT. Look at IIS Server logs.
The first time ASP.NET Application in IIS Server is accessed ?
The initial page of application. Does not access any database. ?
The other accesses the server response normally. ?
Your using IIS 7.5 on Windows 2008 R2 64 and is there a SQL Server and Database ?
http://learn.iis.net/page.aspx/624/application-pool-identities/ Application Pools.
http://learn.iis.net/page.aspx/245/how-to-capture-aspnet-page-trace-events-in-iis-tracing/ FRT
HTH
Martin
Community Member Award 2011
HCamper
8048 Posts
Re: IIS 7.5 slow to response first time a ASP.NET application
Jan 23, 2012 06:29 PM|LINK
Hello,
The Topic "IIS 7.5 slow to response first time a ASP.NET application:" WCF Service Application ?
Need more information: The first time you invoke the ASP.NET Application is this WCF and a service ?
"The Server response is normal" -" You do not access any database"- "The IIS Server is slow to respond".
Update the information,
Regards,
Martin
Community Member Award 2011
Lloydz
2335 Posts
Microsoft
Re: IIS 7.5 slow to response first time a ASP.NET application
Jan 25, 2012 02:00 AM|LINK
Hi,
As Martin said, FRT tracings could tell where the long time is taken. Also you may want to warm-up your application if the long time is definitely needed for the first request. Please take reference to the following article to see the details for warm-up settings:
ASP.NET 4.0: How to use application warm-up class
http://weblogs.asp.net/gunnarpeipman/archive/2010/01/31/asp-net-4-0-how-to-use-application-warm-up-class.aspx
Hope this helps, thanks.
wender.macha...
6 Posts
Re: IIS 7.5 slow to response first time a ASP.NET application
Jan 25, 2012 09:49 AM|LINK
HCamper
8048 Posts
Re: IIS 7.5 slow to response first time a ASP.NET application
Jan 25, 2012 06:35 PM|LINK
Hi,
ASP.NET Integraton http://learn.iis.net/page.aspx/243/aspnet-integration-with-iis/ IIS Server
Start Testing Wcat http://www.iis.net/community/default.aspx?tabid=34&g=6&i=1467 install
configure and starting testing.
Regards,
Martin
Community Member Award 2011
HCamper
8048 Posts
Re: IIS 7.5 slow to response first time a ASP.NET application
Jan 29, 2012 08:57 AM|LINK
Hello,
You have discovered the pool is part the of the access delays " Have you configured FRT ?
"The IIS 7.5 Server and ASP.NET application using WCF code or accessing a service ?
Need more information about this topic,
Regards,
Martin
Community Member Award 2011
wender.macha...
6 Posts
Re: IIS 7.5 slow to response first time a ASP.NET application
Jan 30, 2012 10:43 AM|LINK
Martin,
I enabled FRT on the server. It is configured to capture status code 400-999 and elapsed time 2 seconds.
The server generated a xml file but I dont know how to interpret a file and then find out if there are any errors. How can I identify the parts that failed and led to the delay?
Thank you
HCamper
8048 Posts
Re: IIS 7.5 slow to response first time a ASP.NET application
Jan 30, 2012 01:04 PM|LINK
Hi wender,
The FRT is running on the IIS Server. You can capture status code 400-999 the time is 2 seconds.
The server is creating the XML files and the Display is hard to read and understand and find the errors.
"How to enable details of 500 errors on client" Forum post http://forums.iis.net/p/1183344/2003608.aspx#2003608.
You may find the errors are easier to find http://learn.iis.net/page.aspx/267/how-to-use-http-detailed-errors-in-iis/ more details
about the errors.
If it does not work let me know.
Regards,
Martin
Community Member Award 2011
wender.macha...
6 Posts
Re: IIS 7.5 slow to response first time a ASP.NET application
Jan 31, 2012 10:40 AM|LINK
Martin,
I change to capture errors 200-900 and request delay more than 2 seconds. Apparently I get 200 error code status but I still don't know how to analyse the xml file to found error.
Thank you.