473,748 Members | 7,377 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 2313
First time you hit your application your application is compiled and
Application_Ini t runs..
So depends on how big it is and how time consuming your Application_Ini t 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*****@discus sions.microsoft .comwrote in message
news:81******** *************** ***********@mic rosoft.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_Ini t runs..
So depends on how big it is and how time consuming your Application_Ini t 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*****@discus sions.microsoft .comwrote in message
news:81******** *************** ***********@mic rosoft.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
3455
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 a Cisco 678 router using NAT and static port maps. Two switches between webserver and Cisco. Problem: Accessing PHP driven site via any computer except the web server is about 20 times slower. I can get fast response on the server
12
2643
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 and has been in place for several years without any performance problems. Recently I added a couple of fields to the output of the view, and it became very slow when scrolling. When just opened in the database window, the linked view takes about...
0
1495
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 SQL Server. The final is the production box that only has IIS. I develop on my own machine, copy to the first testing server, the code is tested, copy the code from testing 1 to testing 2, the code is tested again, and then copy testing 2 code...
0
1381
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, ASP.NET 2.0 application. A login page, and a main page, that is a frame with a header page, and the main page. On the main page, there are two datagrids that pull data from a database. The problem is that on one of the grids, the amount of rows...
3
2198
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 talking about but I just wanted to confirm with people. TIA - J.
3
1246
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 based, for example: First Load at Time 0s: (10 seconds to load page) Second Load at Time 11s (<1s to load page) Third Load at Time 13s (<1s to load page) Fourth Load at Time 15s (<1s to load page) First Load at Time 17s: (10 seconds to load...
4
13857
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 machine. They also run fine on a remote server. On the new machine, the ASP pages are running extremely slow and timing out with the error "cannot display the web page." I've verified that I'm making connections to my Access database (which is...
4
6609
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 components on each tab are very light (mostly labels and input fields) and my C# code (the actual program logic) is well optimized. I also use multi threading to separate the UI from the core of the app. The rendering of the each tab page when I click...
39
2874
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 Wikipedia (Mediawiki), written in PHP, are so much faster than Python. Okay, they probably use caching or some code compilation -- but Google Apps and those Zope sites probably also use caching. I've yet to see a web application written in...
0
8989
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8828
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
9537
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
9367
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
9319
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8241
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6795
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
4869
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
3
2213
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.