473,385 Members | 1,356 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,385 software developers and data experts.

Slow Rendering Page on First Access

I have a page that take 10-15 seconds to load up the first time you access
it. Once the page loads, it runs super quick, but that initial hit (like
after an hour if no one has hit the page) takes a long time to come up.

Just to rule out databases, and any other external thing I could think of, I
tried creating a website that had nothing but one page. On that page, I put a
label that displayed the time when accessed. This page did exactly the same
thing as above.

Anyone got any suggestions on what I can try?
Mar 6 '08 #1
2 2294
First time you hit your application your application is compiled and
Application_Init runs..
So depends on how big it is and how time consuming your Application_Init is
the delay is expected.

Also after some period of inactivity your application is unloaded. Hence if
will be recompiled and Init run again next time you hit it.
To speed things up you can do following....

1. Precompiled it. (if you using .NET 2.0) Google it up how to do it.
2. Disable unloading.... You need to have access to IIS management console
and go into the Pools under "IIS" tree.. There will be an option there...
George.

"Wannabe" <Wa*****@discussions.microsoft.comwrote in message
news:81**********************************@microsof t.com...
>I have a page that take 10-15 seconds to load up the first time you access
it. Once the page loads, it runs super quick, but that initial hit (like
after an hour if no one has hit the page) takes a long time to come up.

Just to rule out databases, and any other external thing I could think of,
I
tried creating a website that had nothing but one page. On that page, I
put a
label that displayed the time when accessed. This page did exactly the
same
thing as above.

Anyone got any suggestions on what I can try?


Mar 6 '08 #2
Thanks for the advice, but I have one question...

We have another server that our web apps do not do this, or it is not
noticeable, and we have never precompiled or stopped our apps from unloading.
Is there something else, or would you say that the servers are configured
separately. They are both the same model, speed, memory, etc.

Thanks

"George Ter-Saakov" wrote:
First time you hit your application your application is compiled and
Application_Init runs..
So depends on how big it is and how time consuming your Application_Init is
the delay is expected.

Also after some period of inactivity your application is unloaded. Hence if
will be recompiled and Init run again next time you hit it.
To speed things up you can do following....

1. Precompiled it. (if you using .NET 2.0) Google it up how to do it.
2. Disable unloading.... You need to have access to IIS management console
and go into the Pools under "IIS" tree.. There will be an option there...
George.

"Wannabe" <Wa*****@discussions.microsoft.comwrote in message
news:81**********************************@microsof t.com...
I have a page that take 10-15 seconds to load up the first time you access
it. Once the page loads, it runs super quick, but that initial hit (like
after an hour if no one has hit the page) takes a long time to come up.

Just to rule out databases, and any other external thing I could think of,
I
tried creating a website that had nothing but one page. On that page, I
put a
label that displayed the time when accessed. This page did exactly the
same
thing as above.

Anyone got any suggestions on what I can try?


Mar 6 '08 #3

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

Similar topics

9
by: j askey | last post by:
I have a strange bandwidth issue that I have finally tracked down to something fairly specific if anyone has any ideas... Setup: Win2003 Server, PHP 4.3.4, IIS6.0, ISAPI Network: DSL line with...
12
by: Neil | last post by:
I previously posted re. this, but thought I'd try again with a summary of facts. I have an Access 2000 MDB with a SQL Server 7 back end. There is a view that is linked to the database via ODBC...
0
by: Brian Russell | last post by:
We have three servers (beyond my development box) in our organization. The first is a testing server that has IIS and SQL Server on it. The second is another testing server that also has IIS and...
0
by: Jeff Morgan | last post by:
I have an application that runs on ASP.NET. We have been working through performance testing and it appears that at about 40-50 users, I start to get CPU bound. The application is a three form,...
3
by: UJ | last post by:
I had somebody (who was an idiot) tell me that tables are slow in rendering? That you shouldn't do things like tables inside of tables. Is that true? I think she didn't know what she was...
3
by: JosephByrns | last post by:
I have an asp.net application, on first load the page is slow to load. The next time I go to the page it is fast, then fast again then back to slow. The number of times it is slow seems to be time...
4
by: bluepete | last post by:
I have migrated to Vista Business and installed IIS 7.0. I moved some classic ASP pages from my old XP box running IIS to the new box. I've made no changes to the code, which worked fine on the old...
4
by: rubyhcurry | last post by:
Hello, I have a small application which acts like a wizard with 5 steps. I use a tab control, and 'back' and 'next' buttons to switch between the 5 tabs (1 tab page for each step). The...
39
by: cm_gui | last post by:
Python is slow. Almost all of the web applications written in Python are slow. Zope/Plone is slow, sloow, so very slooow. Even Google Apps is not faster. Neither is Youtube. Facebook and...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
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: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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?

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.