473,395 Members | 1,496 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

App load times slow on first start up

SAL
I have an ASP.NET 2.0 app that takes about 17 seconds to load on first
startup but then is very fast after that. As I understand it from some posts
in June, this is caused by the loading of the App Domain.
We have both Cold Fusion and ASP.NET apps on this server and the Cold Fusion
apps do not display such slowness on their first start up of the day. Is
there a way to improve the load times of ASP.NET apps?
I'm having to justify to my boss about why this is occuring.

SAL
Oct 29 '07 #1
9 13021
Have you given any thought to *pre-compiling* the app ?
When you pre-compile, there's no first-load delay.


Juan T. Llibre, asp.net MVP
asp.net faq : http://asp.net.do/faq/
foros de asp.net, en español : http://asp.net.do/foros/
======================================
"SAL" <SA*@nospam.nospamwrote in message news:%2****************@TK2MSFTNGP06.phx.gbl...
>I have an ASP.NET 2.0 app that takes about 17 seconds to load on first startup but then is very fast after that. As I
understand it from some posts in June, this is caused by the loading of the App Domain.
We have both Cold Fusion and ASP.NET apps on this server and the Cold Fusion apps do not display such slowness on
their first start up of the day. Is there a way to improve the load times of ASP.NET apps?
I'm having to justify to my boss about why this is occuring.

SAL

Oct 29 '07 #2
On Oct 29, 12:38 pm, "SAL" <S...@nospam.nospamwrote:
I have an ASP.NET 2.0 app that takes about 17 seconds to load on first
startup but then is very fast after that. As I understand it from some posts
in June, this is caused by the loading of the App Domain.
We have both Cold Fusion and ASP.NET apps on this server and the Cold Fusion
apps do not display such slowness on their first start up of the day. Is
there a way to improve the load times of ASP.NET apps?
I'm having to justify to my boss about why this is occuring.
The project is compiling the first time it's hit on your production
server.

Cold Fusion isn't compiled code.

Oct 29 '07 #3
SAL
Cold Fusion is, as I understand it, java byte code?

I compiled the app on the server and it got a little faster but it's still
pretty slow comparitively speaking. After the compile it went from 17
seconds to 9 seconds to load.

So, anytime the app site idle for a while, it's the slow startup times.
Anybody else got any ideas?
"Larry Bud" <la**********@yahoo.comwrote in message
news:11**********************@o80g2000hse.googlegr oups.com...
On Oct 29, 12:38 pm, "SAL" <S...@nospam.nospamwrote:
>I have an ASP.NET 2.0 app that takes about 17 seconds to load on first
startup but then is very fast after that. As I understand it from some
posts
in June, this is caused by the loading of the App Domain.
We have both Cold Fusion and ASP.NET apps on this server and the Cold
Fusion
apps do not display such slowness on their first start up of the day. Is
there a way to improve the load times of ASP.NET apps?
I'm having to justify to my boss about why this is occuring.

The project is compiling the first time it's hit on your production
server.

Cold Fusion isn't compiled code.

Oct 29 '07 #4
Hi SAL,

As other members mentioned, for ASP.NET 2.0 web application, you can
perform precompilation on your web app so as to gain performance
improvement as precompiled application do not need additional dynamic page
code generation time. However, there are still startup time for
JIT-compiling .NET code into native code. For your scenario, if there is
no other particular long-run task at initialize time(such as the
application_Start event...), the startup slow should be caused by JIT
compile. How often will you notice this problem? I know that ASP.NET will
shutdown worker process after it hasn't been visited for a while. And you
can configure it to never shutdown through the following means:

** for IIS5 hosted scenario, you need to modify the <processModelelement
in machine.config , see:

#Keeping Your ASP.NET Worker Processes Alive
http://weblogs.asp.net/dmarsh/archiv...2/21/2758.aspx

** for IIS6, since it use application pool for each application virutal
dir, you need to turn off the shutdown setting in application pool setting.
You can find it in the "performance" tab:

"shutdown worker process after being idle for xxxxxx time"

also see "Idle timeout" in below reference:

#Configure Application Pool Performance (IIS 6.0)
http://www.microsoft.com/technet/pro.../Library/IIS/6
d3f37b8-c7ef-4a9c-9b78-eba9412181d8.mspx?mfr=true
Here is also a good aritlce on IIS worker process recycle:

http://blogs.msdn.com/david.wang/arc...p-Shutdown-Ano
malies-on-IIS6.aspx

Hope it also helps some.

Sincerely,

Steven Cheng

Microsoft MSDN Online Support Lead

==================================================

Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/subscripti...ult.aspx#notif
ications.

Note: The MSDN Managed Newsgroup support offering is for non-urgent issues
where an initial response from the community or a Microsoft Support
Engineer within 1 business day is acceptable. Please note that each follow
up response may take approximately 2 business days as the support
professional working with you may need further investigation to reach the
most efficient resolution. The offering is not appropriate for situations
that require urgent, real-time or phone-based interactions or complex
project analysis and dump analysis issues. Issues of this nature are best
handled working with a dedicated Microsoft Support Engineer by contacting
Microsoft Customer Support Services (CSS) at
http://msdn.microsoft.com/subscripti...t/default.aspx.

==================================================
This posting is provided "AS IS" with no warranties, and confers no rights.

--------------------
>From: "SAL" <SA*@nospam.nospam>
References: <#u**************@TK2MSFTNGP06.phx.gbl>
<11**********************@o80g2000hse.googlegroups .com>
>Subject: Re: App load times slow on first start up
Date: Mon, 29 Oct 2007 14:21:50 -0700
Cold Fusion is, as I understand it, java byte code?

I compiled the app on the server and it got a little faster but it's still
pretty slow comparitively speaking. After the compile it went from 17
seconds to 9 seconds to load.

So, anytime the app site idle for a while, it's the slow startup times.
Anybody else got any ideas?
"Larry Bud" <la**********@yahoo.comwrote in message
news:11**********************@o80g2000hse.googleg roups.com...
>On Oct 29, 12:38 pm, "SAL" <S...@nospam.nospamwrote:
>>I have an ASP.NET 2.0 app that takes about 17 seconds to load on first
startup but then is very fast after that. As I understand it from some
posts
in June, this is caused by the loading of the App Domain.
We have both Cold Fusion and ASP.NET apps on this server and the Cold
Fusion
apps do not display such slowness on their first start up of the day. Is
there a way to improve the load times of ASP.NET apps?
I'm having to justify to my boss about why this is occuring.

The project is compiling the first time it's hit on your production
server.

Cold Fusion isn't compiled code.


Oct 30 '07 #5
SAL
Thanks Steven. I found the articles on IIS6 helpful indeed.
So, if I configure the app pool to only recycle around midnight, am I
hurting the server's overall performance for other applications you think?

SAL
"Steven Cheng[MSFT]" <st*****@online.microsoft.comwrote in message
news:6z**************@TK2MSFTNGHUB02.phx.gbl...
Hi SAL,

As other members mentioned, for ASP.NET 2.0 web application, you can
perform precompilation on your web app so as to gain performance
improvement as precompiled application do not need additional dynamic page
code generation time. However, there are still startup time for
JIT-compiling .NET code into native code. For your scenario, if there is
no other particular long-run task at initialize time(such as the
application_Start event...), the startup slow should be caused by JIT
compile. How often will you notice this problem? I know that ASP.NET will
shutdown worker process after it hasn't been visited for a while. And you
can configure it to never shutdown through the following means:

** for IIS5 hosted scenario, you need to modify the <processModelelement
in machine.config , see:

#Keeping Your ASP.NET Worker Processes Alive
http://weblogs.asp.net/dmarsh/archiv...2/21/2758.aspx

** for IIS6, since it use application pool for each application virutal
dir, you need to turn off the shutdown setting in application pool
setting.
You can find it in the "performance" tab:

"shutdown worker process after being idle for xxxxxx time"

also see "Idle timeout" in below reference:

#Configure Application Pool Performance (IIS 6.0)
http://www.microsoft.com/technet/pro.../Library/IIS/6
d3f37b8-c7ef-4a9c-9b78-eba9412181d8.mspx?mfr=true
Here is also a good aritlce on IIS worker process recycle:

http://blogs.msdn.com/david.wang/arc...p-Shutdown-Ano
malies-on-IIS6.aspx

Hope it also helps some.

Sincerely,

Steven Cheng

Microsoft MSDN Online Support Lead

==================================================

Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/subscripti...ult.aspx#notif
ications.

Note: The MSDN Managed Newsgroup support offering is for non-urgent issues
where an initial response from the community or a Microsoft Support
Engineer within 1 business day is acceptable. Please note that each follow
up response may take approximately 2 business days as the support
professional working with you may need further investigation to reach the
most efficient resolution. The offering is not appropriate for situations
that require urgent, real-time or phone-based interactions or complex
project analysis and dump analysis issues. Issues of this nature are best
handled working with a dedicated Microsoft Support Engineer by contacting
Microsoft Customer Support Services (CSS) at
http://msdn.microsoft.com/subscripti...t/default.aspx.

==================================================
This posting is provided "AS IS" with no warranties, and confers no
rights.

--------------------
>>From: "SAL" <SA*@nospam.nospam>
References: <#u**************@TK2MSFTNGP06.phx.gbl>
<11**********************@o80g2000hse.googlegroups .com>
>>Subject: Re: App load times slow on first start up
Date: Mon, 29 Oct 2007 14:21:50 -0700
Cold Fusion is, as I understand it, java byte code?

I compiled the app on the server and it got a little faster but it's still
pretty slow comparitively speaking. After the compile it went from 17
seconds to 9 seconds to load.

So, anytime the app site idle for a while, it's the slow startup times.
Anybody else got any ideas?
"Larry Bud" <la**********@yahoo.comwrote in message
news:11**********************@o80g2000hse.google groups.com...
>>On Oct 29, 12:38 pm, "SAL" <S...@nospam.nospamwrote:
I have an ASP.NET 2.0 app that takes about 17 seconds to load on first
startup but then is very fast after that. As I understand it from some
posts
in June, this is caused by the loading of the App Domain.
We have both Cold Fusion and ASP.NET apps on this server and the Cold
Fusion
apps do not display such slowness on their first start up of the day.
Is
there a way to improve the load times of ASP.NET apps?
I'm having to justify to my boss about why this is occuring.

The project is compiling the first time it's hit on your production
server.

Cold Fusion isn't compiled code.



Oct 30 '07 #6
Hi SAL,

Thanks for your reply.

If midnigiht is a low loading time for your app, I think it should be
reasonable and you can choose anytime the application will run under low
volume. As mentioned in David's aritcle, proactive recycle will help
release some performance pressure of the worker process. If you worry
about hurting other applications running in the same worker process, you
can consider put your application into a dedicated separate application
pool(worker process).

Sincerely,

Steven Cheng

Microsoft MSDN Online Support Lead
This posting is provided "AS IS" with no warranties, and confers no rights.

--------------------
>From: "SAL" <SA*@nospam.nospam>
Subject: Re: App load times slow on first start up
Date: Tue, 30 Oct 2007 08:50:42 -0700
>
Thanks Steven. I found the articles on IIS6 helpful indeed.
So, if I configure the app pool to only recycle around midnight, am I
hurting the server's overall performance for other applications you think?
>

Oct 31 '07 #7
I had the same problem. The reason is that the application domain times out every 20 mins if there is no activity, the first request after the timeout can force a recompile and reload of cache. Changing some settings in the machine.config file will solve the problem; unfortunately for me my hosting provider would not allow me to make this change. I found this utility to be useful.

http://www.spikesolutions.net/ViewSo...2-05f6eded3b82

Essentially it "Pings" my home page every few mins so the application domain does not time out. The utility can also be configured to ping more than one page so that auxiliary pages are fast too.
EggHeadCafe - .NET Developer Portal of Choice
http://www.eggheadcafe.com
Nov 13 '07 #8
On Oct 29, 10:38 am, "SAL" <S...@nospam.nospamwrote:
I have anASP.NET2.0 app that takes about 17 seconds to load on first
startup but then is very fast after that. As I understand it from some posts
in June, this is caused by the loading of the App Domain.
We have both Cold Fusion andASP.NETapps on this server and the Cold Fusion
apps do not display such slowness on their first start up of the day. Is
there a way to improve the load times ofASP.NETapps?
I'm having to justify to my boss about why this is occuring.

SAL
I had the same problem. The reason is that the application domain
times out every 20 mins if there is no activity, the first request
after the timeout can force a recompile and reload of cache. Changing
some settings in the machine.config file will solve the problem;
unfortunately for me my hosting provider would not allow me to make
this change. I found this utility to be useful.

http://www.spikesolutions.net/ViewSo...2-05f6eded3b82

Essentially it "Pings" my home page every few mins so the application
domain does not time out. The utility can also be configured to ping
more than one page so that auxiliary pages are fast too.

Nov 14 '07 #9
On 29 Oct, 22:39, stch...@online.microsoft.com (Steven Cheng[MSFT])
wrote:
Hi SAL,

As other members mentioned, for ASP.NET 2.0 web application, you can
perform precompilation on your web app so as to gain performance
improvement as precompiled application do not need additional dynamic page
code generation time. However, there are still startup time for
JIT-compiling .NET code into native code. For your scenario, if there is
no other particular long-run task at initialize time(such as the
application_Start event...), the startup slow should be caused by JIT
compile. How often will you notice this problem? I know that ASP.NET will
shutdown worker process after it hasn't been visited for a while. And you
can configure it to never shutdown through the following means:

** for IIS5 hosted scenario, you need to modify the <processModelelement
in machine.config , see:

#Keeping Your ASP.NET Worker Processes Alivehttp://weblogs.asp.net/dmarsh/archive/2003/02/21/2758.aspx

** for IIS6, since it use application pool for each application virutal
dir, you need to turn off the shutdown setting in application pool setting.
You can find it in the "performance" tab:

"shutdown worker process after being idle for xxxxxx time"

also see "Idle timeout" in below reference:

#Configure Application Pool Performance (IIS 6.0)http://www.microsoft.com/technet/pro...ver2003/Librar...
d3f37b8-c7ef-4a9c-9b78-eba9412181d8.mspx?mfr=true

Here is also a good aritlce on IIS worker process recycle:

http://blogs.msdn.com/david.wang/arc...-Startup-Shutd...
malies-on-IIS6.aspx

Hope it also helps some.

Sincerely,

Steven Cheng

Microsoft MSDN Online Support Lead

==================================================

Get notification to my posts through email? Please refer tohttp://msdn.microsoft.com/subscriptions/managednewsgroups/default.asp...
ications.

Note: The MSDN Managed Newsgroup support offering is for non-urgent issues
where an initial response from the community or a Microsoft Support
Engineer within 1 business day is acceptable. Please note that each follow
up response may take approximately 2 business days as the support
professional working with you may need further investigation to reach the
most efficient resolution. The offering is not appropriate for situations
that require urgent, real-time or phone-based interactions or complex
project analysis and dump analysis issues. Issues of this nature are best
handled working with a dedicated Microsoft Support Engineer by contacting
Microsoft Customer Support Services (CSS) athttp://msdn.microsoft.com/subscriptions/support/default.aspx.

==================================================

This posting is provided "AS IS" with no warranties, and confers no rights.

-------------------->From: "SAL" <S...@nospam.nospam>
References: <#utcookGIHA.4...@TK2MSFTNGP06.phx.gbl>

<1193681633.865374.199...@o80g2000hse.googlegroups .com>>Subject: Re: App load times slow on first start up
Date: Mon, 29 Oct 2007 14:21:50 -0700
Cold Fusion is, as I understand it, java byte code?
I compiled the app on the server and it got a little faster but it's still
pretty slow comparitively speaking. After the compile it went from 17
seconds to 9 seconds to load.
So, anytime the app site idle for a while, it's the slow startup times.
Anybody else got any ideas?
"Larry Bud" <larrybud2...@yahoo.comwrote in message
news:11**********************@o80g2000hse.googlegr oups.com...
On Oct 29, 12:38 pm, "SAL" <S...@nospam.nospamwrote:
I have an ASP.NET 2.0 app that takes about 17 seconds to load on first
startup but then is very fast after that. As I understand it from some
posts
in June, this is caused by the loading of the App Domain.
We have both Cold Fusion and ASP.NET apps on this server and the Cold
Fusion
apps do not display such slowness on their first start up of the day. Is
there a way to improve the load times of ASP.NET apps?
I'm having to justify to my boss about why this is occuring.
The project is compiling the first time it's hit on your production
server.
Cold Fusion isn't compiled code.
I had the same problem. The reason is that the application domain
times out every 20 mins if there is no activity, the first request
after the timeout can force a recompile and reload of cache. Changing
some settings in the machine.config file will solve the problem;
unfortunately for me my hosting provider would not allow me to make
this change. I found this utility to be useful.

http://www.spikesolutions.net/ViewSo...2-05f6eded3b82

Essentially it "Pings" my home page every few mins so the application
domain does not time out. The utility can also be configured to ping
more than one page so that auxiliary pages are fast too.

Dec 18 '07 #10

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

22
by: Rudy Ray Moore | last post by:
Why is "Visual Studio .net 2003 7.1 c++" so much slower than VS6 at linking? It looks like "Visual Studio .net 2003 7.1 c++" doesn't even do incremental linking! I make one very minor change in...
14
by: Steve McLellan | last post by:
Hi, Sorry to repost, but this is becoming aggravating, and causing me a lot of wasted time. I've got a reasonably large mixed C++ project, and after a number of builds (but not a constant...
2
by: Shige | last post by:
I have a .Net website hosted on another IIS6.0. Whenever I tried to access my website after a long time, it will take forever to load, my browser will just show a blank white page and the progress...
6
by: B B | last post by:
Okay, here is what's happening: I have a reasonably fast laptop (1.4 GHz Mobile M, so comparable to 2.5GHz P4) doing .net development. Running Windows XP pro, SP2 IIS is installed and running...
4
by: Ravi Ambros Wallau | last post by:
Hi: We developed a set of ASP.NET Web Applications that never runs in stand-alone mode, but always inside a portal (Rainbow Portal). All modules are copied on that portal. My question is: load...
1
by: danrostron | last post by:
Hi I apologise if this question has been asked many times but I have not found any sufficient answers anywhere. I have a asp.net website which is a fairly small site (5 pages) which doesn't...
0
by: lissbpp | last post by:
Hello, Working in .Net 2.0 using NGen to speed up both my warm and cold startup load times. NGen works beautifully for my application; however, it seams that the native image cache is not...
11
by: frizzle | last post by:
Hi there, I need a function to prevent a page from being loaded too often too fast. So say, one is only allowed to refresh a single page 5 times in 10 seconds, or 10 times in 5 seconds (or...
13
by: rdudejr | last post by:
Hi all, I hardly ever make a post unless I am having a very purplexing issue, so this one should be good... I am trying to do a load against a database on an AIX server into a DB2 v9.1...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.