DCOM用的,参考www.microsoft.comtechnet/iis关于iis5配置的文章.

iis|参考

Tip 9: Out-of-Process Execution Trades off Performance for Reliability
Both ASP and MTS/COM+ have configuration options that allow you to trade off reliability for performance. You should understand these trade-offs when building and deploying your application.

ASP Options
ASP Applications can be configured to run in one of three ways. With IIS 5.0, the terminology “isolation level?has been introduced to describe these options. The three isolation level values are Low, Medium, and High:

Low Isolation. This is supported in all versions of IIS and is the fastest. It runs ASP in Inetinfo.exe, which is the primary IIS process. If the ASP application crashes, so does IIS. (To restart IIS under IIS 4.0, Webmasters would monitor the site using tools such as InetMon, and fire off batch files to restart the server if it failed. IIS 5.0 introduces reliable restart, which automatically restarts a failed server.)
Medium Isolation. IIS 5.0 introduces this new level, which is referred to as out-of-process, since ASP runs outside of the IIS process. In Medium isolation, all ASP applications configured to run as Medium share a single process space. This reduces the number of processes required to run multiple out-of-process ASP applications on one box. Medium is the default isolation level in IIS 5.0.
High Isolation. Supported in IIS 4.0 and IIS 5.0, High isolation is also out-of-process. If ASP crashes, the Web server doesn’t. The ASP application is automatically restarted on the next ASP request. With High isolation, each ASP application that is configured to run as High runs in its own process space. This protects ASP applications from each other. Its drawback is that it requires a separate process for each ASP application. This can add up to a lot of overhead when dozens of applications need to be hosted on one box.
Which option is the best? In IIS 4.0, there was a fairly steep performance penalty for running out-of-process. In IIS 5.0, a lot of work was done to minimize the cost of running ASP applications out-of-process. In fact, in most tests, ASP out-of-process applications in IIS 5.0 run faster than in-process applications in IIS 4.0. Regardless, in-process (Low isolation level) still produces the best performance on both platforms. However, you won’t see much benefit to the Low isolation level if you have a relatively low hit rate or low maximum throughput. Therefore, you should not feel the need to reach for the Low isolation level until you need hundreds or thousands of pages per second per Web server. As always, test with multiple configurations and determine which trade-offs you are willing to make.

Note: When you run ASP applications out-of-process (Medium or High isolation), they run in MTS on NT4 and COM+ on Windows 2000. That is, on NT4 they run in Mtx.exe, and on Windows 2000, they run in DllHost.exe. You can see these processes running in Task Manager. You can also see how IIS configures MTS Packages or COM+ Applications for out-of-process ASP applications.

COM Options
COM components also have three configuration options, though not completely analogous to the ASP options. COM components can be:”unconfigured,?configured as Library Applications, or configured as Server Applications. Unconfigured means that the component is not registered with COM+. The component will run in the caller’s process space, that is, they are “in-process.?Library Applications are also in-process, but benefit from COM+’s services, including security, transactions, and context support. Server Applications are configured to run in their own process space.

You may see a slight benefit of unconfigured components over Library Applications. You’re likely to see a large performance benefit of Library Applications over Server Applications. This is because Library Applications run in the same process as ASP, whereas Server Applications run in their own process. Inter-process calls are more expensive than in-process calls. Also, when passing data such as recordsets between processes, all of the data must be copied between the two processes.

Pitfall! When using COM Server Applications, if you pass objects between ASP and COM, make sure that the objects implement “marshal-by-value,?or MBV. Objects that implement MBV copy themselves from one process to another. This is better than the alternative, in which the object remains in the creator’s process, and the other process calls repeatedly into the creating process to use the object. Disconnected ADO recordsets will marshal-by-value; connected recordsets won’t. The Scripting.Dictionary does not implement MBV and should not be passed between processes. Finally, a message to VB programmers out there: MBV is NOT achieved by passing a parameter ByVal. MBV is implemented by the original component author.

What to Do?
If we

时间: 2024-10-16 00:55:44

DCOM用的,参考www.microsoft.comtechnet/iis关于iis5配置的文章.的相关文章

tfs-TFS中IIS配置问题,重新配置IIS

问题描述 TFS中IIS配置问题,重新配置IIS 公司用的TFS 有一段时间了,今天来的时候突然报了个503错误,然后我就打开IIS 看TFS 配置,然后一看Microsoft Team Foundation Server Application Pool,Microsoft Team Foundation Server Web Access Application Pool 两个都停止工作了,我将他们启动,然后又打开TFS 网站,结果又停止,现在我把应用程序池的配置改乱了,请问我可不可以把TF

伪静态的实现方法:IIS环境下配置Rewrite规则

URL 静态化可以提高搜索引擎抓取,开启本功能需要对 Web 服务器增加相应的 Rewrite 规则,且会轻微增加服务器负担.本教程讲解如何在 IIS 环境下配置各个产品的 Rewrite 规则.  URL 静态化可以提高搜索引擎抓取,开启本功能需要对 Web 服务器增加相应的 Rewrite 规则,且会轻微增加服务器负担.本教程讲解如何在 IIS 环境下配置各个产品的 Rewrite 规则.      下面以Discuz为例讲解IIS环境下配置Rewrite 规则,希望大家能举一反三. 一.首

IIS服务器完全配置实现asp,cgi,perl和php+mysql

cgi|iis|mysql|perl|服务器 IIS服务器完全配置实现asp,cgi,perl和php+mysql IIS服务器完全配置 现在我们要使IIS实现ASP,CGI,PERL和PHP+MYSQL 所需软件(都要是For Windows的): ActivePerl.PHP.MYSQL 一.ASP支持: 不用说了吧,什么都不用做,本身就支持ASP运行. 二.CGI,PERL支持: 1.安装ActivePerl 运行下载的ActivePerl一步一步安装(注意:安装路径请选择到根目录的/us

如何在IIS环境下配置Rewrite规则 图文_win服务器

URL 静态化可以提高搜索引擎抓取,开启本功能需要对 Web 服务器增加相应的 Rewrite 规则,且会轻微增加服务器负担.本教程讲解如何在 IIS 环境下配置各个产品的 Rewrite 规则. 一.首先下载 Rewrite.zip 的包,解压到任意盘上的任意目录. 各个产品的 Rewrite 规则包不同,请选择对应的产品下载对应的 Rewrite 规则. Discuz!6.0.0/6.1.0 的 Rewrite 规则下载地址:Rewrite.zip UCenter Home1.0.0 的 R

[图文]Windows 2000 IIS 安装、配置(WEB篇)_服务器

Windows 2000 Server.Windows 2000 Advanced Server 以及 Windows 2000 Professional 的默认安装都带有 IIS ,也可以在 Windows 2000 安装完毕后加装 IIS. IIS 是微软出品的架设 WEB.FTP.SMTP 服务器的一套整合软件,捆绑在 Windows2000/NT 中,可以在控制面板的添加/删除程序中选择添加删除 Windows 组件中选择添加 IIS 服务.如下图: IIS 默认的 WEB (主页)文件

Microsoft Office Professional Plus 2007配置进度解决方法

今天使用Office中的Word,发现启动的特别慢,进入到Word界面之后,自动弹出http://www.aliyun.com/zixun/aggregation/11208.html">Microsoft Office Professional Plus 2007配置进度,检测一会之后要求指定Microsoft Office安装文件,截图如下: 下面提供一个简单的解决方法,非常有效哦! 打开"我的电脑"--"C盘"--"Program F

Windows服务器入门--IIS安装与配置

1.运行环境与软件要求 Windows 2000 以上 (不包括Windows XP Home版) IIS 4.0 以上 Microsoft Access 2000 Dreamweaver MX 2.IIS的安装与配置 a.安装IIS 若操作系统中还未安装IIS服务器,可打开"控制面板",然后单击启动 "添加/删除程序", 在弹出的对话框中选择 "添加/删除Windows组件",在Windows组件向导对话框中选中"Internet信息

Win服务器入门--IIS安装与配置

iis|服务器 1.运行环境与软件要求 Windows 2000 以上 (不包括Windows XP Home版) IIS 4.0 以上 Microsoft Access 2000 Dreamweaver MX 2.IIS的安装与配置 a.安装IIS 若操作系统中还未安装IIS服务器,可打开"控制面板",然后单击启动 "添加/删除程序", 在弹出的对话框中选择 "添加/删除Windows组件",在Windows组件向导对话框中选中"In

XP系统IIS安装如何配置

  在Windows xp.Windows 2000操作系统下如果需要调试Asp程序,首先需要判断您所安装的系统是否具备调试Asp的环境,IIS(Internet信息服务)是微软公司为开发者提供的一个简单的运行平台,下面就IIS的安装过程作以下介绍: 一.首先您需要判断自己的操作系统是否安装IIS,方法如下图所示: (右击"我的电脑"后单击"管理") (然后单击"服务和应用程序") (检查是否安装"Internet信息服务")