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

Caching (possibly IIS related?)

Hi all,

I have a web application which gets *very* few hits, especially as its only
just been launched, but even after that it'll be a "quiet" site.

My problem is that when I am the first person to visit it for the day (like
this morning) it takes much longer to load - my understanding (having
attended a MS asp.net course some time ago) was that this is because its
doing the recompile to MSIL (please correct me if I'm wrong). I brought
this up on the course and the instructor chappy did say something about how
to extend its cache so that it didn't do it every day - perhaps once a week
or something - but it was a while ago and do you think I can remember what
he said - nope!

Can anyone give me any suggestions on how to get around this problem - the
content of the site is not dynamic and will only ever change if the client
contacts me to update it - therefore to be honest I would be happy to set
the cache at say 6 months or something longer so that this constant rebuild
problem goes away and thus the site loads faster for the occasional user
that does actually browse to it! :o)

Any help appreciated - I wasn't sure whether the solution to this would be
in the code or possibly within IIS so please excuse my posting if this is
the incorrect group.

Regards

Rob
Apr 28 '06 #1
7 1273
Cache normally referrers to things like the caching API and OutputCache. I
certainly hope that if your site is highly static, you use OutputCache a lot
to help the overall performance.

However, when talking about intial load, this is related to ASP.NET's Just
In Time (JIT) compilation. If you open up:

C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\CONFI G\machine.config
(recommend you back it up first)

and do a searhc for <processModel there are a lot of settings (all well
documented in the same file) you can change to dictate when ASP.NET recycles
itself.

If you are running IIS 6.0, there's a tab that controls many of these
settings also (under the application pool properties)

Alternatives:
-You could set up a scheduled task that simply hits one of the aspx pages
every 30 minutes or so...
-ASP.NET 2.0 has a number of compilation features, some of them do away with
the problem you mention

Karl

--
http://www.openmymind.net/

"Rob Meade" <ku***************@edaem.bor> wrote in message
news:%2****************@TK2MSFTNGP04.phx.gbl...
Hi all,

I have a web application which gets *very* few hits, especially as its
only just been launched, but even after that it'll be a "quiet" site.

My problem is that when I am the first person to visit it for the day
(like this morning) it takes much longer to load - my understanding
(having attended a MS asp.net course some time ago) was that this is
because its doing the recompile to MSIL (please correct me if I'm wrong).
I brought this up on the course and the instructor chappy did say
something about how to extend its cache so that it didn't do it every
day - perhaps once a week or something - but it was a while ago and do you
think I can remember what he said - nope!

Can anyone give me any suggestions on how to get around this problem - the
content of the site is not dynamic and will only ever change if the client
contacts me to update it - therefore to be honest I would be happy to set
the cache at say 6 months or something longer so that this constant
rebuild problem goes away and thus the site loads faster for the
occasional user that does actually browse to it! :o)

Any help appreciated - I wasn't sure whether the solution to this would be
in the code or possibly within IIS so please excuse my posting if this is
the incorrect group.

Regards

Rob

Apr 28 '06 #2
And don't forget to disable debugging in web.config.

Apr 28 '06 #3
"Karl Seguin [MVP]" wrote ...
Cache normally referrers to things like the caching API and OutputCache. I
certainly hope that if your site is highly static, you use OutputCache a
lot to help the overall performance.
Erm nope - thats a new one for me - should I just F1 - "outputcache" or do
you have a small example I could use?
However, when talking about intial load, this is related to ASP.NET's Just
In Time (JIT) compilation. If you open up:
yep
and do a searhc for <processModel there are a lot of settings (all well
documented in the same file) you can change to dictate when ASP.NET
recycles itself.

If you are running IIS 6.0, there's a tab that controls many of these
settings also (under the application pool properties)
I am yes, so perhaps I should look here - or do I need to do both?
-ASP.NET 2.0 has a number of compilation features, some of them do away
with the problem you mention


Its written in ASP.Net 2.0 -so again if you have any examples, or a URL you
could point me to for that I would be very grateful.

Thank you for your reply Karl.

Regards

Rob
Apr 28 '06 #4
"the4man" wrote ...
And don't forget to disable debugging in web.config.


Does that still apply in .Net 2.0? My previous experience from using Visual
Studio 2003 was basically a case of building the application in either DEBUG
or RELEASE mode, my understanding was that it would only use the settings in
the web.config file if it had been built in DEBUG mode.

In VisualStudio 2005 the only build option is DEBUG, however there's an
option to "Publish" the project- I had assumed, and possibly incorrectly,
that you were always in DEBUG mode until you published, at which point
VS2005 would change this to effectively a RELEASE build.

Any info on this would be appreciated.

Thanks for your reply.

Regards

Rob
Apr 28 '06 #5
re:
And don't forget to disable debugging in web.config.
Does that still apply in .Net 2.0?


Yes, it does...unless you pre-compile the website.

See :
http://msdn.microsoft.com/library/de...t_projects.asp
for full details.

Juan T. Llibre, asp.net MVP
aspnetfaq.com : http://www.aspnetfaq.com/
asp.net faq : http://asp.net.do/faq/
foros de asp.net, en espaol : http://asp.net.do/foros/
===================================
"Rob Meade" <ku***************@edaem.bor> wrote in message
news:uy**************@TK2MSFTNGP04.phx.gbl... "the4man" wrote ...
And don't forget to disable debugging in web.config.


Does that still apply in .Net 2.0? My previous experience from using Visual Studio 2003 was
basically a case of building the application in either DEBUG or RELEASE mode, my understanding was
that it would only use the settings in the web.config file if it had been built in DEBUG mode.

In VisualStudio 2005 the only build option is DEBUG, however there's an option to "Publish" the
project- I had assumed, and possibly incorrectly, that you were always in DEBUG mode until you
published, at which point VS2005 would change this to effectively a RELEASE build.

Any info on this would be appreciated.

Thanks for your reply.

Regards

Rob

Apr 28 '06 #6
googling OutputCache will gve you a lot of hits...it won't improve initial
load time, so if your happy with ur site otherwise, it might not be worth
the bother.

Since ur in 2.0, check out:
http://weblogs.asp.net/scottgu/archi...06/429723.aspx

there's a deployment project that has a bunch of options...

and if you are using the Express line of tools, you can use this free 3rd
party utility to help you out:
http://www.west-wind.com/tools/aspnetcompiler.asp

Karl
--
http://www.openmymind.net/
http://www.fuelindustries.com/
"Rob Meade" <ku***************@edaem.bor> wrote in message
news:OW**************@TK2MSFTNGP03.phx.gbl...
"Karl Seguin [MVP]" wrote ...
Cache normally referrers to things like the caching API and OutputCache.
I certainly hope that if your site is highly static, you use OutputCache
a lot to help the overall performance.


Erm nope - thats a new one for me - should I just F1 - "outputcache" or do
you have a small example I could use?
However, when talking about intial load, this is related to ASP.NET's
Just In Time (JIT) compilation. If you open up:


yep
and do a searhc for <processModel there are a lot of settings (all well
documented in the same file) you can change to dictate when ASP.NET
recycles itself.

If you are running IIS 6.0, there's a tab that controls many of these
settings also (under the application pool properties)


I am yes, so perhaps I should look here - or do I need to do both?
-ASP.NET 2.0 has a number of compilation features, some of them do away
with the problem you mention


Its written in ASP.Net 2.0 -so again if you have any examples, or a URL
you could point me to for that I would be very grateful.

Thank you for your reply Karl.

Regards

Rob

Apr 28 '06 #7
Additionally, here's what Scott Guthrie has to say about
deploying applications with <compilation debug="true" />

http://weblogs.asp.net/scottgu/archi...11/442448.aspx

I found out about <deployment retail="true"/> with that blog entry.

Juan T. Llibre, asp.net MVP
aspnetfaq.com : http://www.aspnetfaq.com/
asp.net faq : http://asp.net.do/faq/
foros de asp.net, en espaol : http://asp.net.do/foros/
===================================
"Juan T. Llibre" <no***********@nowhere.com> wrote in message
news:%2****************@TK2MSFTNGP02.phx.gbl...
re:
And don't forget to disable debugging in web.config.


Does that still apply in .Net 2.0?


Yes, it does...unless you pre-compile the website.

See :
http://msdn.microsoft.com/library/de...t_projects.asp
for full details.

Juan T. Llibre, asp.net MVP
aspnetfaq.com : http://www.aspnetfaq.com/
asp.net faq : http://asp.net.do/faq/
foros de asp.net, en espaol : http://asp.net.do/foros/
===================================
"Rob Meade" <ku***************@edaem.bor> wrote in message
news:uy**************@TK2MSFTNGP04.phx.gbl...
"the4man" wrote ...
And don't forget to disable debugging in web.config.


Does that still apply in .Net 2.0? My previous experience from using Visual Studio 2003 was
basically a case of building the application in either DEBUG or RELEASE mode, my understanding
was that it would only use the settings in the web.config file if it had been built in DEBUG
mode.

In VisualStudio 2005 the only build option is DEBUG, however there's an option to "Publish" the
project- I had assumed, and possibly incorrectly, that you were always in DEBUG mode until you
published, at which point VS2005 would change this to effectively a RELEASE build.

Any info on this would be appreciated.

Thanks for your reply.

Regards

Rob


Apr 28 '06 #8

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

Similar topics

15
by: olle | last post by:
Hi folks. I learning asp.net and compare it with traditional asp and Access-developing. The issue is this one: 1/I have this Ms Acceess adp-project application that works fine on my Ms Sql...
4
by: Gav | last post by:
Hi all, I'm having this strange problem where, in a web app, I have 2 different links to a different form. One is just a straight forward link the other is a bit more complicated because it gets...
2
by: moondaddy | last post by:
My default page stays constant in the site and all the content in the body of the page is produced with user controls in a table cell for the body section. The main function of this site is a...
10
by: BillGatesFan | last post by:
I'm trying to understand ASP.NET caching. I set the Page Output directive to VaryByParams= None and the duration = 60. Now whenever users hit my web app they can see each others data. Is there...
2
by: Nalaka | last post by:
Hi, I have the following requirement for caching a asp.net 2.0 page. Can some one please tell me if this is possible.... and a some direction would also be wonderful I have a ASP.net 2.0...
1
by: Kevin Burrowes | last post by:
I need to implement caching for a large enterprise application and we are planning to use the newest Caching Application Blocks. (Enterprise Library Jan. 2006) We want to cache Business Entities...
3
by: Gary W. Smith | last post by:
I had a couple questions about data caching. We have a site that gets a huge amount of traffic to a few specific pages that have a lot of data on them (300k hits/hour during peak, about 6-10 data...
12
by: =?Utf-8?B?RGF2ZQ==?= | last post by:
I'm using ASP.Net with an UpdatePanel. When the screen is exercised via a Web Test, the Web Test shows that the AJAX scripts are downloaded for every partial post back. My impression was that...
1
by: Mateusz Viste | last post by:
В Четверг 16 октября 2008 17:21, sasuke писал: There is many requests indeed, but it's rather normal - Steve has put online various weird stuff which needs to be loaded :-) ...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
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: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
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...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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...

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.