【正文】
ent for a web app (vs. only ISAPI on IIS4/5) and Application Pools ? requests a worker process for the app pool if there is demand. ? If the app pool is not started, requests for the app pool will receive a ‘Service Unavailable’ message. ? If a worker process has been shut down by W3ADM, then can restart it if the AppPoolAutoStart metabase property is set to TRUE (the default). Web Gardens An app pool served by more than one worker process is a web garden. ? To enable this, set the MaxProcess value 1. ? A benefit to Web gardens is that if one worker process gets bogged down (script engine hangs), there are other worker processes available to accept and process requests. Web Garden application pool Worker process ISAPI ISAPI Filter W3ADM Worker process ISAPI ISAPI Filter Worker process ISAPI ISAPI Filter Worker process ISAPI ISAPI Filter Processor Affinity ? Setting processor affinity means assigning specific processes or applications to a specific processor. ? Controlling processor affinity can improve performance by reducing the number of processor cache flushes as threads move from one processor to another. ? Advanced configurations using Web gardens and processor affinity can be used on multiprocessor puters where clusters of CPUs can be dedicated to specific application pools. App Domain App Domain App Domain App Domain App Domain App Domain App Domain App Domain Application Pool W3SVC App pool App pool ? Application Domains ? Lightweight CLR unit of isolation ? One application domain per IIS application ? Combine with to achieve high scalability and isolation ? manages application domains independently ? Recycled within a single process ? Can have private ponents, session variables , etc. Brief Overview .NET Application Domains vs. Application Pools Reliability Best Practices Isolating Apps in Application Pools ? Can create one or more application pools ? Each served by one or more . ? Each serves only one pool. ? Reqs routed directly to pool by ? Isolate applications based on: ? Site/Customer ? Functionality ? Reliability ? Application version (as long as each has separate URL) ? Best Practices ? Timeout Pool: put misbehaving applications in a more restrictive pool ? Leaks → throttle back memory usage ? Crashes → enable Rapid Fail Protection. ? Isolate critical applications in their own pool ? best practice – separate ASP and applications ? Pinging ? Periodic check to ensure at least 1 thread is available to do work ? Can set Frequency of Ping, response time per pool ? Orphaning if ping fails, can take “action” ? REPORT_UNHEALTHY ? ISAPI SSF ? Used with Ping to request a “recycle” if unhealthy ? ASPNET used in conjunction w/ResponseDeadlockInterval ? Best Practices ? Use Pinging to ensure IIS w3wp and ASPNET have threads available to do work ? Check NT174。Deadlock detected39。 訂閱 TechNet ?可以訪問該站點(diǎn) ? 在線資源和社區(qū) ? 訂戶 僅僅提供在線服務(wù) TechNet 網(wǎng)站 ?兩周發(fā)放一次的中文電子快報(bào) ? 安全更新 , 新的資源等等 TechNet 中文電子快報(bào) ?有關(guān)最新微軟產(chǎn)品介紹和技術(shù)的簡報(bào) ?上機(jī)試驗(yàn) , “如何操作”等信息 TechNet 活動(dòng) 和網(wǎng)站消息 ?用戶群 ?可管理的新聞組 中文社區(qū) 我們從哪里可以了解到 TechNet? ? 訪問 TechNet的官方網(wǎng)站 ? 注冊(cè) TechNet快報(bào) ? 加入到中文在線論壇 ? 成為 TechNet的訂戶 ? ? 參與到更多的 TechNet活動(dòng)中或者在線了解 您的潛力,我們的動(dòng)力!