带2个处理器的Web服务器 [英] Webserver with 2 processors

查看:57
本文介绍了带2个处理器的Web服务器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在拥有一个带有2个处理器的网络服务器。我在某个地方阅读了一篇文章

ASP.NET应用程序中2个处理器上的状态管理不同

with一个处理器。是吗?


谢谢

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

推荐答案

最有可能的是你指的是会话状态管理。


在ASP.NET中,有两种会话状态管理模式。 InProc和

OutProc。


在InProc模式下,状态与ASP.NET

worker存储在同一个内存中进程。

在OutProc模式下,状态存储在IIS内存之外,因此您可以在负载平衡环境(如服务器场或类似环境)中使用它来获取
- 它'在状态服务或sql server中存储




在第一种模式下,如果asp.net进程重新启动或移动到另一个

处理器状态数据将丢失,并且在一个和多个处理器之间存在差异



在多处理器方案中最好使用OutProc模式作为

状态数据存储在可以重启/转移的进程之外

并且在这种意义上状态管理在多处理器中是不同的

场景。


Tasos


" RayAll"写道:
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:
我正在拥有一个带有2个处理器的网络服务器。我在某个地方读到一篇文章说明在ASP.NET应用程序中2个处理器上的mamangement是不同的/>有一个处理器。是吗?

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



你能给我一个例子吗? ,workerprocess移动到另一个进程?


我正在与一个正在使用会话变量的团队合作的问题

遍布全部并且他们已经部署了他们的应用程序到一个网络服务器上面有两个处理器的
。我告诉他们这可能有问题但是我没有这个实际的原因。
谢谢

" Ianos" < IA *** @ discussions.microsoft.com>在消息中写道

新闻:E1 ********************************** @ microsof t.com ...
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...
最常见的是你指的是会话状态管理。

在ASP.NET中有两种会话状态管理模式。 InProc和
OutProc。

在InProc模式下,状态与ASP.NET
工作进程存储在同一个内存中。
在OutProc模式下状态存储在IIS内存之外,因此您可以在负载平衡环境(如服务器场或类似环境)中使用
它 - 存储在状态服务中
或者在sql server中。

在第一种模式下,如果asp.net进程重新启动或移动到另一个处理器,状态数据将会丢失,并且存在差异
在一个和多个处理器之间。

在多处理器场景中,最好使用OutProc模式
状态数据存储在可以重启/是并且在这种意义上,状态管理在多处理器场景中是不同的。

Tasos

RayAll写道:
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:
我正在拥有一个带有2个处理器的网络服务器。我在某处阅读了一篇文章

在ASP.NET应用程序中对2个处理器进行了mamangement与一个处理器是不同的。是吗?

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



你需要使用状态服务器或SQL Server状态管理

如果你打开网络花园功能,因为ASP.NET不再是
绑定到单个处理器和/或单个进程。


状态管理与处理器的数量无关

a服务器,除了需要外-process state management,

但是你需要小心你的配置。


如果你想让所有处理器共享ASP.NET任务,那么/>
你应该把processModel中的webGarden掩码转为true。


你还需要设置cpuMask =" [bit mask]

设置可用于ASP.NET进程的CPU数量

(如果设置了位掩码,webGarden必须设置为true)


如果要使用IIS 6.0应用程序池,请确保

应用程序保持连接打开,以便将其请求发送回相应的
过程。


请参阅:
http://msdn.microsoft.com/library/de...olsettings.asp

并看到
http://msdn.microsoft.com/library/de...delSection.asp

用于cpu掩码设置。



Juan T. Llibre

ASP.NET MVP
h ttp://asp.net.do/foros/

Foros de ASP.NET en Espa?ol

Ven,y hablemos de ASP.NET。 ..

======================


" RayAll" <太阳神**** @ microsft.com>在消息中写道

新闻:************** @ TK2MSFTNGP10.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...
我有一个带有2个处理器的网络服务器。我在某个地方读到了一篇文章,说明ASP.NET应用程序中2个处理器上的mamangement与一个处理器是不同的。这是对的吗?

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



这篇关于带2个处理器的Web服务器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆