473,378 Members | 1,369 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,378 software developers and data experts.

Webserver with 2 processors

I'm having a webserver with 2 processors .I read an article somewhere that
state mamangement on 2 processors in an ASP.NET application is different
with one processor.Is that right?

Thanks
Nov 19 '05 #1
17 1441
Most propably you refer to session state management.

In ASP.NET there are two modes of Session State management. InProc and
OutProc.

In the InProc mode the state is stored in the same memory with the ASP.NET
worker process.
In the OutProc mode the state is stored outside IIS memory so you can use it
in a load balancing environment (like a server farm or similar) - It's stored
either on the state service or in sql server.

In the first mode if the asp.net process restarts or moves to another
processor the state data will be lost and there, there is a difference
between one and multiple processors.

In multiple processor scenarios it is preferable to use the OutProc mode as
the state data is stored outside of processes that can restart/be transfered
and in that sense state managment is different in multiple processor
scenarios.

Tasos

"RayAll" wrote:
I'm having a webserver with 2 processors .I read an article somewhere that
state mamangement on 2 processors in an ASP.NET application is different
with one processor.Is that right?

Thanks

Nov 19 '05 #2
Can you give me an example of which,workerprocess moves to another process?

The problem that I am working with a team who are using session variables
all over palce and they have deployed their application to a webserver with
two processors .I told them that it might be problematic but I don;t have a
practical reason for that.

Thanks
"Ianos" <Ia***@discussions.microsoft.com> wrote in message
news:E1**********************************@microsof t.com...
Most propably you refer to session state management.

In ASP.NET there are two modes of Session State management. InProc and
OutProc.

In the InProc mode the state is stored in the same memory with the ASP.NET
worker process.
In the OutProc mode the state is stored outside IIS memory so you can use
it
in a load balancing environment (like a server farm or similar) - It's
stored
either on the state service or in sql server.

In the first mode if the asp.net process restarts or moves to another
processor the state data will be lost and there, there is a difference
between one and multiple processors.

In multiple processor scenarios it is preferable to use the OutProc mode
as
the state data is stored outside of processes that can restart/be
transfered
and in that sense state managment is different in multiple processor
scenarios.

Tasos

"RayAll" wrote:
I'm having a webserver with 2 processors .I read an article somewhere
that
state mamangement on 2 processors in an ASP.NET application is different
with one processor.Is that right?

Thanks

Nov 19 '05 #3
You'll need to use either State Server or SQL Server state management
if you turn on the web garden feature, since ASP.NET is no longer
tied down to a single processor and/or a single process.

State management has nothing to do with the number of processors
a server has, except for needing out-of-process state management,
but you do need to be careful with your configuration.

If you want all processors to share ASP.NET tasks,
you should turn the webGarden mask, in the processModel to true.

You will also need to set the cpuMask="[bit mask]"
to set the number of CPUs available for ASP.NET processes
(webGarden must be set to true if the bit mask is set)

If you want to use IIS 6.0 application pooling, make sure the
application keeps a connection open so that its requests are
sent back to the appropriate process.

See :
http://msdn.microsoft.com/library/de...olsettings.asp
and see
http://msdn.microsoft.com/library/de...delSection.asp
for the cpu mask settings.


Juan T. Llibre
ASP.NET MVP
http://asp.net.do/foros/
Foros de ASP.NET en Espaņol
Ven, y hablemos de ASP.NET...
======================

"RayAll" <Ra****@microsft.com> wrote in message
news:Of**************@TK2MSFTNGP10.phx.gbl...
I'm having a webserver with 2 processors .I read an article somewhere that
state mamangement on 2 processors in an ASP.NET application is different
with one processor.Is that right?

Thanks

Nov 19 '05 #4
re:
Can you give me an example of which
workerprocess moves to another process?
See my other reply.

It has all the info you need to configure ASP.NET
to work reliably with more than one processor.

Juan T. Llibre
ASP.NET MVP
http://asp.net.do/foros/
Foros de ASP.NET en Espaņol
Ven, y hablemos de ASP.NET...
======================

"RayAll" <Ra****@microsft.com> wrote in message
news:%2****************@tk2msftngp13.phx.gbl... Can you give me an example of which,workerprocess moves to another
process?

The problem that I am working with a team who are using session variables
all over palce and they have deployed their application to a webserver
with two processors .I told them that it might be problematic but I don;t
have a practical reason for that.

Thanks
"Ianos" <Ia***@discussions.microsoft.com> wrote in message
news:E1**********************************@microsof t.com...
Most propably you refer to session state management.

In ASP.NET there are two modes of Session State management. InProc and
OutProc.

In the InProc mode the state is stored in the same memory with the
ASP.NET
worker process.
In the OutProc mode the state is stored outside IIS memory so you can use
it
in a load balancing environment (like a server farm or similar) - It's
stored
either on the state service or in sql server.

In the first mode if the asp.net process restarts or moves to another
processor the state data will be lost and there, there is a difference
between one and multiple processors.

In multiple processor scenarios it is preferable to use the OutProc mode
as
the state data is stored outside of processes that can restart/be
transfered
and in that sense state managment is different in multiple processor
scenarios.

Tasos

"RayAll" wrote:
I'm having a webserver with 2 processors .I read an article somewhere
that
state mamangement on 2 processors in an ASP.NET application is different
with one processor.Is that right?

Thanks


Nov 19 '05 #5
So ,you mean that if their application is set to use both cpus it mean there
should be 2 workerproceesses to take advantage of having 2 processors in the
web server and with such a configuration Inproc seesion management(using
session variables) don't work.Am I right?

Thanks
"Juan T. Llibre" <no***********@nowhere.com> wrote in message
news:O2**************@TK2MSFTNGP09.phx.gbl...
You'll need to use either State Server or SQL Server state management
if you turn on the web garden feature, since ASP.NET is no longer
tied down to a single processor and/or a single process.

State management has nothing to do with the number of processors
a server has, except for needing out-of-process state management,
but you do need to be careful with your configuration.

If you want all processors to share ASP.NET tasks,
you should turn the webGarden mask, in the processModel to true.

You will also need to set the cpuMask="[bit mask]"
to set the number of CPUs available for ASP.NET processes
(webGarden must be set to true if the bit mask is set)

If you want to use IIS 6.0 application pooling, make sure the
application keeps a connection open so that its requests are
sent back to the appropriate process.

See :
http://msdn.microsoft.com/library/de...olsettings.asp
and see
http://msdn.microsoft.com/library/de...delSection.asp
for the cpu mask settings.


Juan T. Llibre
ASP.NET MVP
http://asp.net.do/foros/
Foros de ASP.NET en Espaņol
Ven, y hablemos de ASP.NET...
======================

"RayAll" <Ra****@microsft.com> wrote in message
news:Of**************@TK2MSFTNGP10.phx.gbl...
I'm having a webserver with 2 processors .I read an article somewhere
that state mamangement on 2 processors in an ASP.NET application is
different with one processor.Is that right?

Thanks


Nov 19 '05 #6
Exactly.

Juan T. Llibre
ASP.NET MVP
http://asp.net.do/foros/
Foros de ASP.NET en Espaņol
Ven, y hablemos de ASP.NET...
======================

"Ray5531" <Ra*****@microsoft.com> wrote in message
news:uq*************@TK2MSFTNGP14.phx.gbl...
So, you mean that if their application is set to use both cpus it mean
there should be 2 workerproceesses to take advantage of having 2
processors in the web server and with such a configuration Inproc seesion
management(using session variables) don't work. Am I right?

Thanks "Juan T. Llibre" <no***********@nowhere.com> wrote in message
news:O2**************@TK2MSFTNGP09.phx.gbl...
You'll need to use either State Server or SQL Server state management
if you turn on the web garden feature, since ASP.NET is no longer
tied down to a single processor and/or a single process.

State management has nothing to do with the number of processors
a server has, except for needing out-of-process state management,
but you do need to be careful with your configuration.

If you want all processors to share ASP.NET tasks,
you should turn the webGarden mask, in the processModel to true.

You will also need to set the cpuMask="[bit mask]"
to set the number of CPUs available for ASP.NET processes
(webGarden must be set to true if the bit mask is set)

If you want to use IIS 6.0 application pooling, make sure the
application keeps a connection open so that its requests are
sent back to the appropriate process.

See :
http://msdn.microsoft.com/library/de...olsettings.asp
and see
http://msdn.microsoft.com/library/de...delSection.asp
for the cpu mask settings.


Juan T. Llibre
ASP.NET MVP
http://asp.net.do/foros/
Foros de ASP.NET en Espaņol
Ven, y hablemos de ASP.NET...
======================

"RayAll" <Ra****@microsft.com> wrote in message
news:Of**************@TK2MSFTNGP10.phx.gbl...
I'm having a webserver with 2 processors .I read an article somewhere
that state mamangement on 2 processors in an ASP.NET application is
different with one processor.Is that right?

Thanks



Nov 19 '05 #7
So I'd like to confirm this one as well,thanks .

Whn there is 2 worker processors on a machine which has two processors,one
request from user#1 to the application might be handed over to
workerproccess#1 and the next request from the same user might be handed
over to the Workerprocess#2. Right? I think that's why Inproc session state
is not working in this scenario.
Thanks for your help
"Juan T. Llibre" <no***********@nowhere.com> wrote in message
news:ur**************@TK2MSFTNGP10.phx.gbl...
Exactly.

Juan T. Llibre
ASP.NET MVP
http://asp.net.do/foros/
Foros de ASP.NET en Espaņol
Ven, y hablemos de ASP.NET...
======================

"Ray5531" <Ra*****@microsoft.com> wrote in message
news:uq*************@TK2MSFTNGP14.phx.gbl...
So, you mean that if their application is set to use both cpus it mean
there should be 2 workerproceesses to take advantage of having 2
processors in the web server and with such a configuration Inproc seesion
management(using session variables) don't work. Am I right?

Thanks

"Juan T. Llibre" <no***********@nowhere.com> wrote in message
news:O2**************@TK2MSFTNGP09.phx.gbl...
You'll need to use either State Server or SQL Server state management
if you turn on the web garden feature, since ASP.NET is no longer
tied down to a single processor and/or a single process.

State management has nothing to do with the number of processors
a server has, except for needing out-of-process state management,
but you do need to be careful with your configuration.

If you want all processors to share ASP.NET tasks,
you should turn the webGarden mask, in the processModel to true.

You will also need to set the cpuMask="[bit mask]"
to set the number of CPUs available for ASP.NET processes
(webGarden must be set to true if the bit mask is set)

If you want to use IIS 6.0 application pooling, make sure the
application keeps a connection open so that its requests are
sent back to the appropriate process.

See :
http://msdn.microsoft.com/library/de...olsettings.asp
and see
http://msdn.microsoft.com/library/de...delSection.asp
for the cpu mask settings.


Juan T. Llibre
ASP.NET MVP
http://asp.net.do/foros/
Foros de ASP.NET en Espaņol
Ven, y hablemos de ASP.NET...
======================

"RayAll" <Ra****@microsft.com> wrote in message
news:Of**************@TK2MSFTNGP10.phx.gbl...
I'm having a webserver with 2 processors .I read an article somewhere
that state mamangement on 2 processors in an ASP.NET application is
different with one processor.Is that right?

Thanks



Nov 19 '05 #8
Exactly.

Juan T. Llibre
ASP.NET MVP
http://asp.net.do/foros/
Foros de ASP.NET en Espaņol
Ven, y hablemos de ASP.NET...
======================

"Ray5531" <Ra*****@microsoft.com> wrote in message
news:Ow*************@TK2MSFTNGP14.phx.gbl...
So I'd like to confirm this one as well,thanks .

Whn there is 2 worker processors on a machine which has two processors,one
request from user#1 to the application might be handed over to
workerproccess#1 and the next request from the same user might be handed
over to the Workerprocess#2. Right? I think that's why Inproc session
state is not working in this scenario.
Thanks for your help
"Juan T. Llibre" <no***********@nowhere.com> wrote in message
news:ur**************@TK2MSFTNGP10.phx.gbl...
Exactly.

Juan T. Llibre
ASP.NET MVP
http://asp.net.do/foros/
Foros de ASP.NET en Espaņol
Ven, y hablemos de ASP.NET...
======================

"Ray5531" <Ra*****@microsoft.com> wrote in message
news:uq*************@TK2MSFTNGP14.phx.gbl...
So, you mean that if their application is set to use both cpus it mean
there should be 2 workerproceesses to take advantage of having 2
processors in the web server and with such a configuration Inproc
seesion management(using session variables) don't work. Am I right?

Thanks

"Juan T. Llibre" <no***********@nowhere.com> wrote in message
news:O2**************@TK2MSFTNGP09.phx.gbl...
You'll need to use either State Server or SQL Server state management
if you turn on the web garden feature, since ASP.NET is no longer
tied down to a single processor and/or a single process.

State management has nothing to do with the number of processors
a server has, except for needing out-of-process state management,
but you do need to be careful with your configuration.

If you want all processors to share ASP.NET tasks,
you should turn the webGarden mask, in the processModel to true.

You will also need to set the cpuMask="[bit mask]"
to set the number of CPUs available for ASP.NET processes
(webGarden must be set to true if the bit mask is set)

If you want to use IIS 6.0 application pooling, make sure the
application keeps a connection open so that its requests are
sent back to the appropriate process.

See :
http://msdn.microsoft.com/library/de...olsettings.asp
and see
http://msdn.microsoft.com/library/de...delSection.asp
for the cpu mask settings.


Juan T. Llibre
ASP.NET MVP
http://asp.net.do/foros/
Foros de ASP.NET en Espaņol
Ven, y hablemos de ASP.NET...
======================

"RayAll" <Ra****@microsft.com> wrote in message
news:Of**************@TK2MSFTNGP10.phx.gbl...
> I'm having a webserver with 2 processors .I read an article somewhere
> that state mamangement on 2 processors in an ASP.NET application is
> different with one processor.Is that right?
>
> Thanks



Nov 19 '05 #9
Thanks Jaun for your nice help.

"Juan T. Llibre" <no***********@nowhere.com> wrote in message
news:OT**************@TK2MSFTNGP09.phx.gbl...
Exactly.

Juan T. Llibre
ASP.NET MVP
http://asp.net.do/foros/
Foros de ASP.NET en Espaņol
Ven, y hablemos de ASP.NET...
======================

"Ray5531" <Ra*****@microsoft.com> wrote in message
news:Ow*************@TK2MSFTNGP14.phx.gbl...
So I'd like to confirm this one as well,thanks .

Whn there is 2 worker processors on a machine which has two
processors,one request from user#1 to the application might be handed
over to workerproccess#1 and the next request from the same user might be
handed over to the Workerprocess#2. Right? I think that's why Inproc
session state is not working in this scenario.
Thanks for your help
"Juan T. Llibre" <no***********@nowhere.com> wrote in message
news:ur**************@TK2MSFTNGP10.phx.gbl...
Exactly.

Juan T. Llibre
ASP.NET MVP
http://asp.net.do/foros/
Foros de ASP.NET en Espaņol
Ven, y hablemos de ASP.NET...
======================

"Ray5531" <Ra*****@microsoft.com> wrote in message
news:uq*************@TK2MSFTNGP14.phx.gbl...
So, you mean that if their application is set to use both cpus it mean
there should be 2 workerproceesses to take advantage of having 2
processors in the web server and with such a configuration Inproc
seesion management(using session variables) don't work. Am I right?

Thanks

"Juan T. Llibre" <no***********@nowhere.com> wrote in message
news:O2**************@TK2MSFTNGP09.phx.gbl...
> You'll need to use either State Server or SQL Server state management
> if you turn on the web garden feature, since ASP.NET is no longer
> tied down to a single processor and/or a single process.
>
> State management has nothing to do with the number of processors
> a server has, except for needing out-of-process state management,
> but you do need to be careful with your configuration.
>
> If you want all processors to share ASP.NET tasks,
> you should turn the webGarden mask, in the processModel to true.
>
> You will also need to set the cpuMask="[bit mask]"
> to set the number of CPUs available for ASP.NET processes
> (webGarden must be set to true if the bit mask is set)
>
> If you want to use IIS 6.0 application pooling, make sure the
> application keeps a connection open so that its requests are
> sent back to the appropriate process.
>
> See :
> http://msdn.microsoft.com/library/de...olsettings.asp
> and see
> http://msdn.microsoft.com/library/de...delSection.asp
> for the cpu mask settings.
>
>
>
>
> Juan T. Llibre
> ASP.NET MVP
> http://asp.net.do/foros/
> Foros de ASP.NET en Espaņol
> Ven, y hablemos de ASP.NET...
> ======================
>
> "RayAll" <Ra****@microsft.com> wrote in message
> news:Of**************@TK2MSFTNGP10.phx.gbl...
>> I'm having a webserver with 2 processors .I read an article somewhere
>> that state mamangement on 2 processors in an ASP.NET application is
>> different with one processor.Is that right?
>>
>> Thanks
>
>



Nov 19 '05 #10
oh,I forgot to ask something.

In the article you introduced,it says that if I don't close the
connection,it means that the requests are always sent back to the right
process.I think this dose solve the problem of Inproc session state,but I
have no idea how good or bad is to keep the connection alive and not close
it ,I don't know which connection it is talking about and generally it's
supposed to be closed or left open!!!???
Thanks
"Juan T. Llibre" <no***********@nowhere.com> wrote in message
news:OT**************@TK2MSFTNGP09.phx.gbl...
Exactly.

Juan T. Llibre
ASP.NET MVP
http://asp.net.do/foros/
Foros de ASP.NET en Espaņol
Ven, y hablemos de ASP.NET...
======================

"Ray5531" <Ra*****@microsoft.com> wrote in message
news:Ow*************@TK2MSFTNGP14.phx.gbl...
So I'd like to confirm this one as well,thanks .

Whn there is 2 worker processors on a machine which has two
processors,one request from user#1 to the application might be handed
over to workerproccess#1 and the next request from the same user might be
handed over to the Workerprocess#2. Right? I think that's why Inproc
session state is not working in this scenario.
Thanks for your help
"Juan T. Llibre" <no***********@nowhere.com> wrote in message
news:ur**************@TK2MSFTNGP10.phx.gbl...
Exactly.

Juan T. Llibre
ASP.NET MVP
http://asp.net.do/foros/
Foros de ASP.NET en Espaņol
Ven, y hablemos de ASP.NET...
======================

"Ray5531" <Ra*****@microsoft.com> wrote in message
news:uq*************@TK2MSFTNGP14.phx.gbl...
So, you mean that if their application is set to use both cpus it mean
there should be 2 workerproceesses to take advantage of having 2
processors in the web server and with such a configuration Inproc
seesion management(using session variables) don't work. Am I right?

Thanks

"Juan T. Llibre" <no***********@nowhere.com> wrote in message
news:O2**************@TK2MSFTNGP09.phx.gbl...
> You'll need to use either State Server or SQL Server state management
> if you turn on the web garden feature, since ASP.NET is no longer
> tied down to a single processor and/or a single process.
>
> State management has nothing to do with the number of processors
> a server has, except for needing out-of-process state management,
> but you do need to be careful with your configuration.
>
> If you want all processors to share ASP.NET tasks,
> you should turn the webGarden mask, in the processModel to true.
>
> You will also need to set the cpuMask="[bit mask]"
> to set the number of CPUs available for ASP.NET processes
> (webGarden must be set to true if the bit mask is set)
>
> If you want to use IIS 6.0 application pooling, make sure the
> application keeps a connection open so that its requests are
> sent back to the appropriate process.
>
> See :
> http://msdn.microsoft.com/library/de...olsettings.asp
> and see
> http://msdn.microsoft.com/library/de...delSection.asp
> for the cpu mask settings.
>
>
>
>
> Juan T. Llibre
> ASP.NET MVP
> http://asp.net.do/foros/
> Foros de ASP.NET en Espaņol
> Ven, y hablemos de ASP.NET...
> ======================
>
> "RayAll" <Ra****@microsft.com> wrote in message
> news:Of**************@TK2MSFTNGP10.phx.gbl...
>> I'm having a webserver with 2 processors .I read an article somewhere
>> that state mamangement on 2 processors in an ASP.NET application is
>> different with one processor.Is that right?
>>
>> Thanks
>
>



Nov 19 '05 #11
That only applies when using IIS 6.0 application pooling.

In IIS 5.0 isolation mode, you can have
only as many worker processes as CPUs.

In worker process isolation mode,
multiple CPUs can service a single worker process.

Juan T. Llibre
ASP.NET MVP
http://asp.net.do/foros/
Foros de ASP.NET en Espaņol
Ven, y hablemos de ASP.NET...
======================

"RayAll" <Ra****@microsft.com> wrote in message
news:%2****************@tk2msftngp13.phx.gbl...
oh,I forgot to ask something.

In the article you introduced,it says that if I don't close the
connection,it means that the requests are always sent back to the right
process.I think this dose solve the problem of Inproc session state,but I
have no idea how good or bad is to keep the connection alive and not close
it ,I don't know which connection it is talking about and generally it's
supposed to be closed or left open!!!???
Thanks
"Juan T. Llibre" <no***********@nowhere.com> wrote in message
news:OT**************@TK2MSFTNGP09.phx.gbl...
Exactly.

Juan T. Llibre
ASP.NET MVP
http://asp.net.do/foros/
Foros de ASP.NET en Espaņol
Ven, y hablemos de ASP.NET...
======================

"Ray5531" <Ra*****@microsoft.com> wrote in message
news:Ow*************@TK2MSFTNGP14.phx.gbl...
So I'd like to confirm this one as well,thanks .

Whn there is 2 worker processors on a machine which has two
processors,one request from user#1 to the application might be handed
over to workerproccess#1 and the next request from the same user might
be handed over to the Workerprocess#2. Right? I think that's why Inproc
session state is not working in this scenario.
Thanks for your help
"Juan T. Llibre" <no***********@nowhere.com> wrote in message
news:ur**************@TK2MSFTNGP10.phx.gbl...
Exactly.

Juan T. Llibre
ASP.NET MVP
http://asp.net.do/foros/
Foros de ASP.NET en Espaņol
Ven, y hablemos de ASP.NET...
======================

"Ray5531" <Ra*****@microsoft.com> wrote in message
news:uq*************@TK2MSFTNGP14.phx.gbl...
> So, you mean that if their application is set to use both cpus it mean
> there should be 2 workerproceesses to take advantage of having 2
> processors in the web server and with such a configuration Inproc
> seesion management(using session variables) don't work. Am I right?
>
> Thanks

> "Juan T. Llibre" <no***********@nowhere.com> wrote in message
> news:O2**************@TK2MSFTNGP09.phx.gbl...
>> You'll need to use either State Server or SQL Server state management
>> if you turn on the web garden feature, since ASP.NET is no longer
>> tied down to a single processor and/or a single process.
>>
>> State management has nothing to do with the number of processors
>> a server has, except for needing out-of-process state management,
>> but you do need to be careful with your configuration.
>>
>> If you want all processors to share ASP.NET tasks,
>> you should turn the webGarden mask, in the processModel to true.
>>
>> You will also need to set the cpuMask="[bit mask]"
>> to set the number of CPUs available for ASP.NET processes
>> (webGarden must be set to true if the bit mask is set)
>>
>> If you want to use IIS 6.0 application pooling, make sure the
>> application keeps a connection open so that its requests are
>> sent back to the appropriate process.
>>
>> See :
>> http://msdn.microsoft.com/library/de...olsettings.asp
>> and see
>> http://msdn.microsoft.com/library/de...delSection.asp
>> for the cpu mask settings.
>>
>>
>>
>>
>> Juan T. Llibre
>> ASP.NET MVP
>> http://asp.net.do/foros/
>> Foros de ASP.NET en Espaņol
>> Ven, y hablemos de ASP.NET...
>> ======================
>>
>> "RayAll" <Ra****@microsft.com> wrote in message
>> news:Of**************@TK2MSFTNGP10.phx.gbl...
>>> I'm having a webserver with 2 processors .I read an article
>>> somewhere that state mamangement on 2 processors in an ASP.NET
>>> application is different with one processor.Is that right?
>>>
>>> Thanks
>>
>>
>
>



Nov 19 '05 #12
Here are my two other questions?

A) IIS 6.0
For taking advantage of multiple processors in a single box ,Web Garden is
the only choice?
Dose IIS assign each worker process to one CPU in case of having web
Garden?
Can I have only one workerprocess serviced by multiple processors?
Can I have a webgarden on a single processor?

Thanks

"Juan T. Llibre" <no***********@nowhere.com> wrote in message
news:u6**************@TK2MSFTNGP14.phx.gbl...
That only applies when using IIS 6.0 application pooling.

In IIS 5.0 isolation mode, you can have
only as many worker processes as CPUs.

In worker process isolation mode,
multiple CPUs can service a single worker process.

Juan T. Llibre
ASP.NET MVP
http://asp.net.do/foros/
Foros de ASP.NET en Espaņol
Ven, y hablemos de ASP.NET...
======================

"RayAll" <Ra****@microsft.com> wrote in message
news:%2****************@tk2msftngp13.phx.gbl...
oh,I forgot to ask something.

In the article you introduced,it says that if I don't close the
connection,it means that the requests are always sent back to the right
process.I think this dose solve the problem of Inproc session state,but
I have no idea how good or bad is to keep the connection alive and not
close it ,I don't know which connection it is talking about and generally
it's supposed to be closed or left open!!!???
Thanks
"Juan T. Llibre" <no***********@nowhere.com> wrote in message
news:OT**************@TK2MSFTNGP09.phx.gbl...
Exactly.

Juan T. Llibre
ASP.NET MVP
http://asp.net.do/foros/
Foros de ASP.NET en Espaņol
Ven, y hablemos de ASP.NET...
======================

"Ray5531" <Ra*****@microsoft.com> wrote in message
news:Ow*************@TK2MSFTNGP14.phx.gbl...
So I'd like to confirm this one as well,thanks .

Whn there is 2 worker processors on a machine which has two
processors,one request from user#1 to the application might be handed
over to workerproccess#1 and the next request from the same user might
be handed over to the Workerprocess#2. Right? I think that's why Inproc
session state is not working in this scenario.
Thanks for your help
"Juan T. Llibre" <no***********@nowhere.com> wrote in message
news:ur**************@TK2MSFTNGP10.phx.gbl...
> Exactly.
>
>
>
> Juan T. Llibre
> ASP.NET MVP
> http://asp.net.do/foros/
> Foros de ASP.NET en Espaņol
> Ven, y hablemos de ASP.NET...
> ======================
>
> "Ray5531" <Ra*****@microsoft.com> wrote in message
> news:uq*************@TK2MSFTNGP14.phx.gbl...
>> So, you mean that if their application is set to use both cpus it
>> mean there should be 2 workerproceesses to take advantage of having 2
>> processors in the web server and with such a configuration Inproc
>> seesion management(using session variables) don't work. Am I right?
>>
>> Thanks
>
>> "Juan T. Llibre" <no***********@nowhere.com> wrote in message
>> news:O2**************@TK2MSFTNGP09.phx.gbl...
>>> You'll need to use either State Server or SQL Server state
>>> management
>>> if you turn on the web garden feature, since ASP.NET is no longer
>>> tied down to a single processor and/or a single process.
>>>
>>> State management has nothing to do with the number of processors
>>> a server has, except for needing out-of-process state management,
>>> but you do need to be careful with your configuration.
>>>
>>> If you want all processors to share ASP.NET tasks,
>>> you should turn the webGarden mask, in the processModel to true.
>>>
>>> You will also need to set the cpuMask="[bit mask]"
>>> to set the number of CPUs available for ASP.NET processes
>>> (webGarden must be set to true if the bit mask is set)
>>>
>>> If you want to use IIS 6.0 application pooling, make sure the
>>> application keeps a connection open so that its requests are
>>> sent back to the appropriate process.
>>>
>>> See :
>>> http://msdn.microsoft.com/library/de...olsettings.asp
>>> and see
>>> http://msdn.microsoft.com/library/de...delSection.asp
>>> for the cpu mask settings.
>>>
>>>
>>>
>>>
>>> Juan T. Llibre
>>> ASP.NET MVP
>>> http://asp.net.do/foros/
>>> Foros de ASP.NET en Espaņol
>>> Ven, y hablemos de ASP.NET...
>>> ======================
>>>
>>> "RayAll" <Ra****@microsft.com> wrote in message
>>> news:Of**************@TK2MSFTNGP10.phx.gbl...
>>>> I'm having a webserver with 2 processors .I read an article
>>>> somewhere that state mamangement on 2 processors in an ASP.NET
>>>> application is different with one processor.Is that right?
>>>>
>>>> Thanks
>>>
>>>
>>
>>
>
>



Nov 19 '05 #13
> That only applies when using IIS 6.0 application pooling.

I'm using IIS 6.0 as well.So it means that my application is always under an
application pool ,even if there are 3 workerprocesses defined in that
application pool,there shouldn't be any problem using session states because
any request would be redirecteded to the appropriate workerprocess and
session state is kept.

Thanks
"Juan T. Llibre" <no***********@nowhere.com> wrote in message
news:u6**************@TK2MSFTNGP14.phx.gbl...
That only applies when using IIS 6.0 application pooling.

In IIS 5.0 isolation mode, you can have
only as many worker processes as CPUs.

In worker process isolation mode,
multiple CPUs can service a single worker process.

Juan T. Llibre
ASP.NET MVP
http://asp.net.do/foros/
Foros de ASP.NET en Espaņol
Ven, y hablemos de ASP.NET...
======================

"RayAll" <Ra****@microsft.com> wrote in message
news:%2****************@tk2msftngp13.phx.gbl...
oh,I forgot to ask something.

In the article you introduced,it says that if I don't close the
connection,it means that the requests are always sent back to the right
process.I think this dose solve the problem of Inproc session state,but
I have no idea how good or bad is to keep the connection alive and not
close it ,I don't know which connection it is talking about and generally
it's supposed to be closed or left open!!!???
Thanks
"Juan T. Llibre" <no***********@nowhere.com> wrote in message
news:OT**************@TK2MSFTNGP09.phx.gbl...
Exactly.

Juan T. Llibre
ASP.NET MVP
http://asp.net.do/foros/
Foros de ASP.NET en Espaņol
Ven, y hablemos de ASP.NET...
======================

"Ray5531" <Ra*****@microsoft.com> wrote in message
news:Ow*************@TK2MSFTNGP14.phx.gbl...
So I'd like to confirm this one as well,thanks .

Whn there is 2 worker processors on a machine which has two
processors,one request from user#1 to the application might be handed
over to workerproccess#1 and the next request from the same user might
be handed over to the Workerprocess#2. Right? I think that's why Inproc
session state is not working in this scenario.
Thanks for your help
"Juan T. Llibre" <no***********@nowhere.com> wrote in message
news:ur**************@TK2MSFTNGP10.phx.gbl...
> Exactly.
>
>
>
> Juan T. Llibre
> ASP.NET MVP
> http://asp.net.do/foros/
> Foros de ASP.NET en Espaņol
> Ven, y hablemos de ASP.NET...
> ======================
>
> "Ray5531" <Ra*****@microsoft.com> wrote in message
> news:uq*************@TK2MSFTNGP14.phx.gbl...
>> So, you mean that if their application is set to use both cpus it
>> mean there should be 2 workerproceesses to take advantage of having 2
>> processors in the web server and with such a configuration Inproc
>> seesion management(using session variables) don't work. Am I right?
>>
>> Thanks
>
>> "Juan T. Llibre" <no***********@nowhere.com> wrote in message
>> news:O2**************@TK2MSFTNGP09.phx.gbl...
>>> You'll need to use either State Server or SQL Server state
>>> management
>>> if you turn on the web garden feature, since ASP.NET is no longer
>>> tied down to a single processor and/or a single process.
>>>
>>> State management has nothing to do with the number of processors
>>> a server has, except for needing out-of-process state management,
>>> but you do need to be careful with your configuration.
>>>
>>> If you want all processors to share ASP.NET tasks,
>>> you should turn the webGarden mask, in the processModel to true.
>>>
>>> You will also need to set the cpuMask="[bit mask]"
>>> to set the number of CPUs available for ASP.NET processes
>>> (webGarden must be set to true if the bit mask is set)
>>>
>>> If you want to use IIS 6.0 application pooling, make sure the
>>> application keeps a connection open so that its requests are
>>> sent back to the appropriate process.
>>>
>>> See :
>>> http://msdn.microsoft.com/library/de...olsettings.asp
>>> and see
>>> http://msdn.microsoft.com/library/de...delSection.asp
>>> for the cpu mask settings.
>>>
>>>
>>>
>>>
>>> Juan T. Llibre
>>> ASP.NET MVP
>>> http://asp.net.do/foros/
>>> Foros de ASP.NET en Espaņol
>>> Ven, y hablemos de ASP.NET...
>>> ======================
>>>
>>> "RayAll" <Ra****@microsft.com> wrote in message
>>> news:Of**************@TK2MSFTNGP10.phx.gbl...
>>>> I'm having a webserver with 2 processors .I read an article
>>>> somewhere that state mamangement on 2 processors in an ASP.NET
>>>> application is different with one processor.Is that right?
>>>>
>>>> Thanks
>>>
>>>
>>
>>
>
>



Nov 19 '05 #14
I hate to nitpick [ no, I don't ... ;-) ]
but you will *always* be in an application pool,
regardless of whether you are in an IIS5 AppPool,
or ins an IIS6 AppPool.

The key thing is that that applies *only* to IIS 6 AppPools.

The rest of your premises are correct.

re:
Thanks
You're very much welcome... ;-)

Juan T. Llibre
ASP.NET MVP
http://asp.net.do/foros/
Foros de ASP.NET en Espaņol
Ven, y hablemos de ASP.NET...
======================

"RayAll" <Ra****@microsft.com> wrote in message
news:um**************@tk2msftngp13.phx.gbl...
That only applies when using IIS 6.0 application pooling.


I'm using IIS 6.0 as well.So it means that my application is always under
an application pool ,even if there are 3 workerprocesses defined in that
application pool,there shouldn't be any problem using session states
because any request would be redirecteded to the appropriate workerprocess
and session state is kept.

Thanks

"Juan T. Llibre" <no***********@nowhere.com> wrote in message
news:u6**************@TK2MSFTNGP14.phx.gbl...
That only applies when using IIS 6.0 application pooling.

In IIS 5.0 isolation mode, you can have
only as many worker processes as CPUs.

In worker process isolation mode,
multiple CPUs can service a single worker process.

Juan T. Llibre
ASP.NET MVP
http://asp.net.do/foros/
Foros de ASP.NET en Espaņol
Ven, y hablemos de ASP.NET...
======================

"RayAll" <Ra****@microsft.com> wrote in message
news:%2****************@tk2msftngp13.phx.gbl...
oh,I forgot to ask something.

In the article you introduced,it says that if I don't close the
connection,it means that the requests are always sent back to the right
process.I think this dose solve the problem of Inproc session state,but
I have no idea how good or bad is to keep the connection alive and not
close it ,I don't know which connection it is talking about and
generally it's supposed to be closed or left open!!!???
Thanks
"Juan T. Llibre" <no***********@nowhere.com> wrote in message
news:OT**************@TK2MSFTNGP09.phx.gbl...
Exactly.

Juan T. Llibre
ASP.NET MVP
http://asp.net.do/foros/
Foros de ASP.NET en Espaņol
Ven, y hablemos de ASP.NET...
======================

"Ray5531" <Ra*****@microsoft.com> wrote in message
news:Ow*************@TK2MSFTNGP14.phx.gbl...
> So I'd like to confirm this one as well,thanks .
>
> Whn there is 2 worker processors on a machine which has two
> processors,one request from user#1 to the application might be handed
> over to workerproccess#1 and the next request from the same user might
> be handed over to the Workerprocess#2. Right? I think that's why
> Inproc session state is not working in this scenario.
>
>
> Thanks for your help
> "Juan T. Llibre" <no***********@nowhere.com> wrote in message
> news:ur**************@TK2MSFTNGP10.phx.gbl...
>> Exactly.
>>
>>
>>
>> Juan T. Llibre
>> ASP.NET MVP
>> http://asp.net.do/foros/
>> Foros de ASP.NET en Espaņol
>> Ven, y hablemos de ASP.NET...
>> ======================
>>
>> "Ray5531" <Ra*****@microsoft.com> wrote in message
>> news:uq*************@TK2MSFTNGP14.phx.gbl...
>>> So, you mean that if their application is set to use both cpus it
>>> mean there should be 2 workerproceesses to take advantage of having
>>> 2 processors in the web server and with such a configuration Inproc
>>> seesion management(using session variables) don't work. Am I right?
>>>
>>> Thanks
>>
>>> "Juan T. Llibre" <no***********@nowhere.com> wrote in message
>>> news:O2**************@TK2MSFTNGP09.phx.gbl...
>>>> You'll need to use either State Server or SQL Server state
>>>> management
>>>> if you turn on the web garden feature, since ASP.NET is no longer
>>>> tied down to a single processor and/or a single process.
>>>>
>>>> State management has nothing to do with the number of processors
>>>> a server has, except for needing out-of-process state management,
>>>> but you do need to be careful with your configuration.
>>>>
>>>> If you want all processors to share ASP.NET tasks,
>>>> you should turn the webGarden mask, in the processModel to true.
>>>>
>>>> You will also need to set the cpuMask="[bit mask]"
>>>> to set the number of CPUs available for ASP.NET processes
>>>> (webGarden must be set to true if the bit mask is set)
>>>>
>>>> If you want to use IIS 6.0 application pooling, make sure the
>>>> application keeps a connection open so that its requests are
>>>> sent back to the appropriate process.
>>>>
>>>> See :
>>>> http://msdn.microsoft.com/library/de...olsettings.asp
>>>> and see
>>>> http://msdn.microsoft.com/library/de...delSection.asp
>>>> for the cpu mask settings.
>>>>
>>>>
>>>>
>>>>
>>>> Juan T. Llibre
>>>> ASP.NET MVP
>>>> http://asp.net.do/foros/
>>>> Foros de ASP.NET en Espaņol
>>>> Ven, y hablemos de ASP.NET...
>>>> ======================
>>>>
>>>> "RayAll" <Ra****@microsft.com> wrote in message
>>>> news:Of**************@TK2MSFTNGP10.phx.gbl...
>>>>> I'm having a webserver with 2 processors .I read an article
>>>>> somewhere that state mamangement on 2 processors in an ASP.NET
>>>>> application is different with one processor.Is that right?
>>>>>
>>>>> Thanks
>>>>
>>>>
>>>
>>>
>>
>>
>
>



Nov 19 '05 #15
Juan,

If I have my application pooled by IIS and that application pool uses only
one worker process and webgardening is off ,the article says that :

"Indicates that CPU usage is scheduled by the Windows operating system. The
cpuMask attribute is ignored and only one worker process will run. The
default is false."

Is in this case other CPUs used or workerprocess is bound to one CPU only?

Thanks


"Juan T. Llibre" <no***********@nowhere.com> wrote in message
news:uN**************@TK2MSFTNGP09.phx.gbl...
I hate to nitpick [ no, I don't ... ;-) ]
but you will *always* be in an application pool,
regardless of whether you are in an IIS5 AppPool,
or ins an IIS6 AppPool.

The key thing is that that applies *only* to IIS 6 AppPools.

The rest of your premises are correct.

re:
Thanks


You're very much welcome... ;-)

Juan T. Llibre
ASP.NET MVP
http://asp.net.do/foros/
Foros de ASP.NET en Espaņol
Ven, y hablemos de ASP.NET...
======================

"RayAll" <Ra****@microsft.com> wrote in message
news:um**************@tk2msftngp13.phx.gbl...
That only applies when using IIS 6.0 application pooling.


I'm using IIS 6.0 as well.So it means that my application is always under
an application pool ,even if there are 3 workerprocesses defined in that
application pool,there shouldn't be any problem using session states
because any request would be redirecteded to the appropriate
workerprocess and session state is kept.

Thanks

"Juan T. Llibre" <no***********@nowhere.com> wrote in message
news:u6**************@TK2MSFTNGP14.phx.gbl...
That only applies when using IIS 6.0 application pooling.

In IIS 5.0 isolation mode, you can have
only as many worker processes as CPUs.

In worker process isolation mode,
multiple CPUs can service a single worker process.

Juan T. Llibre
ASP.NET MVP
http://asp.net.do/foros/
Foros de ASP.NET en Espaņol
Ven, y hablemos de ASP.NET...
======================

"RayAll" <Ra****@microsft.com> wrote in message
news:%2****************@tk2msftngp13.phx.gbl...
oh,I forgot to ask something.

In the article you introduced,it says that if I don't close the
connection,it means that the requests are always sent back to the right
process.I think this dose solve the problem of Inproc session
state,but I have no idea how good or bad is to keep the connection
alive and not close it ,I don't know which connection it is talking
about and generally it's supposed to be closed or left open!!!???
Thanks
"Juan T. Llibre" <no***********@nowhere.com> wrote in message
news:OT**************@TK2MSFTNGP09.phx.gbl...
> Exactly.
>
>
>
> Juan T. Llibre
> ASP.NET MVP
> http://asp.net.do/foros/
> Foros de ASP.NET en Espaņol
> Ven, y hablemos de ASP.NET...
> ======================
>
> "Ray5531" <Ra*****@microsoft.com> wrote in message
> news:Ow*************@TK2MSFTNGP14.phx.gbl...
>> So I'd like to confirm this one as well,thanks .
>>
>> Whn there is 2 worker processors on a machine which has two
>> processors,one request from user#1 to the application might be handed
>> over to workerproccess#1 and the next request from the same user
>> might be handed over to the Workerprocess#2. Right? I think that's
>> why Inproc session state is not working in this scenario.
>>
>>
>> Thanks for your help
>> "Juan T. Llibre" <no***********@nowhere.com> wrote in message
>> news:ur**************@TK2MSFTNGP10.phx.gbl...
>>> Exactly.
>>>
>>>
>>>
>>> Juan T. Llibre
>>> ASP.NET MVP
>>> http://asp.net.do/foros/
>>> Foros de ASP.NET en Espaņol
>>> Ven, y hablemos de ASP.NET...
>>> ======================
>>>
>>> "Ray5531" <Ra*****@microsoft.com> wrote in message
>>> news:uq*************@TK2MSFTNGP14.phx.gbl...
>>>> So, you mean that if their application is set to use both cpus it
>>>> mean there should be 2 workerproceesses to take advantage of having
>>>> 2 processors in the web server and with such a configuration Inproc
>>>> seesion management(using session variables) don't work. Am I right?
>>>>
>>>> Thanks
>>>
>>>> "Juan T. Llibre" <no***********@nowhere.com> wrote in message
>>>> news:O2**************@TK2MSFTNGP09.phx.gbl...
>>>>> You'll need to use either State Server or SQL Server state
>>>>> management
>>>>> if you turn on the web garden feature, since ASP.NET is no longer
>>>>> tied down to a single processor and/or a single process.
>>>>>
>>>>> State management has nothing to do with the number of processors
>>>>> a server has, except for needing out-of-process state management,
>>>>> but you do need to be careful with your configuration.
>>>>>
>>>>> If you want all processors to share ASP.NET tasks,
>>>>> you should turn the webGarden mask, in the processModel to true.
>>>>>
>>>>> You will also need to set the cpuMask="[bit mask]"
>>>>> to set the number of CPUs available for ASP.NET processes
>>>>> (webGarden must be set to true if the bit mask is set)
>>>>>
>>>>> If you want to use IIS 6.0 application pooling, make sure the
>>>>> application keeps a connection open so that its requests are
>>>>> sent back to the appropriate process.
>>>>>
>>>>> See :
>>>>> http://msdn.microsoft.com/library/de...olsettings.asp
>>>>> and see
>>>>> http://msdn.microsoft.com/library/de...delSection.asp
>>>>> for the cpu mask settings.
>>>>>
>>>>>
>>>>>
>>>>>
>>>>> Juan T. Llibre
>>>>> ASP.NET MVP
>>>>> http://asp.net.do/foros/
>>>>> Foros de ASP.NET en Espaņol
>>>>> Ven, y hablemos de ASP.NET...
>>>>> ======================
>>>>>
>>>>> "RayAll" <Ra****@microsft.com> wrote in message
>>>>> news:Of**************@TK2MSFTNGP10.phx.gbl...
>>>>>> I'm having a webserver with 2 processors .I read an article
>>>>>> somewhere that state mamangement on 2 processors in an ASP.NET
>>>>>> application is different with one processor.Is that right?
>>>>>>
>>>>>> Thanks
>>>>>
>>>>>
>>>>
>>>>
>>>
>>>
>>
>>
>
>



Nov 19 '05 #16
The cpuMask setting, if set to higher than one,
only works when there's more than one processor.

Webgardening must be enabled if cpuMask is to be used.

If you leave it at the default setting, only one CPU will be used.


Juan T. Llibre
ASP.NET MVP
http://asp.net.do/foros/
Foros de ASP.NET en Espaņol
Ven, y hablemos de ASP.NET...
======================

"RayAll" <Ra****@microsft.com> wrote in message
news:eq**************@tk2msftngp13.phx.gbl...
Juan,

If I have my application pooled by IIS and that application pool uses only
one worker process and webgardening is off, the article says that :

"Indicates that CPU usage is scheduled by the Windows operating system.
The cpuMask attribute is ignored and only one worker process will run. The
default is false."

Is in this case other CPUs used or workerprocess is bound to one CPU only?

Thanks "Juan T. Llibre" <no***********@nowhere.com> wrote in message
news:uN**************@TK2MSFTNGP09.phx.gbl...
I hate to nitpick [ no, I don't ... ;-) ]
but you will *always* be in an application pool,
regardless of whether you are in an IIS5 AppPool,
or ins an IIS6 AppPool.

The key thing is that that applies *only* to IIS 6 AppPools.

The rest of your premises are correct.

re:
Thanks


You're very much welcome... ;-)

Juan T. Llibre
ASP.NET MVP
http://asp.net.do/foros/
Foros de ASP.NET en Espaņol
Ven, y hablemos de ASP.NET...
======================

"RayAll" <Ra****@microsft.com> wrote in message
news:um**************@tk2msftngp13.phx.gbl...
That only applies when using IIS 6.0 application pooling.

I'm using IIS 6.0 as well.So it means that my application is always
under an application pool ,even if there are 3 workerprocesses defined
in that application pool,there shouldn't be any problem using session
states because any request would be redirecteded to the appropriate
workerprocess and session state is kept.

Thanks

"Juan T. Llibre" <no***********@nowhere.com> wrote in message
news:u6**************@TK2MSFTNGP14.phx.gbl...
That only applies when using IIS 6.0 application pooling.

In IIS 5.0 isolation mode, you can have
only as many worker processes as CPUs.

In worker process isolation mode,
multiple CPUs can service a single worker process.

Juan T. Llibre
ASP.NET MVP
http://asp.net.do/foros/
Foros de ASP.NET en Espaņol
Ven, y hablemos de ASP.NET...
======================

"RayAll" <Ra****@microsft.com> wrote in message
news:%2****************@tk2msftngp13.phx.gbl...
> oh,I forgot to ask something.
>
> In the article you introduced,it says that if I don't close the
> connection,it means that the requests are always sent back to the
> right process.I think this dose solve the problem of Inproc session
> state,but I have no idea how good or bad is to keep the connection
> alive and not close it ,I don't know which connection it is talking
> about and generally it's supposed to be closed or left open!!!???
>
>
> Thanks
> "Juan T. Llibre" <no***********@nowhere.com> wrote in message
> news:OT**************@TK2MSFTNGP09.phx.gbl...
>> Exactly.
>>
>>
>>
>> Juan T. Llibre
>> ASP.NET MVP
>> http://asp.net.do/foros/
>> Foros de ASP.NET en Espaņol
>> Ven, y hablemos de ASP.NET...
>> ======================
>>
>> "Ray5531" <Ra*****@microsoft.com> wrote in message
>> news:Ow*************@TK2MSFTNGP14.phx.gbl...
>>> So I'd like to confirm this one as well,thanks .
>>>
>>> Whn there is 2 worker processors on a machine which has two
>>> processors,one request from user#1 to the application might be
>>> handed over to workerproccess#1 and the next request from the same
>>> user might be handed over to the Workerprocess#2. Right? I think
>>> that's why Inproc session state is not working in this scenario.
>>>
>>>
>>> Thanks for your help
>>> "Juan T. Llibre" <no***********@nowhere.com> wrote in message
>>> news:ur**************@TK2MSFTNGP10.phx.gbl...
>>>> Exactly.
>>>>
>>>>
>>>>
>>>> Juan T. Llibre
>>>> ASP.NET MVP
>>>> http://asp.net.do/foros/
>>>> Foros de ASP.NET en Espaņol
>>>> Ven, y hablemos de ASP.NET...
>>>> ======================
>>>>
>>>> "Ray5531" <Ra*****@microsoft.com> wrote in message
>>>> news:uq*************@TK2MSFTNGP14.phx.gbl...
>>>>> So, you mean that if their application is set to use both cpus it
>>>>> mean there should be 2 workerproceesses to take advantage of
>>>>> having 2 processors in the web server and with such a
>>>>> configuration Inproc seesion management(using session variables)
>>>>> don't work. Am I right?
>>>>>
>>>>> Thanks
>>>>
>>>>> "Juan T. Llibre" <no***********@nowhere.com> wrote in message
>>>>> news:O2**************@TK2MSFTNGP09.phx.gbl...
>>>>>> You'll need to use either State Server or SQL Server state
>>>>>> management
>>>>>> if you turn on the web garden feature, since ASP.NET is no longer
>>>>>> tied down to a single processor and/or a single process.
>>>>>>
>>>>>> State management has nothing to do with the number of processors
>>>>>> a server has, except for needing out-of-process state management,
>>>>>> but you do need to be careful with your configuration.
>>>>>>
>>>>>> If you want all processors to share ASP.NET tasks,
>>>>>> you should turn the webGarden mask, in the processModel to true.
>>>>>>
>>>>>> You will also need to set the cpuMask="[bit mask]"
>>>>>> to set the number of CPUs available for ASP.NET processes
>>>>>> (webGarden must be set to true if the bit mask is set)
>>>>>>
>>>>>> If you want to use IIS 6.0 application pooling, make sure the
>>>>>> application keeps a connection open so that its requests are
>>>>>> sent back to the appropriate process.
>>>>>>
>>>>>> See :
>>>>>> http://msdn.microsoft.com/library/de...olsettings.asp
>>>>>> and see
>>>>>> http://msdn.microsoft.com/library/de...delSection.asp
>>>>>> for the cpu mask settings.
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>> Juan T. Llibre
>>>>>> ASP.NET MVP
>>>>>> http://asp.net.do/foros/
>>>>>> Foros de ASP.NET en Espaņol
>>>>>> Ven, y hablemos de ASP.NET...
>>>>>> ======================
>>>>>>
>>>>>> "RayAll" <Ra****@microsft.com> wrote in message
>>>>>> news:Of**************@TK2MSFTNGP10.phx.gbl...
>>>>>>> I'm having a webserver with 2 processors .I read an article
>>>>>>> somewhere that state mamangement on 2 processors in an ASP.NET
>>>>>>> application is different with one processor.Is that right?
>>>>>>>
>>>>>>> Thanks
>>>>>>
>>>>>>
>>>>>
>>>>>
>>>>
>>>>
>>>
>>>
>>
>>
>
>



Nov 19 '05 #17
Jaun,

Can you do me a favour ??
I a going to submit this post in a completely different thread with a new ID
called "RezaA".Can u re-write your answer for that? I so appreciate it.I
will get a lunch as I bet with my firend on what I claim;-)

Thanks
"Juan T. Llibre" <no***********@nowhere.com> wrote in message
news:uA*************@TK2MSFTNGP15.phx.gbl...
The cpuMask setting, if set to higher than one,
only works when there's more than one processor.

Webgardening must be enabled if cpuMask is to be used.

If you leave it at the default setting, only one CPU will be used.


Juan T. Llibre
ASP.NET MVP
http://asp.net.do/foros/
Foros de ASP.NET en Espaņol
Ven, y hablemos de ASP.NET...
======================

"RayAll" <Ra****@microsft.com> wrote in message
news:eq**************@tk2msftngp13.phx.gbl...
Juan,

If I have my application pooled by IIS and that application pool uses
only one worker process and webgardening is off, the article says that :

"Indicates that CPU usage is scheduled by the Windows operating system.
The cpuMask attribute is ignored and only one worker process will run.
The default is false."

Is in this case other CPUs used or workerprocess is bound to one CPU
only?

Thanks

"Juan T. Llibre" <no***********@nowhere.com> wrote in message
news:uN**************@TK2MSFTNGP09.phx.gbl...
I hate to nitpick [ no, I don't ... ;-) ]
but you will *always* be in an application pool,
regardless of whether you are in an IIS5 AppPool,
or ins an IIS6 AppPool.

The key thing is that that applies *only* to IIS 6 AppPools.

The rest of your premises are correct.

re:
Thanks

You're very much welcome... ;-)

Juan T. Llibre
ASP.NET MVP
http://asp.net.do/foros/
Foros de ASP.NET en Espaņol
Ven, y hablemos de ASP.NET...
======================

"RayAll" <Ra****@microsft.com> wrote in message
news:um**************@tk2msftngp13.phx.gbl...
> That only applies when using IIS 6.0 application pooling.

I'm using IIS 6.0 as well.So it means that my application is always
under an application pool ,even if there are 3 workerprocesses defined
in that application pool,there shouldn't be any problem using session
states because any request would be redirecteded to the appropriate
workerprocess and session state is kept.

Thanks

"Juan T. Llibre" <no***********@nowhere.com> wrote in message
news:u6**************@TK2MSFTNGP14.phx.gbl...
> That only applies when using IIS 6.0 application pooling.
>
> In IIS 5.0 isolation mode, you can have
> only as many worker processes as CPUs.
>
> In worker process isolation mode,
> multiple CPUs can service a single worker process.
>
>
>
> Juan T. Llibre
> ASP.NET MVP
> http://asp.net.do/foros/
> Foros de ASP.NET en Espaņol
> Ven, y hablemos de ASP.NET...
> ======================
>
> "RayAll" <Ra****@microsft.com> wrote in message
> news:%2****************@tk2msftngp13.phx.gbl...
>> oh,I forgot to ask something.
>>
>> In the article you introduced,it says that if I don't close the
>> connection,it means that the requests are always sent back to the
>> right process.I think this dose solve the problem of Inproc session
>> state,but I have no idea how good or bad is to keep the connection
>> alive and not close it ,I don't know which connection it is talking
>> about and generally it's supposed to be closed or left open!!!???
>>
>>
>> Thanks
>> "Juan T. Llibre" <no***********@nowhere.com> wrote in message
>> news:OT**************@TK2MSFTNGP09.phx.gbl...
>>> Exactly.
>>>
>>>
>>>
>>> Juan T. Llibre
>>> ASP.NET MVP
>>> http://asp.net.do/foros/
>>> Foros de ASP.NET en Espaņol
>>> Ven, y hablemos de ASP.NET...
>>> ======================
>>>
>>> "Ray5531" <Ra*****@microsoft.com> wrote in message
>>> news:Ow*************@TK2MSFTNGP14.phx.gbl...
>>>> So I'd like to confirm this one as well,thanks .
>>>>
>>>> Whn there is 2 worker processors on a machine which has two
>>>> processors,one request from user#1 to the application might be
>>>> handed over to workerproccess#1 and the next request from the same
>>>> user might be handed over to the Workerprocess#2. Right? I think
>>>> that's why Inproc session state is not working in this scenario.
>>>>
>>>>
>>>> Thanks for your help
>>>> "Juan T. Llibre" <no***********@nowhere.com> wrote in message
>>>> news:ur**************@TK2MSFTNGP10.phx.gbl...
>>>>> Exactly.
>>>>>
>>>>>
>>>>>
>>>>> Juan T. Llibre
>>>>> ASP.NET MVP
>>>>> http://asp.net.do/foros/
>>>>> Foros de ASP.NET en Espaņol
>>>>> Ven, y hablemos de ASP.NET...
>>>>> ======================
>>>>>
>>>>> "Ray5531" <Ra*****@microsoft.com> wrote in message
>>>>> news:uq*************@TK2MSFTNGP14.phx.gbl...
>>>>>> So, you mean that if their application is set to use both cpus it
>>>>>> mean there should be 2 workerproceesses to take advantage of
>>>>>> having 2 processors in the web server and with such a
>>>>>> configuration Inproc seesion management(using session variables)
>>>>>> don't work. Am I right?
>>>>>>
>>>>>> Thanks
>>>>>
>>>>>> "Juan T. Llibre" <no***********@nowhere.com> wrote in message
>>>>>> news:O2**************@TK2MSFTNGP09.phx.gbl...
>>>>>>> You'll need to use either State Server or SQL Server state
>>>>>>> management
>>>>>>> if you turn on the web garden feature, since ASP.NET is no
>>>>>>> longer
>>>>>>> tied down to a single processor and/or a single process.
>>>>>>>
>>>>>>> State management has nothing to do with the number of processors
>>>>>>> a server has, except for needing out-of-process state
>>>>>>> management,
>>>>>>> but you do need to be careful with your configuration.
>>>>>>>
>>>>>>> If you want all processors to share ASP.NET tasks,
>>>>>>> you should turn the webGarden mask, in the processModel to true.
>>>>>>>
>>>>>>> You will also need to set the cpuMask="[bit mask]"
>>>>>>> to set the number of CPUs available for ASP.NET processes
>>>>>>> (webGarden must be set to true if the bit mask is set)
>>>>>>>
>>>>>>> If you want to use IIS 6.0 application pooling, make sure the
>>>>>>> application keeps a connection open so that its requests are
>>>>>>> sent back to the appropriate process.
>>>>>>>
>>>>>>> See :
>>>>>>> http://msdn.microsoft.com/library/de...olsettings.asp
>>>>>>> and see
>>>>>>> http://msdn.microsoft.com/library/de...delSection.asp
>>>>>>> for the cpu mask settings.
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>> Juan T. Llibre
>>>>>>> ASP.NET MVP
>>>>>>> http://asp.net.do/foros/
>>>>>>> Foros de ASP.NET en Espaņol
>>>>>>> Ven, y hablemos de ASP.NET...
>>>>>>> ======================
>>>>>>>
>>>>>>> "RayAll" <Ra****@microsft.com> wrote in message
>>>>>>> news:Of**************@TK2MSFTNGP10.phx.gbl...
>>>>>>>> I'm having a webserver with 2 processors .I read an article
>>>>>>>> somewhere that state mamangement on 2 processors in an ASP.NET
>>>>>>>> application is different with one processor.Is that right?
>>>>>>>>
>>>>>>>> Thanks
>>>>>>>
>>>>>>>
>>>>>>
>>>>>>
>>>>>
>>>>>
>>>>
>>>>
>>>
>>>
>>
>>
>
>



Nov 19 '05 #18

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

Similar topics

2
by: JohnFol | last post by:
I know Windows / SQL etc can utilise multiple processors. In the good old days of coding, you simply wrote the .EXE and Windows would run it on a single processor (or a given processor for...
2
by: nagaraj_hayyal | last post by:
Hi All, thanks for reading this post. just wanted to know about the ratio of threads and processors. i am working on c++ on AIX5.2 platform. my c++ program are multithreaded programs. ...
3
by: nrhayyal | last post by:
Hi All, thanks for reading this post. just wanted to know about the ratio of threads and processors. i am working on c++ on AIX5.2 platform. my c++ program are multithreaded programs. In a...
2
by: mairhtin o'feannag | last post by:
Hello, I am a bit confused as to how this all works with respect to number of processors on a Linux machine. The situation I am encountering is this : because of Hyperthreading technology, the...
9
by: db2inst2 | last post by:
Hi all, I have DB28.2 running on win2003 system which has 8 Processors with HT its 16 How do i make DB2 more use of all the processors? Right now i am doing an import and task manager shows...
12
by: Ann Marinas | last post by:
Hi all, I would like to ask for some help regarding separating the asp.net webserver and the sql server. I have created an asp.net application for a certain company. Initially, we installed...
2
by: webwarrior | last post by:
Hi, Is there a reason why we have to pay more for licensing for a different kind of processor? Why are we not charged for the Hyperthreading on some processors also. If Oracle is really...
17
by: Flic | last post by:
Is this possible? I know about a bit about ODBC and found how to import an ODBC database stored on the computer, however I am after accessing an SQL database stored on a webserver. I'd like to...
11
by: John | last post by:
Is there a way to find the number of processors on a machine (on linux/ windows/macos/cygwin) using python code (using the same code/cross platform code)?
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
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,...
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: 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$) { } ...
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
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
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...

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.