Asp.net performance secrets

  • 2,625 views
Uploaded on

 

More in: Technology
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
  • ASP.NET has become a very popular technology for developing web applications because of the ease of rapid development it provides through its rich set of development tools, its performance can be enhanced by using Distributed Cache... more information can be found on this link http://www.alachisoft.com/ncache/asp-net-performance-scalability.html

    NCache is one of the best solutions to remove ASP.NET performance bottlenecks, how? please refer to the link above. There are few more tools in the market but they are not mature enough.
    Are you sure you want to
    Your message goes here
No Downloads

Views

Total Views
2,625
On Slideshare
0
From Embeds
0
Number of Embeds
2

Actions

Shares
Downloads
75
Comments
1
Likes
1

Embeds 0

No embeds

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
    No notes for slide

Transcript

  • 1. Presented By: Mahmoud Ghoz ASP.NET Performance Secrets
  • 2. Agenda
    • Meet the icons
    • Tips for reducing page load times.
    • Tips for Minimizing HTTP Requests.
    • Quick tips
    • Meet the Tools
  • 3. Meet the icons ASP.NET Developer Designer IIS Administrator Everyone
  • 4. Tips for reducing page load times
    • ASP.NET pipeline optimization
    Dev
  • 5. Tips for reducing page load times
    • ASP.NET pipeline optimization
    14 handler are defined in machine.config(4.0) Dev
  • 6.
    • ASP.NET process configuration optimization
      • Defines process level properties like
        • How many number of threads ASP.NET uses
        • How long it blocks a thread before timing out
        • How many requests to keep waiting for IO works to complete.
    Tips for reducing page load times Dev
  • 7.
    • ASP.NET process configuration optimization
      • The default is in many cases too limiting.
      • Nowadays hardware has become quite cheap and dual core with gigabyte RAM servers have become a very common choice
    Tips for reducing page load times memoryLimit minWorkerThreads maxWorkerThreads (20) maxIOThreads (20) minIOThreads maxAppDomains Dev
  • 8.
    • Content Delivery Network (CDN)
    Tips for reducing page load times EdgeCast Akamai Limelight Cachefly All
  • 9.
    • Making best use of Browser Cache
      • Cache Static Content for Longer Period
      • Store cached content under a common folder
      • Reuse Common Graphics Files
      • SSL is Not Cached, so Minimize SSL Use
      • HTTP POST Requests are Never Cached
    Tips for reducing page load times All
  • 10.
    • Making best use of Browser Cache
      • Use same URLs
    Tips for reducing page load times www. Ghoz.NET/default.aspx Ghoz.NET/default.aspx != All
  • 11.
    • Making best use of Browser Cache
      • Configure Static Content Caching in IIS
    Tips for reducing page load times Admin
  • 12. Tips for reducing page load times
    • Making best use of Browser Cache
      • Configure Static Content Caching in IIS
    Admin
  • 13. Tips for reducing page load times
    • Making best use of Browser Cache
      • Configure Static Content Caching in IIS
    Admin
  • 14.
    • Prevent Denial of Service (DOS) attack
      • This should bring the server down
    Tips for reducing page load times When the number of request exceeds the threshold from the same IP , deny further request for some duration (DYOS) Dev
  • 15.
    • Use HTTP compression
    Tips for reducing page load times Fiddler Dev
  • 16.
    • Use Microsoft AJAX Minifier
      • Remove unnecessary elements such as white space, function names, code comments, debug, and trace statements
    Tips for reducing page load times Dev
  • 17.
    • Avoid Redirects
    http://astrology.yahoo.com/astrology A 301 response containing a redirect to http://astrology.yahoo.com/astrology/ Tips for reducing page load times Dev
  • 18.
    • Use CSS sprites or Image maps
    • Avoid using tables for layout
    • Choose the appropriate format for images
    Tips for reducing page load times Designer
  • 19.
    • Don't Scale Images in HTML
    • Make favicon.ico Small and Cacheable
    • Put Style sheets at the Top
    • Put Scripts at the Bottom
    Tips for reducing page load times Designer
  • 20. TIPS FOR MINIMIZING HTTP REQUESTS
  • 21. Fiddler Remove Unnecessary Headers All
  • 22. X-Powered-By: ASP.NET Remove Unnecessary Headers Admin
  • 23. Remove Unnecessary Headers X-Powered-By: ASP.NET Admin
  • 24. Remove Unnecessary Headers X-Powered-By: ASP.NET Admin
  • 25.
      • Server: Microsoft-IIS/6.0
    UrlScan Security Tool Security tool that restricts the types of HTTP requests that Internet Information Services (IIS) will process Remove Unnecessary Headers
      • Server: Microsoft-IIS/7.0
    Admin Dev
  • 26.
      • X-AspNet-Version: 2.0.50727
      • X-AspNet-Version: 1.1.4322
    Remove Unnecessary Headers
      • X-AspNetMvc-Version: 1.0
    Dev
  • 27. QUICK SMALL TIPS
  • 28.
    • Only use ViewState when necessary
    • Set the ScriptManager LoadScriptsbeforeUI property to false.
    • Combine Client Scripts into a Composite Script
    • Minimize the content of the UpdatePanel
    Quick small tips Dev
  • 29.
    • Make JavaScript and CSS files external
    • Avoid using query parameters in static content URLs
    • Place CSS inside the head tags
    • Avoid Redirects
    • Caching AJAX calls on browser
      • Use Get instead of Post
    Quick small tips Dev
  • 30. TOOLS
  • 31.
    • Firebug
    • https://addons.mozilla.org/en-US/firefox/addon/1843
    Tools Dev
  • 32.
    • YSlow
    • https://addons.mozilla.org/en-US/firefox/addon/5369
    Tools Dev
  • 33.
    • Httpwatch
    • http://www.httpwatch.com/download/
    Tools Dev
  • 34.
    • Page-Speed http://code.google.com/speed/page-speed/
    Tools Dev
  • 35.
    • Dust-Me Selectors
      • Firefox extension
      • it finds out which selectors in the stylesheets used are not used. 
    • http://www.sitepoint.com/dustmeselectors/
    Tools Dev
  • 36.
    • Bird-Power
      • Minify the JavaScript Files
      • Minify the CSS Files
      • Mash files together
      • Validate JavaScript Files
      • Integrated with Visual Studio
    • http://www.weirdlover.com/2010/07/18/chirpy-attains-godlike-abilities-in-version-1-0-0-4/
    Tools Dev
  • 37. REFERENCE
  • 38.
    • http://www.codeproject.com/KB/aspnet/10ASPNetPerformance.aspx
    • http://www.4guysfromrolla.com/articles/120209-1.aspx
    • http://developer.yahoo.com/performance/rules.html
    Reference
  • 39.
    • WebClientGuidance 2009-11-30
    • http://technet.microsoft.com/en-us/security/cc242650.aspx
    Reference
  • 40. Questions
  • 41. Thank You