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

First time access to website is slow - Solutions?

As I understand it, (by design?) the first person to visit a ASP.NET website
has to wait a little longer because the site is being compiled. Subsequent
visitors (if they visit soon) will find the site to load faster. After like
30 minutes this happens again. Where can I change this setting (that caches
the compiled website)? If my hosting company won't change it are there
other solutions to keep the site alive/active regularly (even a service that
"visits" every 25 min or something)?

Thanks for your insight!

Nov 13 '07 #1
4 2118
On 13 Nov, 20:11, "Cirene" <t...@test.comwrote:
As I understand it, (by design?) the first person to visit a ASP.NET website
has to wait a little longer because the site is being compiled. Subsequent
visitors (if they visit soon) will find the site to load faster. After like
30 minutes this happens again. Where can I change this setting (that caches
the compiled website)? If my hosting company won't change it are there
other solutions to keep the site alive/active regularly (even a service that
"visits" every 25 min or something)?

Thanks for your insight!
Maybe you should try the aspnet compiler before you deploy to your
host.

check it out here: http://msdn2.microsoft.com/en-us/lib...63(VS.80).aspx

Nov 13 '07 #2
But it's already compiled. I use Visual Studio.net 2005. (Sorry if I
didn't explain that well.)

My hosting company support stated "Please be sure that the compiled cached
on server is a behavior of Microsoft ASP.NET, we can not change this kind of
cache. The only thing we can do is keep the compiled application loaded on
the cache, therefore a scheduled task can be help to keep the cache stay.
Thank you."

Make sense?

<de**********@googlemail.comwrote in message
news:11**********************@o80g2000hse.googlegr oups.com...
On 13 Nov, 20:11, "Cirene" <t...@test.comwrote:
>As I understand it, (by design?) the first person to visit a ASP.NET
website
has to wait a little longer because the site is being compiled.
Subsequent
visitors (if they visit soon) will find the site to load faster. After
like
30 minutes this happens again. Where can I change this setting (that
caches
the compiled website)? If my hosting company won't change it are there
other solutions to keep the site alive/active regularly (even a service
that
"visits" every 25 min or something)?

Thanks for your insight!

Maybe you should try the aspnet compiler before you deploy to your
host.

check it out here:
http://msdn2.microsoft.com/en-us/lib...63(VS.80).aspx

Nov 13 '07 #3
On Nov 13, 4:00 pm, "Cirene" <t...@test.comwrote:
But it's already compiled. I use Visual Studio.net 2005. (Sorry if I
didn't explain that well.)

My hosting company support stated "Please be sure that the compiled cached
on server is a behavior of MicrosoftASP.NET, we can not change this kind of
cache. The only thing we can do is keep the compiled application loaded on
the cache, therefore a scheduled task can be help to keep the cache stay.
Thank you."

Make sense?

<derhamfam...@googlemail.comwrote in message

news:11**********************@o80g2000hse.googlegr oups.com...
On 13 Nov, 20:11, "Cirene" <t...@test.comwrote:
As I understand it, (by design?) thefirstperson to visit aASP.NET
website
has to wait a little longer because the site is being compiled.
Subsequent
visitors (if they visit soon) will find the site toloadfaster. After
like
30 minutes this happens again. Where can I change this setting (that
caches
the compiled website)? If my hosting company won't change it are there
other solutions to keep the site alive/active regularly (even a service
that
"visits" every 25 min or something)?
Thanks for your insight!
Maybe you should try the aspnet compiler before you deploy to your
host.
check it out here:
http://msdn2.microsoft.com/en-us/lib...3(VS.80).aspx- Hide quoted text -

- Show quoted text -
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 22 '07 #4
Actually you can make the application itself do the "ping request".
In the Application_End handler in Global.asax, just put in a WebClient
request for the site.

--Peter
"Inside every large program, there is a small program trying to get out."
http://www.eggheadcafe.com
http://petesbloggerama.blogspot.com
http://www.blogmetafinder.com

"unknown" wrote:
>
Nov 22 '07 #5

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

Similar topics

1
by: mike | last post by:
regards: when nokia mobile browser at the first time access HTTP Server, What kind of "HTTP request" does the nokia mobile browser give to the HTTP Server? thank you May goodness be with you...
1
by: Steve Bishop | last post by:
I have an application that uses data access that runs slow the first time. My first page reads data from an ODBC source and the second page hits a MSDE database. After each page opens the first...
3
by: aspnet guy | last post by:
my asp.net website is slow at my work machine but very fast at home. My work uses a firewall. Can that slow down the loading of web forms? are there any "common" things I can try to get it to...
1
by: BK Kim | last post by:
Hello. I have made my aspx websites and I realized that my application is running slow at the first time but next time, it is very fast. Is it because the codes are compiled at the first time?...
11
by: Jason | last post by:
Hi I have a "problem" i have got a ASP.NET application. in this application i have included logging. in the logging i have logged how many seconds it takes for this application to fully load....
16
by: TB | last post by:
Hi all: If you think that the following comments are absolute amateurish, then please bear with me, or simply skip this thread. A couple of months back I made the decision to initiate a...
3
by: Bob Graham | last post by:
This code: txRate.Text = Format(payRate, "C") (payRate is already succesfully set to a value such as 15D) takes about 3-4 seconds to run the first time, after that it's plenty fast. What...
3
by: Marlene A. Roman | last post by:
Hope everybody is doing OK. I have a webservice which I request via https://. I'm also using WSE to generate an authenticated token.
1
by: ssaini | last post by:
Hi, I am consuming a java web service in .NET C# smart client, which is based upon Microsoft's SCSF application block.The SCSF is a wrapper over WinForms. When I make a call to any of the Java...
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
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
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,...
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
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,...

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.