什么是inproc和outproc [英] what is inproc and outproc

查看:390
本文介绍了什么是inproc和outproc的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

亲爱的朋友们,



我不太详细。但我们在asp / asp.net中使用这些模式来保持状态持久性。

什么是inproc和outproc



问候,

AP

解决方案

InProc OutProc 与asp.net会话管理有关。

会话可以通过3种不同的方式进行维护,如下所示。



InProc - 会话保存为Web服务器中的活动对象(aspnet_wp.exe)。

在web.config中使用cookieless配置将sessionIdmunge到URL上(也解决了cookie /域/路径RFC问题!)



StateServer - 会话序列化并在单独的进程(aspnet_state.exe)中存储在内存中。 State Server可以在另一台机器上运行



SQLServer - 会话序列化并存储在SQL服务器中



请参考:

进程内,out-proc和sql server。 [ ^ ]



详细说明: InProc和OutProc [ ^ ]


这使您可以决定需要居住的会话。



InProc - 会话将驻留在部署Web应用程序的同一计算机内存上



StateServer - 会话将驻留在其他计算机内存中。你可以指定PC的IP地址



SQLServer - 会话将存储SQL服务器表





Inproc会话模式,



1.会话数据存储在当前应用程序域中,因此消耗服务器机器的内存。



2.如果服务器重新启动,则所有会话数据都将丢失。 br />


Out-proc模式(通常是状态服务器),



1.会话数据存储在状态服务器上,因此不会消耗Web服务器内存。



2.如果Web服务器重启,会话数据将被保留。 />


考虑到以上几点,使用会话模式是考虑加载的选择,没有。用户,性能要求等。



的小型网站,数量有限。在用户中,进程内模式最适合。



适用于大型应用程序。用户,应使用state-server / sql server会话模式。


Dear Friends,

I am not aware in detail. But we use these modes in asp/asp.net for state persistence.
what is inproc and outproc

Regards,
AP

解决方案

InProc and OutProc is related to asp.net session management.
Session can be maintained in 3 different ways as seen below.

InProc - session kept as live objects in web server (aspnet_wp.exe).
Use "cookieless" configuration in web.config to "munge" the sessionId onto the URL (solves cookie/domain/path RFC problems too!)

StateServer - session serialized and stored in memory in a separate process (aspnet_state.exe). State Server can run on another machine

SQLServer - session serialized and stored in SQL server

Please refer:
in-proc,out-proc and sql server.[^]

Detailed description: InProc and OutProc[^]


This enables you to decide where you need sessions to be reside.

InProc - Session will reside on same computer memory where web application deployed

StateServer - Session will reside on other computer memory. you can specify the IP address of the PC

SQLServer - Session will be stored SQL server tables


Hi,

Inproc session mode,

1. session data is stored in current application domain and so consumes memory of server machine.

2. if server restarts, all session data is lost.

Out-proc mode (which is generally state server),

1. session data is stored on state server and so web servers memory is not consumed.

2. in case of web server restart, session data is preserved.

considering above points, use of session mode is the choice to be made considering load, no. of users, performence requirment etc.

for small web site with limited no. of users, in-proc mode is best suited.

for large applications with huge no. of users, state-server/sql server session mode should be used.


这篇关于什么是inproc和outproc的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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