IIS app pools, worker processes, app domains

Source: Internet
Author: User
<span id="Label3"></p><p><p>Copy from Http://stackoverflow.com/questions/14105345/iis-app-pools-worker-processes-app-domains</p></p><p><p></p></p><p><p>I try to say them and other WORDS.</p></p><p><p>In the a server you can have many asp. sites that runs Together. Each one site is an <strong>app domain</strong>.</p></p><p><p>You must assign to each of the them one <strong>application pool</strong>. Many application domains (sites) can have the same application pool, and because they has the same application pool they Run under the same processes, and under the same account-and they has the same settings of the Pool. If This pool restarts, then all sites under that pools Restarts.</p></p><p><p>Now each pool can has one or more <strong>worker process</strong>. Each worker process was a different program that ' s run your site, with their alone static variables, they different start s Top calls etc. Different worker process is not communicate together, and the-only-to Exchange data was from common files or a common Database. If you had more than than one worker process and one of them make long time calculations, then the other can take care to hand Le the Internet calls and show Content.</p></p><p><p>When you assign many worker process to a single pool then you make the called <strong>Web</strong> Garden and your site is like to Be run from more than one computer if a computer are one processing Machine.</p></p><p><p>Each worker process can has many THREADS.</p></p><p><p> How to the more worker process affect you: <br> When have  <strong> one worker process </strong>  everything is mo Re simple, among your application all static variables is the same, and you use the  <code> lock </code>  to SYNCHR Onize Them. <br> When you assign , <strong> more than one worker process </strong>  then you still continue to use the  <code> Lock </code>  for static variables, static variables is not different among the many runs of your site, and if you hav E Some common resource (E.G. the creation of a thumbnail on the disk) then your need to synchronize your worker process wit h  <code> Mutex </code>. </p></p><p><p>One more Note. The ITS sounds, that is, you do more <strong>worker process</strong> and then your may has more smooth asynchronous page loads. There is a small issue with the session handler of ASP. is lock the entire process for a page load-that is good And not good the depend if you know it and handle it-or the change it.</p></p><p><p>So-let's talk on one site only with many worker Process. Here's the face the issue, the need to synchronize your common resource <code>Mutex</code> . But the pages/handlers, the use session they is not asynchronous because the session locks Them. This is the good for start because avoid to make this synchronization of many points your self.</p></p><p><p>Some questions on this topic:<br>Web App blocked while processing another web app on sharing same session<br>JQuery Ajax calls to the Web service seem to be synchronous<br>asp. Net Server does not process pages asynchronously<br>Replacing Asp. Net ' s session entirely</p></p><p><p>Now the session lock is not affect different sites.</p></p><p><p>Among different sites the more worked process can help is not the one site block, the other with long running PROCESS.<br>Also among different sites the more pools Also can help, because each pool has at least one worked process, but remember And see by your self using the process explorer, each working process takes more memory of your computer, and one big serv Er with 16G memory and one SQL server can is not having too many different worked process-for example on a server with + sh Ared sites, You can don't have a different pools.</p></p><p><p></p></p><p><p>IIS app pools, worker processes, app domains</p></p></span>

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.