Just wondering if/how a sliding Cache expiration interacts with Application
Pool Worker Process Recycling.
Specifically, if I were to place some value into the Cache object with a
sliding window of 2 hours, but [Recycle worker process (in minutes)]
property setting for the relevant App Pool is 1 hour (and there is no
activity following the placement of the data into the Cache), then WILL the
data automatically be removed from the Cache when the App Pool recycles? Or,
is it *possible* that the App Pool would recycle AND the data would still be
available in the Cache?
Thanks 2 2297
Hi Jeremy:
When the app recycles all in memory objects and state are lost. A new
app will spin up with an empty cache, empty session, unitialized
static/shared fields, etc.
HTH,
--
Scott http://www.OdeToCode.com/blogs/scott/
On Sun, 27 Mar 2005 21:51:30 -0800, "Jeremy S." <GS@NoSpam.net> wrote: Just wondering if/how a sliding Cache expiration interacts with Application Pool Worker Process Recycling.
Specifically, if I were to place some value into the Cache object with a sliding window of 2 hours, but [Recycle worker process (in minutes)] property setting for the relevant App Pool is 1 hour (and there is no activity following the placement of the data into the Cache), then WILL the data automatically be removed from the Cache when the App Pool recycles? Or, is it *possible* that the App Pool would recycle AND the data would still be available in the Cache?
Thanks
The data cache in ASP.NET is scoped to the AppDomain, so yes, a recycle will
cause the data in the cache to be purged.
-Brock
DevelopMentor http://staff.develop.com/ballen Just wondering if/how a sliding Cache expiration interacts with Application Pool Worker Process Recycling.
Specifically, if I were to place some value into the Cache object with a sliding window of 2 hours, but [Recycle worker process (in minutes)] property setting for the relevant App Pool is 1 hour (and there is no activity following the placement of the data into the Cache), then WILL the data automatically be removed from the Cache when the App Pool recycles? Or, is it *possible* that the App Pool would recycle AND the data would still be available in the Cache?
Thanks This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: Abhishek Srivastava |
last post by:
Hello All,
In IIS 6.0 We have a concept of worker processes and application pools.
As I understand it, we can have multiple worker process per appliction
pool. Each worker process is dedicated...
|
by: Param R. |
last post by:
Hi all, lets assume my application is running under an app pool that has 2
worker processes servicing requests. Will the Application & Cache objects be
the same & concurrent amongst all requests?...
|
by: MattC |
last post by:
Hi,
I am persisting the viewstate for each page into the Cache object, below is
shown my methods for saving and loading:
I am able to save the viewstate to the cache and most times I can load...
|
by: Olav Tollefsen |
last post by:
I use HttpContext.Current.Cache.Insert to add some items to the cache.
1) How can I configure how much memory that is allocated to the cache?
2) What are the defaults?
3) If I don't specifiy...
|
by: Jeremy S. |
last post by:
In application pools there are two property settings (amongst others):
1. Recycle Worker Process (in minutes)
2. Idle Timeout - shut down worker process after being idle for (in
minutes).
My...
|
by: Sergey via DotNetMonster.com |
last post by:
I have Win2003 64bit server with 6 GB or RAM. Windows Task Manager displays
that:
* 0.5 GB are taken by IIS
* 2.0 GB - SQL Server and other applications
* 3 GB - System Cache
* 0.5 GB -...
|
by: =?Utf-8?B?TmFkYXYgUG9wcGxld2VsbA==?= |
last post by:
Hi Everybody,
I'm trying to save some items in the asp.net cache, but they are removed
from the cache WAY before they are supposed to (at least as I understand the
documentation).
I add the...
|
by: J055 |
last post by:
Hi
The following code works on my develeopment machine using the VS web server.
When I run the application on 2 other Windows 2003/IIS 6 servers no caching
seems to take place at all. Can...
|
by: Oriane |
last post by:
Hello,
I will soon installed a small Ajax Asp.Net "single page" site on a client
site. This page is simply polling a Asp.Net Web service, which fetchs and
returns parameters (temperature, air...
|
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,...
|
by: Charles Arthur |
last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
|
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$) {
}
...
|
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...
|
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
|
by: nemocccc |
last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
|
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...
|
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,...
|
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,...
| |