IIS app pools, worker processes, app domains

后端 未结 4 1878
猫巷女王i
猫巷女王i 2020-12-12 09:44

Can anyone explain the differences, in IIS, between application pools, worker processes and app domains? Also, how do they work together? I\'ve read a couple of articles but

4条回答
  •  执笔经年
    2020-12-12 10:07

    • One IIS server may have multiple application pools.
    • One web application binds to one application pool.
    • One application pool may have more than one worker process (when Web Garden is enable).
    • One worker process can have multiple app domains. One app domain lives only in one worker process.
    • One app domain may have multiple threads. One thread can be shared by different app domains in different time.

    The meaning to ASP.NET developers: to make your web site scalable, don't use in-proc session and don't use static class variable lock for synchronization.

提交回复
热议问题