473,509 Members | 2,890 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

iis 6.0 worker processes & cache object

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!
Nov 19 '05 #1
6 1745
You mean each Worker Process that services that application?

thanks!

"Scott Allen" <bitmask@[nospam].fred.net> wrote in message
news:4q********************************@4ax.com...
Yes, Param. Each application has an Application and Cache object and
they will not share them.

--
Scott
http://www.OdeToCode.com/blogs/scott/

On Thu, 2 Dec 2004 18:03:21 -0600, "Param R." <pr@nospam.com> wrote:
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!

Nov 19 '05 #2
Inside each worker process is an application domain, appdomain for
short. In .NET the appdomain is the unit of isolation. You can't share
object's across an appdomain without doing some work. The appdomain is
a boundary.

Each ASP.NET application runs in a seperate appdomain. Each ASP.NET
application will have it's own Cache, it's own Application collection.
They won't cross appdomain boundaries. They are isolated.

--
Scott
http://www.OdeToCode.com/blogs/scott/

On Sat, 4 Dec 2004 11:20:11 -0600, "Param R." <pr@nospam.com> wrote:
You mean each Worker Process that services that application?

thanks!

"Scott Allen" <bitmask@[nospam].fred.net> wrote in message
news:4q********************************@4ax.com.. .
Yes, Param. Each application has an Application and Cache object and
they will not share them.

--
Scott
http://www.OdeToCode.com/blogs/scott/

On Thu, 2 Dec 2004 18:03:21 -0600, "Param R." <pr@nospam.com> wrote:
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!


Nov 19 '05 #3
I guess that answers my question. So if I configure an application to have 2
WPs. Each WP will have 1 appdomain which will have its own copy of Cache,
Application objects etc. So if 1 request gets serviced by WP1 & changes an
application object, this will not be reflected when another request gets
services by WP2. Is that correct?

thanks!

"Scott Allen" <bitmask@[nospam].fred.net> wrote in message
news:v1********************************@4ax.com...
Inside each worker process is an application domain, appdomain for
short. In .NET the appdomain is the unit of isolation. You can't share
object's across an appdomain without doing some work. The appdomain is
a boundary.

Each ASP.NET application runs in a seperate appdomain. Each ASP.NET
application will have it's own Cache, it's own Application collection.
They won't cross appdomain boundaries. They are isolated.

--
Scott
http://www.OdeToCode.com/blogs/scott/

On Sat, 4 Dec 2004 11:20:11 -0600, "Param R." <pr@nospam.com> wrote:
You mean each Worker Process that services that application?

thanks!

"Scott Allen" <bitmask@[nospam].fred.net> wrote in message
news:4q********************************@4ax.com. ..
Yes, Param. Each application has an Application and Cache object and
they will not share them.

--
Scott
http://www.OdeToCode.com/blogs/scott/

On Thu, 2 Dec 2004 18:03:21 -0600, "Param R." <pr@nospam.com> wrote:

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!

Nov 19 '05 #4
That is correct.

There can also be two appdomains inside of a single worker process,
and again they will not be changing each other's application objects.
The appdomain is the boundary, not the process.

--
Scott
http://www.OdeToCode.com/blogs/scott/

On Sun, 5 Dec 2004 10:25:35 -0600, "Param R." <pr@nospam.com> wrote:
I guess that answers my question. So if I configure an application to have 2
WPs. Each WP will have 1 appdomain which will have its own copy of Cache,
Application objects etc. So if 1 request gets serviced by WP1 & changes an
application object, this will not be reflected when another request gets
services by WP2. Is that correct?

thanks!

"Scott Allen" <bitmask@[nospam].fred.net> wrote in message
news:v1********************************@4ax.com.. .
Inside each worker process is an application domain, appdomain for
short. In .NET the appdomain is the unit of isolation. You can't share
object's across an appdomain without doing some work. The appdomain is
a boundary.

Each ASP.NET application runs in a seperate appdomain. Each ASP.NET
application will have it's own Cache, it's own Application collection.
They won't cross appdomain boundaries. They are isolated.

--
Scott
http://www.OdeToCode.com/blogs/scott/

On Sat, 4 Dec 2004 11:20:11 -0600, "Param R." <pr@nospam.com> wrote:
You mean each Worker Process that services that application?

thanks!

"Scott Allen" <bitmask@[nospam].fred.net> wrote in message
news:4q********************************@4ax.com ...
Yes, Param. Each application has an Application and Cache object and
they will not share them.

--
Scott
http://www.OdeToCode.com/blogs/scott/

On Thu, 2 Dec 2004 18:03:21 -0600, "Param R." <pr@nospam.com> wrote:

>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!
>


Nov 19 '05 #5
I have a little article with an overview now too:
http://odetocode.com/Articles/305.aspx

--
Scott
http://www.OdeToCode.com/blogs/scott/
On Sun, 05 Dec 2004 13:48:57 -0500, Scott Allen
<bitmask@[nospam].fred.net> wrote:
That is correct.

There can also be two appdomains inside of a single worker process,
and again they will not be changing each other's application objects.
The appdomain is the boundary, not the process.


Nov 19 '05 #6
Great article. thanks!

"Scott Allen" <bitmask@[nospam].fred.net> wrote in message
news:6p********************************@4ax.com...
I have a little article with an overview now too:
http://odetocode.com/Articles/305.aspx

--
Scott
http://www.OdeToCode.com/blogs/scott/
On Sun, 05 Dec 2004 13:48:57 -0500, Scott Allen
<bitmask@[nospam].fred.net> wrote:
That is correct.

There can also be two appdomains inside of a single worker process,
and again they will not be changing each other's application objects.
The appdomain is the boundary, not the process.

Nov 19 '05 #7

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

Similar topics

2
4883
by: Mark | last post by:
Hi... We're looking at moving an ASP app from IIS 5 to IIS 6. In general things seem to be working okay, but there are some oddities around the edges. One of those unanticipated changes has to...
9
23055
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...
1
9591
by: Dominic | last post by:
I'd like to tune the performance of my application in a web garden. Our server has dual processors. Is there any guideline to set this "maximum number of worker processes" for web garden? In my...
0
2144
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...
13
1399
by: darrel | last post by:
I had a conversation with a friend today. I'm working on a project where I have an XML file that stores the site structure and some page-centric variables. I have a handful of controls that will...
0
1082
by: Rusty Shackleford | last post by:
I am having trouble getting my ASP.Net applications and sessions to stay running. At first, I thought it was my lack of understanding of ASP.Net, or the fact that I am using Anonymous...
1
3085
by: Diffident | last post by:
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...
5
2766
by: msuk | last post by:
All, I am using the asp.net cache object to hold some static data for my website that is retrieved from my SQL 2000 DB. What I would like to know is that if I stop my website in Win2k/IIS for a...
0
1167
by: Diffident | last post by:
Hello All, I have a question about worker processes and session state. If I set-up a web farm architecture by having multiple worker processes serving a single application, how will the session...
0
7234
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,...
0
7136
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
7412
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
7505
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...
0
5652
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,...
1
5060
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
3203
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
775
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
441
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...

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.