473,406 Members | 2,387 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,406 software developers and data experts.

Any way to make pages faster?

Is there any way to make my aspx pages appear faster on the first hit? When
browse to a page I have on my local server, I watch the server's hard drive
light chug away for a good 20-30 seconds before anything appears in my
browser. I would be surprised if I'm not having some would-be web site
visitor move on thinking the site is dead.

Once the first hit has activated the site, it all responds fairly
quickly...that is until the next time the site has been idle for a while...

Nov 19 '05 #1
6 1073
The delay is caused by the Application starting. The Application will time
out after a period of time (I believe 20 minutes by default) with no
requests. You can configure the timeout for the Application, and this will
be less harmful in terms of freeing up memory resources than, for example,
configuring your Sessions to time out. However, be aware that once your site
starts getting any traffic, this problem is very unlikely to occur.

--
HTH,

Kevin Spencer
Microsoft MVP
..Net Developer
Everybody picks their nose,
But some people are better at hiding it.

"Terry Olsen" <to******@hotmail.com> wrote in message
news:eB*************@TK2MSFTNGP09.phx.gbl...
Is there any way to make my aspx pages appear faster on the first hit?
When browse to a page I have on my local server, I watch the server's hard
drive light chug away for a good 20-30 seconds before anything appears in
my browser. I would be surprised if I'm not having some would-be web site
visitor move on thinking the site is dead.

Once the first hit has activated the site, it all responds fairly
quickly...that is until the next time the site has been idle for a
while...

Nov 19 '05 #2
Maybe ngen [1] huh? There's many articles that can be found discussing what
has been learned about maximizing ASP.NET performance.

<%= Clinton Gallagher
METROmilwaukee (sm) "A Regional Information Service"
NET csgallagher AT metromilwaukee.com
URL http://metromilwaukee.com/
URL http://clintongallagher.metromilwaukee.com/

[1]
http://msdn.microsoft.com/library/de...torngenexe.asp


"Terry Olsen" <to******@hotmail.com> wrote in message
news:eB*************@TK2MSFTNGP09.phx.gbl...
Is there any way to make my aspx pages appear faster on the first hit?
When browse to a page I have on my local server, I watch the server's hard
drive light chug away for a good 20-30 seconds before anything appears in
my browser. I would be surprised if I'm not having some would-be web site
visitor move on thinking the site is dead.

Once the first hit has activated the site, it all responds fairly
quickly...that is until the next time the site has been idle for a
while...

Nov 19 '05 #3
ngen is a red herring -- Kevin was correct in that the majority of time is
the application starting (not the page compilation).

-Brock
DevelopMentor
http://staff.develop.com/ballen
Maybe ngen [1] huh? There's many articles that can be found discussing
what has been learned about maximizing ASP.NET performance.

<%= Clinton Gallagher
METROmilwaukee (sm) "A Regional Information Service"
NET csgallagher AT metromilwaukee.com
URL http://metromilwaukee.com/
URL http://clintongallagher.metromilwaukee.com/
[1]
http://msdn.microsoft.com/library/de...ry/en-us/cptoo
ls/html/cpgrfnativeimagegeneratorngenexe.asp

"Terry Olsen" <to******@hotmail.com> wrote in message
news:eB*************@TK2MSFTNGP09.phx.gbl...
Is there any way to make my aspx pages appear faster on the first
hit? When browse to a page I have on my local server, I watch the
server's hard drive light chug away for a good 20-30 seconds before
anything appears in my browser. I would be surprised if I'm not
having some would-be web site visitor move on thinking the site is
dead.

Once the first hit has activated the site, it all responds fairly
quickly...that is until the next time the site has been idle for a
while...


Nov 19 '05 #4
I haven't implemented any particular methodology yet myself but I have seen
many articles and proposed solutions such as a control that pinged the
server to keep the application state refreshed. What aspect of ngen has
proven fallible? What solution(s) have you found meritorious?

<%= Clinton Gallagher

"Brock Allen" <ba****@NOSPAMdevelop.com> wrote in message
news:10***********************@msnews.microsoft.co m...
ngen is a red herring -- Kevin was correct in that the majority of time is
the application starting (not the page compilation).

-Brock
DevelopMentor
http://staff.develop.com/ballen
Maybe ngen [1] huh? There's many articles that can be found discussing
what has been learned about maximizing ASP.NET performance.

<%= Clinton Gallagher
METROmilwaukee (sm) "A Regional Information Service"
NET csgallagher AT metromilwaukee.com
URL http://metromilwaukee.com/
URL http://clintongallagher.metromilwaukee.com/
[1]
http://msdn.microsoft.com/library/de...ry/en-us/cptoo
ls/html/cpgrfnativeimagegeneratorngenexe.asp

"Terry Olsen" <to******@hotmail.com> wrote in message
news:eB*************@TK2MSFTNGP09.phx.gbl...
Is there any way to make my aspx pages appear faster on the first
hit? When browse to a page I have on my local server, I watch the
server's hard drive light chug away for a good 20-30 seconds before
anything appears in my browser. I would be surprised if I'm not
having some would-be web site visitor move on thinking the site is
dead.

Once the first hit has activated the site, it all responds fairly
quickly...that is until the next time the site has been idle for a
while...


Nov 19 '05 #5
Well, like I said, the slow response upon the first request is just part
of how ASP.NET works. I see it as the cost of doing business. The JIting
is a small part of that, but only happens once ever (assuming the pages don't
change) whereas the cost of starting the AppDomain ocurrs every time the
app starts.

As far as ngen, the downsides, IMO, outweigh the upsides. It's an extra step
to perform. Once an assembly is ngen'd, the code is very brittle -- if any
assembly in the dependency tree is changed, then the entire ngen tree is
invalidated and the JITter kicks back in as normal ignoring the ngen'd assemblies.
This makes updating a single assembly more difficult. Also, when using ngen,
you now have two images of your assembly loaded -- the NGen'd one (with the
x86) but you also need to load the original one, since that's where all the
metadata is. Lastly, with the x86 code you're guarenteed the entire things
is loaded, whereas with JITing only the code you call is actually JIT'd.

NGEN was originally intended to avoid the lag one *might* see with windows
forms apps starting due to the JITing. Too often people assumed it was JITing
that was causing their app to be slow -- they would often overlook the numerous
DB round trips as a possible performance problem. ;)

NGEN in 2.0 does get better, but I'm still not convinced it's worth it for
for server based apps like ASP.NET.

-Brock
DevelopMentor
http://staff.develop.com/ballen
I haven't implemented any particular methodology yet myself but I have
seen many articles and proposed solutions such as a control that
pinged the server to keep the application state refreshed. What aspect
of ngen has proven fallible? What solution(s) have you found
meritorious?

<%= Clinton Gallagher

"Brock Allen" <ba****@NOSPAMdevelop.com> wrote in message
news:10***********************@msnews.microsoft.co m...
ngen is a red herring -- Kevin was correct in that the majority of
time is the application starting (not the page compilation).

-Brock
DevelopMentor
http://staff.develop.com/ballen
Maybe ngen [1] huh? There's many articles that can be found
discussing what has been learned about maximizing ASP.NET
performance.

<%= Clinton Gallagher
METROmilwaukee (sm) "A Regional Information Service"
NET csgallagher AT metromilwaukee.com
URL http://metromilwaukee.com/
URL http://clintongallagher.metromilwaukee.com/
[1]
http://msdn.microsoft.com/library/de...rary/en-us/cpt
oo
ls/html/cpgrfnativeimagegeneratorngenexe.asp
"Terry Olsen" <to******@hotmail.com> wrote in message
news:eB*************@TK2MSFTNGP09.phx.gbl...

Is there any way to make my aspx pages appear faster on the first
hit? When browse to a page I have on my local server, I watch the
server's hard drive light chug away for a good 20-30 seconds before
anything appears in my browser. I would be surprised if I'm not
having some would-be web site visitor move on thinking the site is
dead.

Once the first hit has activated the site, it all responds fairly
quickly...that is until the next time the site has been idle for a
while...


Nov 19 '05 #6
I see. Brittle is not good unless it has peanut butter in it :-)

<%= Clinton Gallagher

"Brock Allen" <ba****@NOSPAMdevelop.com> wrote in message
news:10***********************@msnews.microsoft.co m...
Well, like I said, the slow response upon the first request is just part
of how ASP.NET works. I see it as the cost of doing business. The JIting
is a small part of that, but only happens once ever (assuming the pages
don't change) whereas the cost of starting the AppDomain ocurrs every time
the app starts.

As far as ngen, the downsides, IMO, outweigh the upsides. It's an extra
step to perform. Once an assembly is ngen'd, the code is very brittle --
if any assembly in the dependency tree is changed, then the entire ngen
tree is invalidated and the JITter kicks back in as normal ignoring the
ngen'd assemblies. This makes updating a single assembly more difficult.
Also, when using ngen, you now have two images of your assembly loaded --
the NGen'd one (with the x86) but you also need to load the original one,
since that's where all the metadata is. Lastly, with the x86 code you're
guarenteed the entire things is loaded, whereas with JITing only the code
you call is actually JIT'd.
NGEN was originally intended to avoid the lag one *might* see with windows
forms apps starting due to the JITing. Too often people assumed it was
JITing that was causing their app to be slow -- they would often overlook
the numerous DB round trips as a possible performance problem. ;)

NGEN in 2.0 does get better, but I'm still not convinced it's worth it for
for server based apps like ASP.NET.

-Brock
DevelopMentor
http://staff.develop.com/ballen
I haven't implemented any particular methodology yet myself but I have
seen many articles and proposed solutions such as a control that
pinged the server to keep the application state refreshed. What aspect
of ngen has proven fallible? What solution(s) have you found
meritorious?

<%= Clinton Gallagher

"Brock Allen" <ba****@NOSPAMdevelop.com> wrote in message
news:10***********************@msnews.microsoft.co m...
ngen is a red herring -- Kevin was correct in that the majority of
time is the application starting (not the page compilation).

-Brock
DevelopMentor
http://staff.develop.com/ballen
Maybe ngen [1] huh? There's many articles that can be found
discussing what has been learned about maximizing ASP.NET
performance.

<%= Clinton Gallagher
METROmilwaukee (sm) "A Regional Information Service"
NET csgallagher AT metromilwaukee.com
URL http://metromilwaukee.com/
URL http://clintongallagher.metromilwaukee.com/
[1]
http://msdn.microsoft.com/library/de...rary/en-us/cpt
oo
ls/html/cpgrfnativeimagegeneratorngenexe.asp
"Terry Olsen" <to******@hotmail.com> wrote in message
news:eB*************@TK2MSFTNGP09.phx.gbl...

> Is there any way to make my aspx pages appear faster on the first
> hit? When browse to a page I have on my local server, I watch the
> server's hard drive light chug away for a good 20-30 seconds before
> anything appears in my browser. I would be surprised if I'm not
> having some would-be web site visitor move on thinking the site is
> dead.
>
> Once the first hit has activated the site, it all responds fairly
> quickly...that is until the next time the site has been idle for a
> while...
>


Nov 19 '05 #7

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

Similar topics

2
by: Creat ASP Page Automatic | last post by:
Hi; I want to ask you something very important for me .. how can i Create daynamic pages or static pages Automatic .??????????!!! i have a problem with my website i want Create page asp...
0
by: Nick | last post by:
Hi all, I'm about to embark on a new project and can't decide quite how to do it. In summary, I have a database whose data I want to use to create html pages for a website. The website will just...
1
by: Tim | last post by:
Hi, We are downloading a few thousand rows of data for users to choose from and need to speed up the operation. The data is related in four levels. The current design allows the user to select...
1
by: M Stery | last post by:
As a general rule, is using a stored Access query as the source for an asp page faster than making the asp page query the table directly? I'm looking to improve the performance of some asp pages...
6
by: Beat | last post by:
Is it possible to reference the same codebehind from 2 different pages? It would be an elegant solution, where we do need different settings at the PAGE-Level for 2 user-Groups but the rest of...
21
by: matvdl | last post by:
I have a system that was originally developed in asp - the pages are saved in SQL (there are over 10,000 pages) and saved to a temp directory in the server when requested by a client. I have...
5
by: shapper | last post by:
Hello, In this moment I am creating all my aspx pages on my vb.code at runtime. It seems nonsense to have .aspx and .aspx.vb files in my projects. I am considering creating my pages on the...
5
by: Charles | last post by:
Hello, I have a common company web site with the home page, products, services, about us and contact pages. I'd like to preload the 4 other pages in the background when I access a page to make...
4
TheServant
by: TheServant | last post by:
Hi all, Long time no see, but getting back into it! Anyway, I have started writing a simple CMS for some of my websites which will allow my clients to manage pages and content themselves. I have...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
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...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

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.