IIS Server - worker processes

This is Interesting: Free IT Magazines  
Home > Archive > IIS Server > January 2005 > worker processes





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author worker processes
Param R.

2004-11-30, 6:21 pm

Hi all, I am trying to understand the concept of worker processes in
application pools. If I have an application pool that has the # of worker
processes set to 2, that means 2 worker processes will handle requests for
that application pool. Will each worker process have its own set of Session,
Application & Cache data that is isolate from the other. i.e. if the
Application data were to change in 1 worker process, it will not change in
the other?

thanks!


Bernard

2004-12-01, 2:48 am

If it is using inproc session management. Yes, each wp will manage in on
memory space. Hence, user may experience session lost if request was routed
to the wrong wp. Hence you need a out of process session state management.
http://www.microsoft.com/resources/...dg_net_tezu.asp

--
Regards,
Bernard Cheah
http://www.tryiis.com/
http://support.microsoft.com/
http://www.msmvps.com/bernard/



"Param R." <pr@nospam.com> wrote in message
news:ePTrYyy1EHA.3376@TK2MSFTNGP12.phx.gbl...
> Hi all, I am trying to understand the concept of worker processes in
> application pools. If I have an application pool that has the # of worker
> processes set to 2, that means 2 worker processes will handle requests for
> that application pool. Will each worker process have its own set of

Session,
> Application & Cache data that is isolate from the other. i.e. if the
> Application data were to change in 1 worker process, it will not change in
> the other?
>
> thanks!
>
>



Param R.

2004-12-01, 5:58 pm

What about the Application & Cache objects? Does each WP have a copy of
these too? I dont use Session state.

"Bernard" <qbernard@hotmail.com.discuss> wrote in message
news:%23K4Med11EHA.2292@TK2MSFTNGP15.phx.gbl...
> If it is using inproc session management. Yes, each wp will manage in on
> memory space. Hence, user may experience session lost if request was
> routed
> to the wrong wp. Hence you need a out of process session state management.
> http://www.microsoft.com/resources/...dg_net_tezu.asp
>
> --
> Regards,
> Bernard Cheah
> http://www.tryiis.com/
> http://support.microsoft.com/
> http://www.msmvps.com/bernard/
>
>
>
> "Param R." <pr@nospam.com> wrote in message
> news:ePTrYyy1EHA.3376@TK2MSFTNGP12.phx.gbl...
> Session,
>
>



chanmmn

2004-12-01, 5:58 pm

IIS 6 Request Processing Architecture
Unlike IIS 5, where the main Web server process was often a major choke
point that severely affected performance, IIS 6 has a redesigned request
processing architecture that allows the server to perform better, to reserve
fewer resources, to handle more virtual servers, to detect failures and
resolve them, and much more. This architecture has several key features:

a.. HTTP listener process In IIS 6, the main Web server process is a
kernel- mode driver called Http.sys. It's used for Hypertext Transfer
Protocol (HTTP) parsing and caching. It's responsible for listening for
requests and passing them off to worker processes.

b.. Worker processes Worker processes run in an isolated mode that allows
administrators to group different Web applications. Worker processes are
isolated by application pool and can be allocated on demand, meaning they're
allocated system resources when they become active and don't use system
resources when they're inactive. This architecture improvement, along with
others, ensures that IIS 6 can support many more concurrent processes than
previous versions.

c.. Application pools Groups of Web applications are called application
pools. Application pools are separated from one another by process
boundaries and are serviced by one or more worker processes, which
applications in the pool share. All Web sites and applications on a server
are assigned to an application pool. Settings for application pools allow
you to monitor worker processes and to recover automatically from any
problems that might occur.

d.. Application pool request queue When requests are passed off from
Http.sys to worker processes, the requests are placed in the appropriate
application pool request queue. Each application pool has a separate request
queue. Worker processes assigned to the application pool handle the request
in first in, first out (FIFO) order. You can assign worker processes a
processor affinity so that specific processors handle their workload.

chanmm

"Param R." <pr@nospam.com> wrote in message
news:%23FCZlZ71EHA.3500@TK2MSFTNGP09.phx.gbl...
> What about the Application & Cache objects? Does each WP have a copy of
> these too? I dont use Session state.
>
> "Bernard" <qbernard@hotmail.com.discuss> wrote in message
> news:%23K4Med11EHA.2292@TK2MSFTNGP15.phx.gbl...
>
>



Bernard

2004-12-02, 3:57 am

define application and cache objects ? where does it started ? I mean where
value is assigned.
There's kernel cache as well. so it all depend the 'scope' you are defining
here.

I have doubt about application pool cache. this is referring as ?

--
Regards,
Bernard Cheah
http://www.tryiis.com/
http://support.microsoft.com/
http://www.msmvps.com/bernard/



"Param R." <pr@nospam.com> wrote in message
news:#FCZlZ71EHA.3500@TK2MSFTNGP09.phx.gbl...
> What about the Application & Cache objects? Does each WP have a copy of
> these too? I dont use Session state.
>
> "Bernard" <qbernard@hotmail.com.discuss> wrote in message
> news:%23K4Med11EHA.2292@TK2MSFTNGP15.phx.gbl...
management.[vbcol=seagreen]
http://www.microsoft.com/resources/...dg_net_tezu.asp[vbcol=seagreen]
worker[vbcol=seagreen]
>
>



Param R.

2004-12-02, 6:05 pm

ASP.net's intrinsic Application & Cache objects. They are similar to the
Session object. Only difference is the Application object resides globally
at the particular Application or website level. So lets say I assign a
particular Application-level variable a value. This variable will hold its
value across all sessions or web requests for that particular website. The
Cache object is similar to the Application object and is used as a cache
mechanism for frequently used data in asp.net applications. So my question
is:

Lets say my website is configured under Application Pool #1 which has 2
worker processes. Lets assume a request hits the Application pools queue and
is picked up Worker Process #1. Now lets say that particular page sets an
Application or Cache variable with a value. Now, lets say another web
request comes in and this time it goes to Worker Process #2. Does this
particular thread have the latest updated Application level variable value?

thanks!

"Bernard" <qbernard@hotmail.com.discuss> wrote in message
news:Ob5YTjC2EHA.936@TK2MSFTNGP12.phx.gbl...
> define application and cache objects ? where does it started ? I mean
> where
> value is assigned.
> There's kernel cache as well. so it all depend the 'scope' you are
> defining
> here.
>
> I have doubt about application pool cache. this is referring as ?
>
> --
> Regards,
> Bernard Cheah
> http://www.tryiis.com/
> http://support.microsoft.com/
> http://www.msmvps.com/bernard/
>
>
>
> "Param R." <pr@nospam.com> wrote in message
> news:#FCZlZ71EHA.3500@TK2MSFTNGP09.phx.gbl...
> management.
> http://www.microsoft.com/resources/...dg_net_tezu.asp
> worker
>
>



Bernard

2004-12-03, 2:47 am

Sorry Now I get you. I'm not too sure then. but I would say it will be
the same as session. All those variables get 'input' to the worker process,
when it starts. so each wp will have its own 'application and cache'
objects.

--
Regards,
Bernard Cheah
http://www.tryiis.com/
http://support.microsoft.com/
http://www.msmvps.com/bernard/



"Param R." <pr@nospam.com> wrote in message
news:O0T7HtM2EHA.3640@tk2msftngp13.phx.gbl...
> ASP.net's intrinsic Application & Cache objects. They are similar to the
> Session object. Only difference is the Application object resides globally
> at the particular Application or website level. So lets say I assign a
> particular Application-level variable a value. This variable will hold its
> value across all sessions or web requests for that particular website. The
> Cache object is similar to the Application object and is used as a cache
> mechanism for frequently used data in asp.net applications. So my question
> is:
>
> Lets say my website is configured under Application Pool #1 which has 2
> worker processes. Lets assume a request hits the Application pools queue

and
> is picked up Worker Process #1. Now lets say that particular page sets an
> Application or Cache variable with a value. Now, lets say another web
> request comes in and this time it goes to Worker Process #2. Does this
> particular thread have the latest updated Application level variable

value?
>
> thanks!
>
> "Bernard" <qbernard@hotmail.com.discuss> wrote in message
> news:Ob5YTjC2EHA.936@TK2MSFTNGP12.phx.gbl...
http://www.microsoft.com/resources/...dg_net_tezu.asp[vbcol=seagreen]
requests[vbcol=seagreen]
>
>



Microsoft News

2005-01-27, 5:52 pm

The scheduler assigns HTTP connections to worker processes on a round-robin
basis when the Garden is set to use more than one worker. Classic ASP stores
its Session and Application stuff in memory, therefore when a new worker
process is launched it gets its own copies. ASP.NET has the ability to
specify that state information is stored out of process using the ASP.NET
State Service or SQL. Because of this multiple worker processes are no big
deal for ASP.NET. Classic ASP on the other hand requires that you use an
alternate method to maintain state persistence across processes/servers.
Something like a COM object and a service or cookies and SQL, etc. One thing
that looks kind of promising for this is XML-COM+ (
http://www.freevbcode.com/ShowCode.Asp?ID=2176). I have not had a chance to
try it yet. If you get the opportunity give it a whirl and let us know how
it performs for you.

James Coe.

http://www.market-sense.com/



"Bernard" <qbernard@hotmail.com.discuss> wrote in message
news:eiDrVBP2EHA.1264@TK2MSFTNGP12.phx.gbl...
> Sorry Now I get you. I'm not too sure then. but I would say it will be
> the same as session. All those variables get 'input' to the worker
> process,
> when it starts. so each wp will have its own 'application and cache'
> objects.
>
> --
> Regards,
> Bernard Cheah
> http://www.tryiis.com/
> http://support.microsoft.com/
> http://www.msmvps.com/bernard/
>
>
>
> "Param R." <pr@nospam.com> wrote in message
> news:O0T7HtM2EHA.3640@tk2msftngp13.phx.gbl...
> and
> value?
> http://www.microsoft.com/resources/...dg_net_tezu.asp
> requests
>
>



Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com