1 / 13

virtual techdays

INDIA │ 9-11 February 2011. virtual techdays. IIS 7.5: Tuning for High Scalability. Jaskirat Singh │ Escalation Services IIS/ ASP.NET , Microsoft. INDIA │ 9-11 February 2011. virtual techdays. Introduction to IIS 7.5 IIS 7 features/modular approach

merrill
Download Presentation

virtual techdays

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. INDIA │ 9-11 February2011 virtual techdays IIS 7.5: Tuning for High Scalability Jaskirat Singh │ Escalation Services IIS/ ASP.NET , Microsoft

  2. INDIA │ 9-11 February2011 virtual techdays • Introduction to IIS 7.5 • IIS 7 features/modular approach • Integrated and Classic Pipeline • How to tune your IIS for better Performance • Leaner configuration • Compression • Caching • UserMode Caching • Kernel Mode Caching • Tweak Threads config for integrated mode when using Async calls • App Warm up module for cold start of applications • Tools to ease your life works: FREB / APPCMD / API S E S S I O N A G E N D A

  3. INDIA │ 9-11 February2011 virtual techdays • IIS 7.0 leverages the reliability and security-focused architecture of IIS 6.0 • Modular Web server • 40+ different components • Individual installation of each component • Role specific Web server deployment • Extensible architecture • ASP.NET integration • Form Authentication and URL authorization for static files (.htm, .css etc) and .asp pages • Eliminates duplication of features • Common IIS and ASP.NET configuration file • Enhancement in hosting FastCGI application such as PHP Introduction to IIS 7.x Architecture

  4. INDIA │ 9-11 February2011 virtual techdays • The ability to deploy lean IIS 7.X servers draws from the modular architecture of the server. Practically all of its Web server features are implemented as modular components that can be added or removed individually. • The full IIS 7.X Web server feature set contains 44 modules, including native IIS modules and ASP.NET modules that provide services for the Integrated pipeline • Following are throughput test results for Static HTML file and Hello world ASP.Net • When configured with the full set of features • The default set of features for that workload • The absolutely minimal set of features needed for the workload. Leaner Web Server

  5. INDIA │ 9-11 February2011 virtual techdays • Full set of features V/s Default set of features V/s Absolutely minimal set of features Results of a simple throughput test 64 bit server

  6. INDIA │ 9-11 February2011 virtual techdays • One of the most effective ways to reduce the bandwidth needed to deliver the application responses is to use HTTP compression. • Static compression pre-compresses static content and saves it on disk, thereby allowing future requests to serve compressed content directly without compression overhead. • Dynamic compression compresses the response in real time, and therefore enables compression for responses generated by applications. Compression [ Static and Dynamic Compression]

  7. INDIA │ 9-11 February2011 virtual techdays Compression [ Static and Dynamic Compression] Compression levels [ 0 to 9] C:\Windows\System32\Inetsrv\Appcmd.exe set config -section:httpCompression -[name='gzip'].staticCompressionLevel:9 -[name='gzip'].dynamicCompressionLevel:4

  8. INDIA │ 9-11 February2011 virtual techdays Caching to boost performance • The IIS 7 output cache supports two cache policies: • User-mode output cache policy, which uses a cache that resides in an IIS 7 worker process. • Kernel-mode cache policy, which uses a cache that resides in Http.sys, a kernel-mode driver. • Two properties determine cache worthiness: • frequentHitTimePeriod==> default value 10 seconds • frequentHitThreshold ==> default value 2 seconds • A request is only cached if more than <frequentHitThreshold> requests for a cacheable URL arrive within the <frequentHitTimePeriod>.

  9. INDIA │ 9-11 February2011 virtual techdays WCAT Performance Statistics Server                      :      localhost      ()#Transactions               :              3      (HTTP/1.1)Total Async Sockets         :             20      (5 WCAT Pool Threads)Total Elapsed Time          :             30 Secs (0 Hrs,0 Mins,30 Secs)Current Connections         :             20Total Connection Attempts   :            436      (   14/Sec)Total Connect Errors        :              0      (    0/Sec)Total Success Connections   :            436      (   14/Sec) After turning on USER Mode caching %windir%\system32\inetsrv\appcmd set config "Default Web Site/pictures" -section:caching +profiles.[extension='.jpg',duration='00:00:10', policy='CacheForTimePeriod',varyByHeaders='Accept-Language'] WCAT Performance Statistics Server : localhost () #Transactions : 3 (HTTP/1.1) Total Async Sockets : 20 (5 WCAT Pool Threads) Total Elapsed Time : 30 Secs (0 Hrs,0 Mins,30 Secs) Current Connections : 19 Total Connection Attempts : 13020 ( 434/Sec) Total Connect Errors : 0 ( 0/Sec) Total Success Connections : 13019 ( 433/Sec)

  10. INDIA │ 9-11 February2011 virtual techdays Improve Async ASPX performance • You can take care of performance issue while running your ASP.NET applications on IIS 7.5 integrated mode by tweaking maxConcurrentRequestsPerCPU • HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\ASP.NET\2.0.50727\ • MaxConcurrentRequestsPerCPU[DWORD] Set this to a value higher than 12 (12 is the default) • If you already have SP1 for .NET 3.5 installed, this can be done via configuration itself: Change the below in aspnet.config file (found in the framework folder) • <system.web> • <applicationPoolmaxConcurrentRequestsPerCPU="12" maxConcurrentThreadsPerCPU="0" requestQueueLimit="5000"/> • </system.web>

  11. INDIA │ 9-11 February2011 virtual techdays App-Warm up Module • Improving site performance • Individual pages run faster • Hide start-up cost for a cold application • Application Warm-Up Module in IIS 7.5 allows applications to automatically start without a request <applicationPools> • <add name="MyApplicationPool" startMode="AlwaysRunning" /> • </applicationPools> • This helps us reduce the initial warm-up time for applications on the first request.

  12. INDIA │ 9-11 February2011 virtual techdays Tools for Ease: • FREB [ Failed request Tracing] • APPCMD • Microsoft API to access configurations

  13. THANKS│ 9-11 February2011 virtual techdays jaskis@microsoft.com│ http://blogs.msdn.com/jaskis

More Related