Download presentation
Presentation is loading. Please wait.
Published bySophia Teresa Ryan Modified over 9 years ago
1
Throttling Resources and Aiding Performance on IIS Using Windows System Resource Manager (WSRM) Chris Adams Web Platform Supportability Lead Chris Stackhouse Program Manager Microsoft Corporation
2
What We Will Cover: Introduction to Microsoft ® Windows ® System Resource Manager (WSRM) Understanding and using WSRM What to do…and not to do…with WSRM Why to use WSRM to manage Web Applications Applying WSRM policies to Microsoft ® Internet Information Services (IIS) processes Summary
3
Introduction to WSRM WSRM is a resource manager designed to manage applications and resources on Microsoft ® Windows Server™ 2003 Management is done using policies and schedules Resources managed include CPU usage and memory usage Many applications are capable of being managed using WSRM
4
Introduction to WSRM Installation of WSRM is done by using the additional CD provided with the Operating System WSRM is only available to those who purchase the following Windows Server 2003 Family products: Enterprise Data Center To install, do one of the following: Open %cddrive%\readme.htm and follow instructions Execute %cddrive%\setup\%arch%\setup.exe
5
Understanding and Using WSRM Resource Allocation Policies Resource allocation policies can manage the following: CPU Bandwidth Divide the CPU time among running processes by %CPU Prevents one process taking more than its share of the machine Limits are only applied if CPU is in demand Memory Limits If CPU bandwidth isn’t working, then extend the capabilities to use memory limits It should only be used if the application is unable to manage its own memory Affinity Used to control the total number of CPUs on multiple CPUs that an application can “use”
6
Understanding… (2) Resource Allocation Policies Assign the process criteria to a resource allocation policy Multiple policies may exist per user or per criteria Allocating CPU resources takes away from the default pool of 100 % Note: Always leave about 5% remaining. Never allocate all 100 percent although UI allows it.
7
Understanding and Using WSRM Process Matching Criteria The ability to build “rules” to govern what is to be managed as a set (notice – set) Criteria can be a single rule or multiple rules to be applied Available Process Matching Criteria: User-Inputted String Registered Service Running Process Program file
8
Understanding and Using WSRM Process Matching Criteria Enter Criteria name that is recognizable Click Add to build criteria Enter string directly in dialog box, or choose from pre-defined options in drop-down For IIS, for example – enter: w3wp.exe.*DefaultAppPool
9
What To Do…and Not To Do…with WSRM When a application can manage itself, such as control CPU or memory limits, it is not recommended to use WSRM Examples: IIS can manage memory usage and take actions based on the configured options where WSRM cannot “take actions” Always start with CPU throttling, or usage, and move to memory only when necessary Do not use WSRM alongside other resource manager tools
10
Why Use WSRM in Web Applications Web applications is one, if not the most, “unmanaged” environments on Windows Application code is often deployed on servers without any direct understanding by administrators on what the application is using or going to use This is commonly the case in Mainframe shops, etc. such as discussed in Stan Murawski’s webcast http://msevents.microsoft.com/CUI/WebCastEventDetails.aspx?culture= en-US&EventID=1032265860&CountryCode=US http://msevents.microsoft.com/CUI/WebCastEventDetails.aspx?culture= en-US&EventID=1032265860&CountryCode=US Management of Web applications is done by process (also known as – application pool) WSRM is dependent somewhat on a good strategy of isolation already in place
11
Why Use WSRM in Web Applications WSRM can aid performance overall by allocating and pulling resources when necessary Well Behaved Application MisbehavedApplication Default WSRM will allow misbehaved applications more than 30% when well behaved applications aren’t using its allocated 65%
12
Demonstration One Configuring policies in WSRM for IIS
13
Demonstration Two Setting IIS worker processes up to be managed by WSRM
14
Session Summary IIS applications are often misbehaving causing limited resources to be available WSRM can be used to effectively manage IIS applications and can do so at the application pool level WSRM offers several advantages over application management of resources – do not use both though WSRM is only available on systems running Microsoft ® Windows Server™ 2003 Data Center and Enterprise editions
15
For More Information…on WSRM Windows System Resource Manager The Windows System Resource Manager (WSRM) is available in Windows Server 2003, Enterprise Edition and Datacenter Edition. WSRM provides resource management comparable to mainframe and UNIX-platform solutions, and enables the allocation of resources among multiple applications based on business priorities. http://www.microsoft.com/windowsserver2003/downloads/wsrm.mspx http://www.microsoft.com/windowsserver2003/downloads/wsrm.mspx Windows System Resource Manager Frequently Asked Questions Find answers to commonly asked questions about Windows System Resource Management. http://www.microsoft.com/windowsserver2003/techinfo/overview/wsrmfaq.mspx http://www.microsoft.com/windowsserver2003/techinfo/overview/wsrmfaq.mspx Windows System Resource Manager—Fast Facts The Windows System Resource Manager, WSRM, is a Windows Server 2003, Enterprise Edition, and Windows Server 2003, Datacenter Edition, feature that enables you to manage CPU and memory utilization on a per application basis. http://www.microsoft.com/windowsserver2003/techinfo/overview/wsrmfastfacts.mspx http://www.microsoft.com/windowsserver2003/techinfo/overview/wsrmfastfacts.mspx Windows System Resource Manager Technology Center Windows System Resource Manager (WSRM) is a feature of Windows Server 2003, Enterprise and Datacenter editions. Using WSRM, administrators can control how CPU resources are allocated to applications, services, and processes. Managing resources with improves system performance and reduces the chance that these applications, services, or processes will interfere with the rest of the system. WSRM also creates a more consistent and predictable experience for users. http://www.microsoft.com/windowsserver2003/technologies/management/wsrm/default.mspx http://www.microsoft.com/windowsserver2003/technologies/management/wsrm/default.mspx
16
For More Information…on WSRM Windows System Resource Manager Interactive Simulation Take a test drive through Windows System Resource Manager (WSRM) to find out how you can manage, allocate, and prioritize your computer's processor and memory resources among multiple applications—thus enabling consolidation onto a single server. You can start and stop the training as your time allows. The interactive lesson consists of five short exercises that take less than five minutes each. http://www.microsoft.com/windowsserver2003/techinfo/training/wsrm/default.mspx http://www.microsoft.com/windowsserver2003/techinfo/training/wsrm/default.mspx How Windows System Resource Manager Works - Scalability Services: Windows Server 2003 Explains the architecture of Windows System Resource Manager (WSRM) and illustrates the processes through which resources are managed. Explains the dynamic process priority management algorithm that Windows System Resource Manager uses to determines how to allocate system resources among multiple processes. http://www.microsoft.com/Resources/Documentation/windowsserv/2003/all/techref/en- us/w2k3tr_wsrm_how.asp http://www.microsoft.com/Resources/Documentation/windowsserv/2003/all/techref/en- us/w2k3tr_wsrm_how.asp http://www.microsoft.com/Resources/Documentation/windowsserv/2003/all/techref/en- us/w2k3tr_wsrm_how.asp WSRM Command-Line Interface Search Microsoft.com for: Go WSRM Command-Line InterfacePublished: September 15, 2003 Download 450 KB Microsoft Word file Related Links Summary With Windows System Resource Manager (WSRM), administrators can control how CPU resources are allocated to applications, services, and processes. http://www.microsoft.com/windowsserver2003/techinfo/overview/wsrmcli.mspx http://www.microsoft.com/windowsserver2003/techinfo/overview/wsrmcli.mspx Windows System Resource Manager Accounting White Paper Search Microsoft.com for: Go Windows System Resource Manager Accounting White PaperPublished: November 10, 2003 Download 385 KB Microsoft Word file Summary The accounting function in WSRM tracks how managed and unmanaged processes use resources. With this information, you can easily generate reports of process-resource usage on a per-user, per-application, or other relevant basis. http://www.microsoft.com/windowsserver2003/techinfo/overview/wsrmaccount.mspx http://www.microsoft.com/windowsserver2003/techinfo/overview/wsrmaccount.mspx
17
For More Information…on WSRM TechNet Webcast: Windows System Resource Manager (WSRM): Managing processing resources with Windows Server 2003 Live Event: March 27, 2003 - 1:00pm to 2:30pm Pacific Time / 4:00pm Eastern Time. http://www.microsoft.com/usa/webcasts/upcoming/1546.asp http://www.microsoft.com/usa/webcasts/upcoming/1546.asp TechNet Webcast: Windows System Resource Manager (WSRM): Managing processing resources with Windows Server 2003 Live Event: March 27, 2003 - 1:00pm to 2:30pm Pacific Time / 4:00pm Eastern Time. http://www.microsoft.com/usa/webcasts/upcoming/1546.asp http://www.microsoft.com/usa/webcasts/upcoming/1546.asp SQL Server Consolidation on the 64-Bit Platform: Lessons Learned This white paper discusses lessons learned during test scenarios in which Microsoft deployed and operated a 64-bit server to consolidate Microsoft ® SQL Server™ instances that previously resided on separate physical computers. http://www.microsoft.com/technet/prodtechnol/sql/2000/deploy/ 64bitconsolidation.mspx http://www.microsoft.com/technet/prodtechnol/sql/2000/deploy/ 64bitconsolidation.mspx http://www.microsoft.com/technet/prodtechnol/sql/2000/deploy/ 64bitconsolidation.mspx
18
For More Information…on WSRM Solution Accelerator for Consolidating and Migrating LOB Applicatoins The Solution Accelerator for Consolidating and Migrating LOB Applications facilitates the deployment of Windows Server 2003-based solutions, specifically those that support consolidation, migration, and virtualization. http://www.microsoft.com/technet/itsolutions/techguide/msa/solacc/ lobsa/default.mspx http://www.microsoft.com/technet/itsolutions/techguide/msa/solacc/ lobsa/default.mspx http://www.microsoft.com/technet/itsolutions/techguide/msa/solacc/ lobsa/default.mspx Decision Tree for Consolidating and Migrating LOB Applications This document provides guidance for assessing LOB applications and determining appropriate Windows Server 2003-based solutions. http://www.microsoft.com/technet/itsolutions/ucs/lob/lobsa/ lobsadect.mspx http://www.microsoft.com/technet/itsolutions/ucs/lob/lobsa/ lobsadect.mspx http://www.microsoft.com/technet/itsolutions/ucs/lob/lobsa/ lobsadect.mspx Download details: Mixed Workload Consolidation Guide Provides detailed information you can use to identify appropriate applications for mixed workload consolidation, validate compatibility of applications, and plan for a mixed workload consolidation deployment. http://www.microsoft.com/downloads/details.aspx?FamilyId=0F70695E- 5D0B-4781-8966-84BE43216F9E&displaylang=en http://www.microsoft.com/downloads/details.aspx?FamilyId=0F70695E- 5D0B-4781-8966-84BE43216F9E&displaylang=en http://www.microsoft.com/downloads/details.aspx?FamilyId=0F70695E- 5D0B-4781-8966-84BE43216F9E&displaylang=en
19
For More Information…on WSRM Microsoft Customer Evidence: Manifattura di Legnano S.p.a. Cotton Company Weaves Dramatic Web Server Performance Improvements into their Network http://www.microsoft.com/resources/casestudies/ CaseStudy.asp?CaseStudyID=14210 http://www.microsoft.com/resources/casestudies/ CaseStudy.asp?CaseStudyID=14210 http://www.microsoft.com/resources/casestudies/ CaseStudy.asp?CaseStudyID=14210 Microsoft Windows System Resource Manager Management Pack for Microsoft Operations Manager 2000 SP1 Microsoft Windows System Resource Manager Management Pack for Microsoft Operations Manager 2000 SP1 http://www.microsoft.com/technet/prodtechnol/mom/mom2000/ maintain/wsrmmpg.mspx http://www.microsoft.com/technet/prodtechnol/mom/mom2000/ maintain/wsrmmpg.mspx http://www.microsoft.com/technet/prodtechnol/mom/mom2000/ maintain/wsrmmpg.mspx Download details: Windows System Resource Manager (WSRM) Management Pack for MOM Management pack that manages the Windows System Resource Manager (WSRM) service on Windows Server 2003 Enterprise and Datacenter editions. http://www.microsoft.com/downloads/details.aspx?FamilyId=0DD93314- DD31-43BE-BA94-F1FF53D52917&displaylang=en http://www.microsoft.com/downloads/details.aspx?FamilyId=0DD93314- DD31-43BE-BA94-F1FF53D52917&displaylang=en http://www.microsoft.com/downloads/details.aspx?FamilyId=0DD93314- DD31-43BE-BA94-F1FF53D52917&displaylang=en
20
For More Information…on WSRM WSRM Policy Object; Windows Server 2003 Deployment Kit The WSRM Policy performance object, installed with Windows System Resource Manager (WSRM), consists of a counter that provides the percentage of CPU cycles of the entire system that are used by the current resource-allocation policy, since the time the policy was set to manage the behavior of WSRM. http://www.microsoft.com/resources/documentation/WindowsServ/2003/all/deployguide/ en-us/counters2_wsrmpolicy.asp http://www.microsoft.com/resources/documentation/WindowsServ/2003/all/deployguide/ en-us/counters2_wsrmpolicy.asp http://www.microsoft.com/resources/documentation/WindowsServ/2003/all/deployguide/ en-us/counters2_wsrmpolicy.asp WSRM Process Object; Windows Server 2003 Deployment Kit The WSRM Process performance object, installed with Windows System Resource Manager (WSRM), consists of a counter that provides the percentage of total managed CPU cycles used by a particular process, since the time that the resource-allocation policy,since the time the policy was set to manage the behavior of WSRM. http://www.microsoft.com/resources/documentation/WindowsServ/2003/all/deployguide/ en-us/counters2_wsrmprocess.asp http://www.microsoft.com/resources/documentation/WindowsServ/2003/all/deployguide/ en-us/counters2_wsrmprocess.asp http://www.microsoft.com/resources/documentation/WindowsServ/2003/all/deployguide/ en-us/counters2_wsrmprocess.asp WSRM Process Matching Criteria Object; Windows Server 2003 Deployment Kit The WSRM process-matching criteria performance object, installed with Windows System Resource Manager (WSRM), consists of counters that monitor the CPU usage and memory usage of the processes matched by the process-matching criteria. The criteria are included in the managing resource-allocation policy. http://www.microsoft.com/resources/documentation/WindowsServ/2003/all/deployguide/ en-us/counters2_wsrmpmc.asp http://www.microsoft.com/resources/documentation/WindowsServ/2003/all/deployguide/ en-us/counters2_wsrmpmc.asp http://www.microsoft.com/resources/documentation/WindowsServ/2003/all/deployguide/ en-us/counters2_wsrmpmc.asp
21
For More Information…on IIS IIS Portal: www.microsoft.com/iis www.microsoft.com/iis Links to product documentation, resource kits, and other technical resources Whitepaper: Web and Application Server Infrastructure—Performance and Scalability Web and Application Server Infrastructure—Performance and Scalability Learn how your existing ISAPI and ASP/COM+ applications can see a performance and scalability gain on Windows Server 2003. This paper covers performance tuning considerations for ISAPI and ASP/COM+ applications, and provides tuning ideas for the Windows.NET Framework. Web and Application Server Infrastructure—Performance and Scalability Microsoft ® ASP.NET: www.asp.net www.asp.net Forums and community information relating to IIS and ASP.Net IIS Webcast Series: http://www.microsoft.com/windowsserver2003/iis/support/we bcasts.mspx http://www.microsoft.com/windowsserver2003/iis/support/we bcasts.mspx http://www.microsoft.com/windowsserver2003/iis/support/we bcasts.mspx
22
MSDN Events Who Your Local Microsoft Developer Community Champion Your Local Microsoft Developer Community ChampionWhat WinForms - Produce, Extend, Enhance WinForms - Produce, Extend, Enhance ASP.NET – Fixing that Last Bug in Your Web App ASP.NET – Fixing that Last Bug in Your Web App Visual Studio Team System – A Technical Tour Visual Studio Team System – A Technical TourWhy Gain valuable developer knowledge, network with peers, and get VS 2005 Beta 1 Refresh and VS 2005 Express Betas on our content-rich special event DVD Gain valuable developer knowledge, network with peers, and get VS 2005 Beta 1 Refresh and VS 2005 Express Betas on our content-rich special event DVDWhen January through March, on Tuesdays and Thursdays from 1-5PM local time January through March, on Tuesdays and Thursdays from 1-5PM local timeWhere Cities across the United States Cities across the United StatesHow Visit MSDN Events at http://www.msdnevents.com to find out more! Visit MSDN Events at http://www.msdnevents.com to find out more!http://www.msdnevents.com
23
MSDN Webcast Resources Visit our blog http://blogs.msdn.com/msdnwebcasts for an rss feed of upcoming MSDN Webcasts http://blogs.msdn.com/msdnwebcasts Submit text questions during the live webcast using the “Ask a Question” button For recordings of past MSDN Webcasts: www.microsoft.com/usa/webcasts/ondemand www.microsoft.com/usa/webcasts/ondemand Got webcast content ideas? Email us at: webcasts@microsoft.com webcasts@microsoft.com More webcasts at http://msdn.microsoft.com/webcasts http://msdn.microsoft.com/webcasts Don’t forget to fill out the survey.
24
Additional Resources New mobile development resource kits Mobile Application Development Toolkit WeRock 247.NET Smart Client Training DVD Football 247.NET Training DVD All may ordered or downloaded at http://msdn.microsoft.com/mobility/windowsmobile/how to/kits/default.aspx http://msdn.microsoft.com/mobility/windowsmobile/how to/kits/default.aspx http://msdn.microsoft.com/mobility/windowsmobile/how to/kits/default.aspx The DevTools MAD Lounge Updates and additional resources for the Mobile Application Development Toolkit www.msdevtools.net MSDN Mobile and Embedded Developer Center http://msdn.microsoft.com/mobility
25
Where Can I Get MSDN? Fill out a survey at the end of the webcast and ask a Microsoft representative to contact you. Become an MSDN CD Subscriber at msdn.microsoft.com/subscriptions
26
Free Trial Offer for Live Meeting 15 days of free service. Unlimited online meetings with up to 10 participants. Complimentary 24/7 customer support for you and all meeting participants. Get your own free 15-day trial by visiting: http://www.microsoft.com/presentlive http://www.microsoft.com/presentlive
Similar presentations
© 2025 SlidePlayer.com Inc.
All rights reserved.