Presented By: Mahmoud Ghoz ASP.NET Performance Secrets
Agenda <ul><li>Meet the icons </li></ul><ul><li>Tips for reducing page load times. </li></ul><ul><li>Tips for Minimizing H...
Meet the icons ASP.NET Developer Designer IIS Administrator Everyone
Tips for reducing page load times <ul><li>ASP.NET pipeline optimization </li></ul>Dev
Tips for reducing page load times <ul><li>ASP.NET pipeline optimization </li></ul>14 handler are defined in machine.config...
<ul><li>ASP.NET process configuration optimization </li></ul><ul><ul><li>Defines process level properties like  </li></ul>...
<ul><li>ASP.NET process configuration optimization </li></ul><ul><ul><li>The default is in many cases too limiting. </li><...
<ul><li>Content Delivery Network (CDN) </li></ul>Tips for reducing page load times EdgeCast Akamai Limelight Cachefly All
<ul><li>Making best use of Browser Cache </li></ul><ul><ul><li>Cache Static Content for Longer Period </li></ul></ul><ul><...
<ul><li>Making best use of Browser Cache </li></ul><ul><ul><li>Use same URLs </li></ul></ul>Tips for reducing page load ti...
<ul><li>Making best use of Browser Cache </li></ul><ul><ul><li>Configure Static Content Caching in IIS  </li></ul></ul>Tip...
Tips for reducing page load times <ul><li>Making best use of Browser Cache </li></ul><ul><ul><li>Configure Static Content ...
Tips for reducing page load times <ul><li>Making best use of Browser Cache </li></ul><ul><ul><li>Configure Static Content ...
<ul><li>Prevent Denial of Service (DOS) attack  </li></ul><ul><ul><li>This should bring the server down  </li></ul></ul>Ti...
<ul><li>Use HTTP compression </li></ul>Tips for reducing page load times Fiddler Dev
<ul><li>Use Microsoft AJAX Minifier </li></ul><ul><ul><li>Remove unnecessary elements such as white space, function names,...
<ul><li>Avoid Redirects </li></ul>http://astrology.yahoo.com/astrology A 301 response containing a redirect to  http://ast...
<ul><li>Use CSS sprites or Image maps </li></ul><ul><li>Avoid using tables for layout </li></ul><ul><li>Choose the appropr...
<ul><li>Don't Scale Images in HTML </li></ul><ul><li>Make favicon.ico Small and Cacheable </li></ul><ul><li>Put Style shee...
TIPS FOR MINIMIZING HTTP REQUESTS
Fiddler Remove Unnecessary Headers All
X-Powered-By: ASP.NET Remove Unnecessary Headers Admin
Remove Unnecessary Headers X-Powered-By: ASP.NET Admin
Remove Unnecessary Headers X-Powered-By: ASP.NET Admin
<ul><ul><li>Server: Microsoft-IIS/6.0  </li></ul></ul>UrlScan Security Tool Security tool that restricts the types of HTTP...
<ul><ul><li>X-AspNet-Version: 2.0.50727  </li></ul></ul><ul><ul><li>X-AspNet-Version: 1.1.4322  </li></ul></ul>Remove Unne...
QUICK SMALL TIPS
<ul><li>Only use ViewState when necessary </li></ul><ul><li>Set the ScriptManager LoadScriptsbeforeUI property to false. <...
<ul><li>Make JavaScript and CSS files external </li></ul><ul><li>Avoid using query parameters in static content URLs </li>...
TOOLS
<ul><li>Firebug </li></ul><ul><li>https://addons.mozilla.org/en-US/firefox/addon/1843   </li></ul>Tools Dev
<ul><li>YSlow  </li></ul><ul><li>https://addons.mozilla.org/en-US/firefox/addon/5369   </li></ul>Tools Dev
<ul><li>Httpwatch </li></ul><ul><li>http://www.httpwatch.com/download/ </li></ul>Tools Dev
<ul><li>Page-Speed  http://code.google.com/speed/page-speed/ </li></ul>Tools Dev
<ul><li>Dust-Me Selectors </li></ul><ul><ul><li>Firefox extension </li></ul></ul><ul><ul><li>it finds out which selectors ...
<ul><li>Bird-Power </li></ul><ul><ul><li>Minify the JavaScript Files </li></ul></ul><ul><ul><li>Minify the CSS Files </li>...
REFERENCE
<ul><li>http://www.codeproject.com/KB/aspnet/10ASPNetPerformance.aspx   </li></ul><ul><li>http://www.4guysfromrolla.com/ar...
<ul><li>WebClientGuidance  2009-11-30 </li></ul><ul><li>http://technet.microsoft.com/en-us/security/cc242650.aspx   </li><...
Questions
Thank You
Upcoming SlideShare
Loading in...5
×

Asp.net performance secrets

2,869

Published on

Published in: Technology
1 Comment
1 Like
Statistics
Notes
  • 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.
       Reply 
    Are you sure you want to  Yes  No
    Your message goes here
No Downloads
Views
Total Views
2,869
On Slideshare
0
From Embeds
0
Number of Embeds
2
Actions
Shares
0
Downloads
96
Comments
1
Likes
1
Embeds 0
No embeds

No notes for slide

Asp.net performance secrets

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

    Clipping is a handy way to collect important slides you want to go back to later.

×