Web Performance Monitoring Tales

1,935 views

Published on

Catchpoint systems
Web Performance Monitoring
WPO Overview
Monitoring Overview
When things go wrong on the internet

Published in: Technology, Design
0 Comments
3 Likes
Statistics
Notes
  • Be the first to comment

No Downloads
Views
Total views
1,935
On SlideShare
0
From Embeds
0
Number of Embeds
752
Actions
Shares
0
Downloads
2
Comments
0
Likes
3
Embeds 0
No embeds

No notes for slide

Web Performance Monitoring Tales

  1. 1. 5/18/11<br />CATCHPOINT SYSTEMS . CONFIDENTIAL . © 2011 . ALL RIGHTS RESERVED<br />Web Performance Monitoring Tales<br />The Internet, A Series of Tubes…<br />Mehdi Daoudi – CEO Catchpoint Systems – mehdi@catchpoint.com<br />
  2. 2. We all want to make web sites load faster!<br />Performance is the 5th P of the Marketing Mix, Performance is a Business Differentiator!<br />Bad performance: <br />Not good for business<br />Not good for brands<br />Not good for end users<br />Not good for IT<br />5/18/11<br />CATCHPOINT SYSTEMS . CONFIDENTIAL . © 2011 . ALL RIGHTS RESERVED<br />2<br />Welcome and Thank you!<br />
  3. 3. WPO Best Practices<br />CATCHPOINT SYSTEMS . CONFIDENTIAL . © 2011 . ALL RIGHTS RESERVED<br />3<br />Low Effort:<br /><ul><li>Reduce # HTTP requests if possible 
  4. 4. Use a CDN (Edgecast, Cotendo, Akamai, Cdnetworks, NetDNA)
  5. 5. Domain Sharding
  6. 6. HTTP 1.1 Keep Alives (and make sure it is working!)
  7. 7. Gzip CSS and JS
  8. 8. Audit your CDN, make sure the right headers are in place at your origin server!
  9. 9. Audit your Web front end servers to ensure Gziping, Keep Alives
  10. 10. Caching : Expire Headers / Public for CDN to ensure Cache-ability
  11. 11. Remove ETAGS
  12. 12. Chunked transfer encoding </li></ul>Medium Effort:<br /><ul><li>CSS @ the Top
  13. 13. JS at the bottom
  14. 14. Minify JS and CSS
  15. 15. Optimize images
  16. 16. CSS Sprite</li></ul>More Complex:<br /><ul><li>Outclip, ControlJS… Asynchronously loading JS / Lazy Loading</li></li></ul><li>WPO Applied<br />5/18/11<br />CATCHPOINT SYSTEMS . CONFIDENTIAL . © 2011 . ALL RIGHTS RESERVED<br />4<br />
  17. 17. WPO Applied – It works!!!<br />5/18/11<br />CATCHPOINT SYSTEMS . CONFIDENTIAL . © 2011 . ALL RIGHTS RESERVED<br />5<br />
  18. 18. Using a CDN improves East Coast Times<br />5/18/11<br />CATCHPOINT SYSTEMS . CONFIDENTIAL . © 2011 . ALL RIGHTS RESERVED<br />6<br />Introduction of CDN<br />
  19. 19. 80 / 20 Rule<br />5/18/11<br />CATCHPOINT SYSTEMS . CONFIDENTIAL . © 2011 . ALL RIGHTS RESERVED<br />7<br />Steve Souders:<br />“80% of the end-user response time is spent <br />on the front-end. Start there.”<br />Well when things go wrong it’s more like 20 / 80!<br />
  20. 20. Monitoring<br />5/18/11<br />CATCHPOINT SYSTEMS . CONFIDENTIAL . © 2011 . ALL RIGHTS RESERVED<br />8<br />DB monitoring<br />RUM<br />External Monitoring<br />Internal Monitoring<br />Network<br />
  21. 21. Monitoring<br />5/18/11<br />CATCHPOINT SYSTEMS . CONFIDENTIAL . © 2011 . ALL RIGHTS RESERVED<br />9<br />
  22. 22. Collection of Plumbing Tales<br />5/18/11<br />CATCHPOINT SYSTEMS . CONFIDENTIAL . © 2011 . ALL RIGHTS RESERVED<br />10<br />
  23. 23. My site is down … HELP!!!!<br />5/18/11<br />CATCHPOINT SYSTEMS . CONFIDENTIAL . © 2011 . ALL RIGHTS RESERVED<br />11<br />100 % Downtime<br />
  24. 24. My site is down … HELP!!!!<br />5/18/11<br />CATCHPOINT SYSTEMS . CONFIDENTIAL . © 2011 . ALL RIGHTS RESERVED<br />12<br />Varnish issuing 302 to cyber-drain<br />100 % Downtime<br />
  25. 25. Clogged Internet Tube? <br />5/18/11<br />CATCHPOINT SYSTEMS . CONFIDENTIAL . © 2011 . ALL RIGHTS RESERVED<br />13<br />
  26. 26. Clogged Internet Tube? <br />5/18/11<br />CATCHPOINT SYSTEMS . CONFIDENTIAL . © 2011 . ALL RIGHTS RESERVED<br />14<br />Latency increase<br />
  27. 27. Clogged Internet Tube? <br />5/18/11<br />CATCHPOINT SYSTEMS . CONFIDENTIAL . © 2011 . ALL RIGHTS RESERVED<br />15<br />Latency Increase by 100 ms<br />
  28. 28. What !@&(&@# is happening?<br />5/18/11<br />CATCHPOINT SYSTEMS . CONFIDENTIAL . © 2011 . ALL RIGHTS RESERVED<br />16<br />20 % Packet loss<br />
  29. 29. DNS huh? What is DNS? <br />5/18/11<br />CATCHPOINT SYSTEMS . CONFIDENTIAL . © 2011 . ALL RIGHTS RESERVED<br />17<br />Adserving company has performance & discrepancies issues… <br />DNS Provider Change<br />
  30. 30. DNS huh? What is DNS? <br />5/18/11<br />CATCHPOINT SYSTEMS . CONFIDENTIAL . © 2011 . ALL RIGHTS RESERVED<br />18<br />Adserving company has performance & discrepancies issues… Moved to another DNS provider! <br />DNS Provider Change<br />
  31. 31. Midnight call with Customer…Houston we have a problem!<br />5/18/11<br />CATCHPOINT SYSTEMS . CONFIDENTIAL . © 2011 . ALL RIGHTS RESERVED<br />19<br />New Load Balancer Config – Loss of Stickiness<br />
  32. 32. Impossible… I can not have downtime<br />5/18/11<br />CATCHPOINT SYSTEMS . CONFIDENTIAL . © 2011 . ALL RIGHTS RESERVED<br />20<br />CDN handing over Dead <br />NS server<br />
  33. 33. Web Site Performance X2. Why?<br />5/18/11<br />CATCHPOINT SYSTEMS . CONFIDENTIAL . © 2011 . ALL RIGHTS RESERVED<br />21<br />
  34. 34. Oops … bad httpd.conf file<br />5/18/11<br />CATCHPOINT SYSTEMS . CONFIDENTIAL . © 2011 . ALL RIGHTS RESERVED<br />22<br />Apache configuration!<br />No More Keep Alives<br />
  35. 35. Why am I seeing spikes…?let’s see under the hood…<br />5/18/11<br />CATCHPOINT SYSTEMS . CONFIDENTIAL . © 2011 . ALL RIGHTS RESERVED<br />23<br />
  36. 36. Why am I seeing spikes…?let’s see under the hood…<br />5/18/11<br />CATCHPOINT SYSTEMS . CONFIDENTIAL . © 2011 . ALL RIGHTS RESERVED<br />24<br />Database Slowness<br />impacts user experience<br />
  37. 37. External Monitoring<br />5/18/11<br />CATCHPOINT SYSTEMS . CONFIDENTIAL . © 2011 . ALL RIGHTS RESERVED<br />25<br />Simulates End User activity<br />Measures the end to end transaction<br />Continuous, 24x7<br />Detect anomalies<br />Track performance degradations / improvements over time<br />Measures every Component<br />
  38. 38. Monitoring Best Practices<br />CATCHPOINT SYSTEMS . CONFIDENTIAL . © 2011 . ALL RIGHTS RESERVED<br />26<br />Monitor VS Measure:<br /><ul><li>Monitor: High Frequency (Up / Down)
  39. 39. Measure: High Fidelity (30-60 Minutes / Browser based or good Emulation)</li></ul>Monitor every Component:<br /><ul><li>Setup monitoring for every key provider / hostname
  40. 40. DNS
  41. 41. Origin servers
  42. 42. if Multiple datacenters, monitor them individually</li></ul>Baseline very often, track improvement or degradation<br />Keep an eye on performance during critical business hours (Volume)<br />Review Daily / Weekly<br />Alerts on % Delta<br />
  43. 43. CATCHPOINT SYSTEMS . CONFIDENTIAL . © 2011 . ALL RIGHTS RESERVED<br />27<br />Toolbox<br />
  44. 44. Toolbox<br />CATCHPOINT SYSTEMS . CONFIDENTIAL . © 2011 . ALL RIGHTS RESERVED<br />28<br />Standalone<br /><ul><li>Chrome – Developer tool
  45. 45. IE 9 – Developer tool
  46. 46. Fiddler
  47. 47. HTTPWatch
  48. 48. Yslow
  49. 49. Dynatrace
  50. 50. Wireshark
  51. 51. Firebug
  52. 52. Dig for DNS
  53. 53. MTR (Matt traceroute)</li></ul>Online:<br /><ul><li>WebPageTest
  54. 54. Google Page speed (http://pagespeed.googlelabs.com/)</li></ul><br />
  55. 55. Closing the Loop<br />CATCHPOINT SYSTEMS . CONFIDENTIAL . © 2011 . ALL RIGHTS RESERVED<br />29<br />Rule #1: <br />You can't improve what you can't measure.<br /> Monitor Action Plan  Optimize Monitor… do it again<br />Rule #2:<br />It isn’t over till it’s over. <br />And it’s never over.<br />
  56. 56. CATCHPOINT SYSTEMS . CONFIDENTIAL . © 2011 . ALL RIGHTS RESERVED<br />30<br />THANK YOU.<br />http://blog.catchpoint.com<br />@catchpoint<br />

×