zoukankan      html  css  js  c++  java
  • 应用程序池和应用程序域的区别(Difference between application pool and application domain)

    来自StackOverFlow:  http://stackoverflow.com/questions/8486335/difference-between-an-application-domain-and-an-application-pool/8487104#8487104 

    IIS process is w3wp; Every application pool in IIS use it's own process; AppPool1 uses process 3784, AppPool2 uses process 5044 Different applications in Asp.net will use different AppDomain;

    AppTest2 and AppTest2 are in different AppDomain, but in the same process.

    What's the point to use them?

    Application pool and AppDomain , both of them can provide isolations, but use different approches. Application pool use the process to isolate the applications which works without .NET. But AppDomain is another isolation methods provided by .NET. If your server host thousands of web sites, you wont use thousands of the application pool to isolate the web sites, just becuase, too many processes running will kill the os. However, sometime you need application pool. One of the advantages for application pool is that you can config the identity for application pool. Also you have more flexible options to recyle the application pool. At least right now, IIS didnt provide explicit options to recyle the appdomain.

    An application pool is a group of one or more URLs of different Web applications and Web sites. Any Web directory or virtual directory can be assigned to an application pool. Every application within an application pool shares the same worker process executable, W3wp.exe, the worker process that services one application pool is separated from the worker process that services another [Like starting MS Word and opening many word documents]. Each separate worker process provides a process boundary so that when an application is assigned to one application pool, problems in other application pools do not affect the application. This ensures that if a worker process fails, it does not affect the applications running in other application pools. [i.e] for Eg., If word document is having issue it should not logically affect your Excel Sheet isn’t it. application domain is a mechanism (similar to a process in an operating system) used to isolate executed software applications from one another so that they do not affect each other. [i.e] opening of MS WORD doesn’t affect MS EXCEL you can open and close both the applications any time since there is no dependency between the applications. Each application domain has its own virtual address space which scopes the resources for the application domain using that address space.

  • 相关阅读:
    jquery blockUI 扩展插件 Dialog
    ExtJS Form扩展组件[ColorFiled, DateTimeFiled, IconCombo, MultiComboBox, DynamicTreeCombox]
    Struts 笔记
    Spring整合CXF,发布RSETful 风格WebService
    Mybatis传递参数到 xml
    学习Mybatis xml 常用关键语法 Ivin
    一行命令搞定/usr/bin/perl^M: bad interpreter
    js基本功能大全
    Foxmail Server 可以搭建出功能强大的邮件服务器
    Access转成Sql 2008步骤,同时解决自动编号问题,主键,id数值不重置。
  • 原文地址:https://www.cnblogs.com/Linford-Xu/p/3571709.html
Copyright © 2011-2022 走看看