Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

IIS6 - does recycling an application pool clear the cache?

577 views
Skip to first unread message

Scotter

unread,
Jun 17, 2004, 10:36:44 AM6/17/04
to
If I put a bunch of RAM in my server so I could cache a lot of ASP pages,
etc....
and I recycle the application pool for whatever App once a day at like 3am,
am I tossing out all those cached pages and thus not taking advantage of
most of the RAM?
Thanks for any advice you all can give!

--
Scotter


Kornél Pál

unread,
Jun 17, 2004, 10:51:43 AM6/17/04
to
If you use IIS 6 with the kernel mode cache of http.sys, it will preserve
the cache. If you use any other or your own cache inside the worker process
it will be lost.

Sincerely,
Kornél


chanmmn

unread,
Jun 17, 2004, 10:53:25 AM6/17/04
to
Bunch of RAM is how many??? 1G, 2G or 3G but anyway it does help overall
nothing lose.

chanmm

"Scotter" <sp...@spam.com> wrote in message
news:00iAc.5207$4g1....@fe2.texas.rr.com...

Scotter

unread,
Jun 17, 2004, 11:20:58 AM6/17/04
to
I'm sorry I don't understand.
Which is the default?

"Kornél Pál" <anon...@discussions.microsoft.com> wrote in message
news:OZPKdqHV...@tk2msftngp13.phx.gbl...

Kornél Pál

unread,
Jun 17, 2004, 11:34:30 AM6/17/04
to
> I'm sorry I don't understand.
> Which is the default?

http.sys cache is the default, if you use any other or your own you have to
know it as you had to set it up.

Sincerely,
Kornél


WenJun Zhang[msft]

unread,
Jun 17, 2004, 11:45:29 PM6/17/04
to
There are a batch of different caches in IIS6 and for ASP script
cache, recycling AppPool does clear it. However, this shouldn't be a
problem because when the pages being requested again after recycling,
they will be cached again as well.

The following are some links talking about IIS6 caches:

Improving Scalability by Optimizing IIS 6.0 Caches
http://www.microsoft.com/resources/documentation/IIS/6/all/techref/en-
us/iisRG_SCA_20.mspx

Setting the ASP Cache Metabase Property and Registry Entry
http://www.microsoft.com/resources/documentation/IIS/6/all/techref/en-
us/iisRG_SCA_30.mspx

URI Cache
http://www.microsoft.com/resources/documentation/IIS/6/all/techref/en-
us/iisRG_SCA_21.mspx

HTTP.sys Response Cache
http://www.microsoft.com/resources/documentation/IIS/6/all/techref/en-
us/iisRG_SCA_24.mspx

File Cache
http://www.microsoft.com/resources/documentation/IIS/6/all/techref/en-
us/iisRG_SCA_23.mspx

For tuning cache configuration to optimize IIS6 performance, the best
and most detailed reference should be: Ch 6: Optimizing IIS 6.0
Performance and Ch 7: Web Server Scalability in IIS6 resource kit:

Internet Information Services (IIS) 6.0 Resource Kit
http://www.microsoft.com/downloads/details.aspx?familyid=80a1b6e6-829e
-49b7-8c02-333d9c148e69&displaylang=en

Best regards,

WenJun Zhang
Microsoft Online Support
This posting is provided "AS IS" with no warranties, and confers no
rights.
Get Secure! - www.microsoft.com/security

David Wang [Msft]

unread,
Jun 20, 2004, 8:37:41 AM6/20/04
to
All cache entries associated with the worker process in the application pool
will be lost when you recycle. This includes any caches that ASP has as
well as kernel-mode response cache for URL belonging to that application
pool.

This is the whole purpose of recycling -- to intentionally start over and
toss away potentially corrupted state. If it happens to toss away state you
wanted to keep -- oh well. You should take better care of things.

Maybe you want to reorganize how pages are orgianized to prevent process
recycling for things you want to keep cached -- for example, keep all static
image/HTML files in one AppPool that never recycles, so everything stays
cached. Meantime, place all your apps in different app pools so that they
can recycle if they become flakey.

--
//David
IIS


This posting is provided "AS IS" with no warranties, and confers no rights.

//


"Scotter" <sp...@spam.com> wrote in message
news:00iAc.5207$4g1....@fe2.texas.rr.com...

WenJun Zhang[msft]

unread,
Jun 20, 2004, 10:10:16 PM6/20/04
to
Scotter,

Do you have further questions on this topic?

Scotter

unread,
Jun 20, 2004, 11:56:10 PM6/20/04
to
Nope! Thanks. You answered them quite well!

""WenJun Zhang[msft]"" <v-wz...@online.microsoft.com> wrote in message
news:78T2sTzV...@cpmsftngxa10.phx.gbl...

0 new messages