1 / 27

Throttling Resources and Aiding Performance on IIS Using Windows System Resource Manager (WSRM)

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. What We Will Cover:. Introduction to Microsoft ® Windows ® System Resource Manager (WSRM)

leon
Download Presentation

Throttling Resources and Aiding Performance on IIS Using Windows System Resource Manager (WSRM)

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  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 WSRMResource 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 WSRMProcess 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 WSRMProcess 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 • 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. 5% Default Misbehaved Application 30% Well Behaved Application 65% Why Use WSRM in Web Applications • WSRM can aid performance overall by allocating and pulling resources when necessary WSRM will allow misbehaved applications more than 30% when well behaved applications aren’t using its allocated 65% CPU Usage

  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 ManagerThe 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 • Windows System Resource Manager Frequently Asked QuestionsFind answers to commonly asked questions about Windows System Resource Management.http://www.microsoft.com/windowsserver2003/techinfo/overview/wsrmfaq.mspx • Windows System Resource Manager—Fast FactsThe 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 • Windows System Resource Manager Technology CenterWindows 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

  16. For More Information…on WSRM • Windows System Resource Manager Interactive SimulationTake 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 • How Windows System Resource Manager Works - Scalability Services: Windows Server 2003Explains 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 • WSRM Command-Line InterfaceSearch 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 • Windows System Resource Manager Accounting White PaperSearch 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

  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 • 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 • SQL Server Consolidation on the 64-Bit Platform: Lessons LearnedThis 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

  18. For More Information…on WSRM • Solution Accelerator for Consolidating and Migrating LOB ApplicatoinsThe 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 • Decision Tree for Consolidating and Migrating LOB ApplicationsThis 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 • Download details: Mixed Workload Consolidation GuideProvides 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

  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 Networkhttp://www.microsoft.com/resources/casestudies/ CaseStudy.asp?CaseStudyID=14210 • Microsoft Windows System Resource Manager Management Pack for Microsoft Operations Manager 2000 SP1Microsoft Windows System Resource Manager Management Pack for Microsoft Operations Manager 2000 SP1http://www.microsoft.com/technet/prodtechnol/mom/mom2000/ maintain/wsrmmpg.mspx • Download details: Windows System Resource Manager (WSRM) Management Pack for MOMManagement 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

  20. For More Information…on WSRM • WSRM Policy Object; Windows Server 2003 Deployment KitThe 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 • WSRM Process Object; Windows Server 2003 Deployment KitThe 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 • WSRM Process Matching Criteria Object; Windows Server 2003 Deployment KitThe 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

  21. For More Information…on IIS • IIS Portal: www.microsoft.com/iis Links to product documentation, resource kits, and other technical resources • Whitepaper: • Web and Application Server Infrastructure—Performance and ScalabilityLearn 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. • Microsoft® 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/webcasts.mspx

  22. MSDN Events • Who • Your Local Microsoft Developer Community Champion • What • WinForms - Produce, Extend, Enhance • ASP .NET – Fixing that Last Bug in Your Web App • Visual Studio Team System – A Technical Tour • Why • 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 • When • January through March, on Tuesdays and Thursdays from 1-5PM local time • Where • Cities across the United States • How • Visit MSDN Events at http://www.msdnevents.com to find out more!

  23. MSDN Webcast Resources • Visit our blog http://blogs.msdn.com/msdnwebcasts for an rss feed of upcoming MSDN Webcasts • 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 • Got webcast content ideas? Email us at: webcasts@microsoft.com • More webcasts at 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/howto/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

More Related