473,770 Members | 1,989 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Cache Expiration and App Pool Worker Process Recycling

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
Nov 19 '05 #1
2 2323
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.ne t> 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


Nov 19 '05 #2
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


Nov 19 '05 #3

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

Similar topics

9
23084
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 to a pool. If I assign only one application to a applicaton pool and have multiple worker processes assigned to that pool. Will my application be processed by many worker processes?
6
1758
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? i.e. does each worker process have its own copy of Application & Cache or do they both share them? thanks!
3
1943
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 it ok, however it seems that every now and again it fails to Deserialize the viewstate. My Application pool is set to shutdown after 180mins of idle.
1
6390
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 any expiration when calling Insert, how long will cached elements live? Olav
1
1936
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 question: IF the Idle Timeout value is reached BEFORE the Recycle minutes are reached, then will the worker process effectively recycle? More specifically, if the Recycle Worker Process (in minutes) is set to 100 minutes AND the Idle Timeout is...
2
1405
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 - available So it seems like I have plenty of available RAM. However when I add small data objects to the ASP.NET cache it almost immediately automatically deletes
10
4346
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 object to the cache using this.Context.Cache.Insert(key, userInfo, null, System.Web.Caching.Cache.NoAbsoluteExpiration, TimeSpan.FromMinutes(10),
5
2280
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 someone explain what I might be doing wrong or what to look out for? What's the differece between IIS and VS web server? The IIS servers seem to have enough memory. public DataTable GetAll() {
4
1592
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 conditioning status...) to be displayed on the page. This is implemented with an Ajax Timer control server. Now this is my first "industrial" web site, and I'm concerned about its robustness. Do I need to create a specific pool on IIS 6 for the...
0
9618
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9454
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10101
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10038
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8933
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
6710
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5354
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
2
3609
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2849
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.