473,396 Members | 2,109 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,396 software developers and data experts.

Worker process and Cache object's lifetime

Hello All,

I have been caching an object in a web app and I am running the web app on
my localhost i.e., local machine which has its own IIS web server. Now my
question is if I access web application from my localhost where would that
cached object live? Is it in web server's memory OR inside the worker process?

I am assuming that the cache objects are stored in web server's memory. But
interestingly everytime I close my browser (only instance accessing web
application from the http://localhost), the cache object is being killed and
is created fresh for browser instances which access localhost thereafter. And
this makes me think that cache objects are stored in worker process and not
in web server's memory because I am assuming that worker process gets killed.
Am I right?

And finally when does a worker process start and when does that process get
killed. Is it started only when a browser makes request to a page in the web
app for the very first time? And gets killed if there are no browser
instances accessing? Or is this worker process a persistent process inside
the ASP.NET engine which is yet another process running forever inside the
web server?

I hope that I expressed my questions unambiguously and if I missed something
or if I am not clear please reply me as to where I need to be clear.

Thanks!!
Feb 2 '06 #1
1 3077
Diffident,
The Cache lives in the AppDomain which is created when the application is
first requested, unless you are using some sort of custom cache. The
application may persist even if no requests are being made for a period. If
you change the web.config, the Application recycles and a new Cache is
created (without your items of course).
Peter

--
Co-founder, Eggheadcafe.com developer portal:
http://www.eggheadcafe.com
UnBlog:
http://petesbloggerama.blogspot.com


"Diffident" wrote:
Hello All,

I have been caching an object in a web app and I am running the web app on
my localhost i.e., local machine which has its own IIS web server. Now my
question is if I access web application from my localhost where would that
cached object live? Is it in web server's memory OR inside the worker process?

I am assuming that the cache objects are stored in web server's memory. But
interestingly everytime I close my browser (only instance accessing web
application from the http://localhost), the cache object is being killed and
is created fresh for browser instances which access localhost thereafter. And
this makes me think that cache objects are stored in worker process and not
in web server's memory because I am assuming that worker process gets killed.
Am I right?

And finally when does a worker process start and when does that process get
killed. Is it started only when a browser makes request to a page in the web
app for the very first time? And gets killed if there are no browser
instances accessing? Or is this worker process a persistent process inside
the ASP.NET engine which is yet another process running forever inside the
web server?

I hope that I expressed my questions unambiguously and if I missed something
or if I am not clear please reply me as to where I need to be clear.

Thanks!!

Feb 2 '06 #2

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

Similar topics

9
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...
4
by: Mat | last post by:
Hi, I've stumbled onto a problem when using the caching object in ASP.Net. I'm placing a static dataset to the cache as the data only changes once a day. Whilst writing to the cache I'm using...
3
by: rao | last post by:
Hi All, I am generating temporary xml files to bind it to tree view control. A unique xml file is generated for each user. I generating these files Using streamwriter class. Later when I try to...
6
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?...
0
by: domtam | last post by:
Hi everybody, As far as I understand, each worker process in a web garden (say, in IIS 6.0) has its own copy of Cache objects, static objects and Application(state) objects. In other words, they...
2
by: Jeremy S. | last post by:
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...
4
by: Beren | last post by:
Hello I'm trying to use Cache expiration and its callback feature to easily add automated tasks programmatically. The task should be run when the Cache object expired The problem I'm facing...
5
by: J-T | last post by:
I guess I'm a litte bit confused about app pool and worker process. In IIS 6.0 We have a concept of worker processes and application pools. As I understand it, we can have multiple worker process...
3
by: =?Utf-8?B?Sm9obiBCYWlsZXk=?= | last post by:
I am currently evaluating a CMS product. I like the product so far, but one of the restrictions on the product is that it requires that the Windows 2003 application pool be restricted to one...
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: 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...
0
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
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...
0
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...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

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.