Welcome to MobyThreads.com!
FAQFAQ   SearchSearch      ProfileProfile    Private MessagesPrivate Messages   Log in/Register/PasswordLog in/Register/Password

IIS Template Cache and Script Engine Cache

 
   Web Hosting and Web Master Forums (Home) -> IIS RSS
Related Topics:
IIS cache - We are running IIS 5 on Win 2000 box, How do I disbale caching for a virtual directory on the server ? ie: I want to disable caching on the sales virtual folder ( right now when I make some chages to my html pages, it..

IIS Cache - When I make to an asp/html file sometimes IIS doesn't pick up the changes for a couple hours (i.e. shows the cached version). The ASP/HTML files are all located on a clustered file share. Can I clear the IIS file cache with the..

URI Cache - I am trying to debug an out of memory issue on a Windows 2000 Server / IIS 5.0, and I noticed that the URI Cache Etnries keeps every minute, and never gets flushed. I was wondering if this could be the cause of the memory loss. Does anyone..

IIS 5 cache - hi there I had a problem the other day, for some reason the home page I set in IIS was not directing to the correct home page. As if the old page was cached. Even when I restarted IIS and even when I it I was having the same problem. Is this..

IIS cache ?? - Hi! On a website (soon to be launched) we are running Windows Server 2003 std. ed. with IIS6 and SQL Server 2000 std. ed. on two identical servers seperated by a firewall. The server inside of the firewall has been set up to use MSSQL Server..
Next:  IIS: Enabling HTTPS on IIS 6.0  
Author Message
anonymous1420

External


Since: Mar 12, 2004
Posts: 11



(Msg. 1) Posted: Sat Mar 20, 2004 6:28 pm
Post subject: IIS Template Cache and Script Engine Cache
Archived from groups: microsoft>public>inetserver>iis (more info?)

I have done some reading of various posts and websites
trying to get an understanding of theses caches. I have
some questions.

What I have read says that when an asp page is first
requested, a text copy (with all includes inserted into
the text) of it is stored in the Template Cache. This
text copy is the "Template". My questions are:

Does this template contain the HTML code also, or just
the script code?

Is it really just a copy of the entire asp page?

If I understand things so far, none of script has been
executed at this point. This is just a copy of the asp
page the server can use later (assuming it is still in
the cache) rather than going to disk to get it. Correct?

My understanding of the Script Engine Cache is that after
a page has been put into the template cache, the asp
script is interpreted and stored in the template cache.
If requested later, the server can use the previously
interpreted cache version rather than spending time
interpreting it again. My questions on this are:

Does the Script Engine Cache contain only script
associated with a templates in the template cache? In
other words, is it ONLY asp script and no HTML? If there
is no HTML, does it get the HTML from it's associated
Template?

Again, I am assuming that the cached Script Engines are
script that has not been executed, meaning the results of
of running the script are not in the cache. The cached
Script Engine could be executed multiple times with
different results depending on the values (from a
querystring, or record set, etc. ) supplied to it. Is
this correct?

I support a large asp site, so I am just trying to get a
better understanding of how things work.

Thanks,

Pete Conlan

 >> Stay informed about: IIS Template Cache and Script Engine Cache 
Back to top
Login to vote
anonymous1494

External


Since: Mar 22, 2004
Posts: 2



(Msg. 2) Posted: Mon Mar 22, 2004 1:58 pm
Post subject: IIS Template Cache and Script Engine Cache [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

I'm far from an expert and I don't know if this will help
answer your questions. But from what I have observed,
the cache is purely html code that the asp wrote out at
first execution. We require our users to set their IE to
use the option of refreshing "every visit to the page".


 >-----Original Message-----
 >I have done some reading of various posts and websites
 >trying to get an understanding of theses caches. I have
 >some questions.
 >
 >What I have read says that when an asp page is first
 >requested, a text copy (with all includes inserted into
 >the text) of it is stored in the Template Cache. This
 >text copy is the "Template". My questions are:
 >
 >Does this template contain the HTML code also, or just
 >the script code?
 >
 >Is it really just a copy of the entire asp page?
 >
 >If I understand things so far, none of script has been
 >executed at this point. This is just a copy of the asp
 >page the server can use later (assuming it is still in
 >the cache) rather than going to disk to get it. Correct?
 >
 >My understanding of the Script Engine Cache is that
after
 >a page has been put into the template cache, the asp
 >script is interpreted and stored in the template cache.
 >If requested later, the server can use the previously
 >interpreted cache version rather than spending time
 >interpreting it again. My questions on this are:
 >
 >Does the Script Engine Cache contain only script
 >associated with a templates in the template cache? In
 >other words, is it ONLY asp script and no HTML? If
there
 >is no HTML, does it get the HTML from it's associated
 >Template?
 >
 >Again, I am assuming that the cached Script Engines are
 >script that has not been executed, meaning the results
of
 >of running the script are not in the cache. The cached
 >Script Engine could be executed multiple times with
 >different results depending on the values (from a
 >querystring, or record set, etc. ) supplied to it. Is
 >this correct?
 >
 >I support a large asp site, so I am just trying to get a
 >better understanding of how things work.
 >
 >Thanks,
 >
 >Pete Conlan
 >.
 ><!-- ~MESSAGE_AFTER~ -->

 >> Stay informed about: IIS Template Cache and Script Engine Cache 
Back to top
Login to vote
someone9

External


Since: Aug 25, 2003
Posts: 2419



(Msg. 3) Posted: Tue Mar 23, 2004 3:47 am
Post subject: Re: IIS Template Cache and Script Engine Cache [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Ok, I went and asked the ASP Dev about it, so I will share what I've
understood. Hopefully, more explanations will be blogged by the dev sometime
soon. At a glance, what I'm going to say does not seem to match anything
that you've asked.

The two concepts you are asking about is the "Template Cache" and "Script
Engine Cache".

The "Template Cache" is a cache of the intermediate form of the particular
ASP page which has all necessary script code (including include files) and
other parsed info from the HTML portions of the ASP page. This template can
be directly interpreted by a Script Engine to produce the ASP page's output.
It is NOT a response cache (i.e. cache of script execution). Treat the
templates as an intermediate form of an ASP page that has not been
interpreted.

ASP has an option to either not use Templates (this is merely a perf issue
and does not affect functionality), cache all Templates in memory, or cache
a portion in memory and the rest on disk inside the configurable "ASP
Compiled Templates" directory.

The "Script Engine Cache" refers to a cache of the actual Script Engine
objects that are used to interpret scripts. These objects are expensive to
create/tear-down per ASP request (sort of like how Processes are expensive
to create/tear-down), so what ASP does is create a pool of Script Engine
objects (you get to control the number of such objects in the pool), and
everytime ASP needs to execute a template to produce output, it uses a free
Script Engine from the pool.


Thus, you can see that "Script Engine Cache" is a direct measure of "how
many scripts can be theoretically executed concurrently by ASP". This
measure of concurrent execution is further bounded by the max number of
worker threads feeding templates into the Script Engines, so it does not
make sense to have this value be very large nor very small (if very large,
you're just wasting memory/resources on Engines that barely get used; if
very small, you end up bottlenecking the concurrency of script execution
because you have more worker threads feeding in templates than there are
available Script Engines to execute them).

The "Template Cache" is basically storing all the necessary pre-processing
of an ASP page prior to actual generation of dynamic response by a Script
Engine from the "Script Engine Cache".

Neither of these caches are the "Response Cache" that you alluded to.

--
//David
IIS
This posting is provided "AS IS" with no warranties, and confers no rights.
//
"Peter Conlan" <anonymous.TakeThisOut@discussions.microsoft.com> wrote in message
news:10a9601c40ed3$19a04a40$a301280a@phx.gbl...
I have done some reading of various posts and websites
trying to get an understanding of theses caches. I have
some questions.

What I have read says that when an asp page is first
requested, a text copy (with all includes inserted into
the text) of it is stored in the Template Cache. This
text copy is the "Template". My questions are:

Does this template contain the HTML code also, or just
the script code?

Is it really just a copy of the entire asp page?

If I understand things so far, none of script has been
executed at this point. This is just a copy of the asp
page the server can use later (assuming it is still in
the cache) rather than going to disk to get it. Correct?

My understanding of the Script Engine Cache is that after
a page has been put into the template cache, the asp
script is interpreted and stored in the template cache.
If requested later, the server can use the previously
interpreted cache version rather than spending time
interpreting it again. My questions on this are:

Does the Script Engine Cache contain only script
associated with a templates in the template cache? In
other words, is it ONLY asp script and no HTML? If there
is no HTML, does it get the HTML from it's associated
Template?

Again, I am assuming that the cached Script Engines are
script that has not been executed, meaning the results of
of running the script are not in the cache. The cached
Script Engine could be executed multiple times with
different results depending on the values (from a
querystring, or record set, etc. ) supplied to it. Is
this correct?

I support a large asp site, so I am just trying to get a
better understanding of how things work.

Thanks,

Pete Conlan
 >> Stay informed about: IIS Template Cache and Script Engine Cache 
Back to top
Login to vote
anonymous1420

External


Since: Mar 12, 2004
Posts: 11



(Msg. 4) Posted: Tue Mar 23, 2004 9:36 am
Post subject: Re: IIS Template Cache and Script Engine Cache [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Thanks David, that is great information.

The only thing I am not 100% clear on is the part about
the templates in the template cache containing "other
parsed info from the HTML portions of the ASP page".

By this do you mean that the HTML that is in the asp page
is in the template also, or only certain items? Given
that you said the Script Engines can directly interpret
the template to produce the output, it would seem like
the template would contain the HTML from the asp page as
well. I just want to be sure I understand correctly.

Thanks again.

Pete

 >-----Original Message-----
 >Ok, I went and asked the ASP Dev about it, so I will
share what I've
 >understood. Hopefully, more explanations will be blogged
by the dev sometime
 >soon. At a glance, what I'm going to say does not seem
to match anything
 >that you've asked.
 >
 >The two concepts you are asking about is the "Template
Cache" and "Script
 >Engine Cache".
 >
 >The "Template Cache" is a cache of the intermediate form
of the particular
 >ASP page which has all necessary script code (including
include files) and
 >other parsed info from the HTML portions of the ASP
page. This template can
 >be directly interpreted by a Script Engine to produce
the ASP page's output.
 >It is NOT a response cache (i.e. cache of script
execution). Treat the
 >templates as an intermediate form of an ASP page that
has not been
 >interpreted.
 >
 >ASP has an option to either not use Templates (this is
merely a perf issue
 >and does not affect functionality), cache all Templates
in memory, or cache
 >a portion in memory and the rest on disk inside the
configurable "ASP
 >Compiled Templates" directory.
 >
 >The "Script Engine Cache" refers to a cache of the
actual Script Engine
 >objects that are used to interpret scripts. These
objects are expensive to
 >create/tear-down per ASP request (sort of like how
Processes are expensive
 >to create/tear-down), so what ASP does is create a pool
of Script Engine
 >objects (you get to control the number of such objects
in the pool), and
 >everytime ASP needs to execute a template to produce
output, it uses a free
 >Script Engine from the pool.
 >
 >
 >Thus, you can see that "Script Engine Cache" is a direct
measure of "how
 >many scripts can be theoretically executed concurrently
by ASP". This
 >measure of concurrent execution is further bounded by
the max number of
 >worker threads feeding templates into the Script
Engines, so it does not
 >make sense to have this value be very large nor very
small (if very large,
 >you're just wasting memory/resources on Engines that
barely get used; if
 >very small, you end up bottlenecking the concurrency of
script execution
 >because you have more worker threads feeding in
templates than there are
 >available Script Engines to execute them).
 >
 >The "Template Cache" is basically storing all the
necessary pre-processing
 >of an ASP page prior to actual generation of dynamic
response by a Script
 >Engine from the "Script Engine Cache".
 >
 >Neither of these caches are the "Response Cache" that
you alluded to.
 >
 >--
 >//David
 >IIS
 >This posting is provided "AS IS" with no warranties, and
confers no rights.
 >//
 >"Peter Conlan" <anonymous DeleteThis @discussions.microsoft.com>
wrote in message
 >news:10a9601c40ed3$19a04a40$a301280a@phx.gbl...
 >I have done some reading of various posts and websites
 >trying to get an understanding of theses caches. I have
 >some questions.
 >
 >What I have read says that when an asp page is first
 >requested, a text copy (with all includes inserted into
 >the text) of it is stored in the Template Cache. This
 >text copy is the "Template". My questions are:
 >
 >Does this template contain the HTML code also, or just
 >the script code?
 >
 >Is it really just a copy of the entire asp page?
 >
 >If I understand things so far, none of script has been
 >executed at this point. This is just a copy of the asp
 >page the server can use later (assuming it is still in
 >the cache) rather than going to disk to get it. Correct?
 >
 >My understanding of the Script Engine Cache is that after
 >a page has been put into the template cache, the asp
 >script is interpreted and stored in the template cache.
 >If requested later, the server can use the previously
 >interpreted cache version rather than spending time
 >interpreting it again. My questions on this are:
 >
 >Does the Script Engine Cache contain only script
 >associated with a templates in the template cache? In
 >other words, is it ONLY asp script and no HTML? If there
 >is no HTML, does it get the HTML from it's associated
 >Template?
 >
 >Again, I am assuming that the cached Script Engines are
 >script that has not been executed, meaning the results of
 >of running the script are not in the cache. The cached
 >Script Engine could be executed multiple times with
 >different results depending on the values (from a
 >querystring, or record set, etc. ) supplied to it. Is
 >this correct?
 >
 >I support a large asp site, so I am just trying to get a
 >better understanding of how things work.
 >
 >Thanks,
 >
 >Pete Conlan
 >
 >
 >.
 ><!-- ~MESSAGE_AFTER~ -->
 >> Stay informed about: IIS Template Cache and Script Engine Cache 
Back to top
Login to vote
anonymous1420

External


Since: Mar 12, 2004
Posts: 11



(Msg. 5) Posted: Wed Mar 24, 2004 9:58 am
Post subject: Re: IIS Template Cache and Script Engine Cache [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

David,

I do have one more question:

If an asp page is using vbscript and server-side jscript,
will it use 2 script engines? Or will one script engine
hande both vbscript and jscript?

Thanks,

Pete

 >-----Original Message-----
 >Ok, I went and asked the ASP Dev about it, so I will
share what I've
 >understood. Hopefully, more explanations will be blogged
by the dev sometime
 >soon. At a glance, what I'm going to say does not seem
to match anything
 >that you've asked.
 >
 >The two concepts you are asking about is the "Template
Cache" and "Script
 >Engine Cache".
 >
 >The "Template Cache" is a cache of the intermediate form
of the particular
 >ASP page which has all necessary script code (including
include files) and
 >other parsed info from the HTML portions of the ASP
page. This template can
 >be directly interpreted by a Script Engine to produce
the ASP page's output.
 >It is NOT a response cache (i.e. cache of script
execution). Treat the
 >templates as an intermediate form of an ASP page that
has not been
 >interpreted.
 >
 >ASP has an option to either not use Templates (this is
merely a perf issue
 >and does not affect functionality), cache all Templates
in memory, or cache
 >a portion in memory and the rest on disk inside the
configurable "ASP
 >Compiled Templates" directory.
 >
 >The "Script Engine Cache" refers to a cache of the
actual Script Engine
 >objects that are used to interpret scripts. These
objects are expensive to
 >create/tear-down per ASP request (sort of like how
Processes are expensive
 >to create/tear-down), so what ASP does is create a pool
of Script Engine
 >objects (you get to control the number of such objects
in the pool), and
 >everytime ASP needs to execute a template to produce
output, it uses a free
 >Script Engine from the pool.
 >
 >
 >Thus, you can see that "Script Engine Cache" is a direct
measure of "how
 >many scripts can be theoretically executed concurrently
by ASP". This
 >measure of concurrent execution is further bounded by
the max number of
 >worker threads feeding templates into the Script
Engines, so it does not
 >make sense to have this value be very large nor very
small (if very large,
 >you're just wasting memory/resources on Engines that
barely get used; if
 >very small, you end up bottlenecking the concurrency of
script execution
 >because you have more worker threads feeding in
templates than there are
 >available Script Engines to execute them).
 >
 >The "Template Cache" is basically storing all the
necessary pre-processing
 >of an ASP page prior to actual generation of dynamic
response by a Script
 >Engine from the "Script Engine Cache".
 >
 >Neither of these caches are the "Response Cache" that
you alluded to.
 >
 >--
 >//David
 >IIS
 >This posting is provided "AS IS" with no warranties, and
confers no rights.
 >//
 >"Peter Conlan" <anonymous.DeleteThis@discussions.microsoft.com>
wrote in message
 >news:10a9601c40ed3$19a04a40$a301280a@phx.gbl...
 >I have done some reading of various posts and websites
 >trying to get an understanding of theses caches. I have
 >some questions.
 >
 >What I have read says that when an asp page is first
 >requested, a text copy (with all includes inserted into
 >the text) of it is stored in the Template Cache. This
 >text copy is the "Template". My questions are:
 >
 >Does this template contain the HTML code also, or just
 >the script code?
 >
 >Is it really just a copy of the entire asp page?
 >
 >If I understand things so far, none of script has been
 >executed at this point. This is just a copy of the asp
 >page the server can use later (assuming it is still in
 >the cache) rather than going to disk to get it. Correct?
 >
 >My understanding of the Script Engine Cache is that after
 >a page has been put into the template cache, the asp
 >script is interpreted and stored in the template cache.
 >If requested later, the server can use the previously
 >interpreted cache version rather than spending time
 >interpreting it again. My questions on this are:
 >
 >Does the Script Engine Cache contain only script
 >associated with a templates in the template cache? In
 >other words, is it ONLY asp script and no HTML? If there
 >is no HTML, does it get the HTML from it's associated
 >Template?
 >
 >Again, I am assuming that the cached Script Engines are
 >script that has not been executed, meaning the results of
 >of running the script are not in the cache. The cached
 >Script Engine could be executed multiple times with
 >different results depending on the values (from a
 >querystring, or record set, etc. ) supplied to it. Is
 >this correct?
 >
 >I support a large asp site, so I am just trying to get a
 >better understanding of how things work.
 >
 >Thanks,
 >
 >Pete Conlan
 >
 >
 >.
 ><!-- ~MESSAGE_AFTER~ -->
 >> Stay informed about: IIS Template Cache and Script Engine Cache 
Back to top
Login to vote
Display posts from previous:   
   Web Hosting and Web Master Forums (Home) -> IIS All times are: Pacific Time (US & Canada) (change)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum



[ Contact us | Terms of Service/Privacy Policy ]