How to keep you out of the News: Web and End-to-End Performance Tips

46
- Not Just Web: End-to-End - More on http://blog.dynatrace.com - Dynatrace Free Trial: http://bit.ly/dttrial Hosted by: Andreas Grabner - @grabnerandi How to keep you out of the News

Transcript of How to keep you out of the News: Web and End-to-End Performance Tips

Page 1: How to keep you out of the News: Web and End-to-End Performance Tips

1 @Dynatrace

- Not Just Web: End-to-End

- More on http://blog.dynatrace.com

- Dynatrace Free Trial: http://bit.ly/dttrial

Hosted by: Andreas Grabner - @grabnerandi

How to keep you out of the News

Page 2: How to keep you out of the News: Web and End-to-End Performance Tips

2 @Dynatrace

Nobody wants this …

Page 3: How to keep you out of the News: Web and End-to-End Performance Tips

3 @Dynatrace

Page 4: How to keep you out of the News: Web and End-to-End Performance Tips

4 @Dynatrace

Nor this …

Page 5: How to keep you out of the News: Web and End-to-End Performance Tips

5 @Dynatrace

Page 6: How to keep you out of the News: Web and End-to-End Performance Tips

6 @Dynatrace

As it leads to this …

Page 7: How to keep you out of the News: Web and End-to-End Performance Tips

7 @Dynatrace

The “War Room”

Facebook – December 2012

Page 8: How to keep you out of the News: Web and End-to-End Performance Tips

8 @Dynatrace

And potentially to this …

Page 9: How to keep you out of the News: Web and End-to-End Performance Tips

9 @Dynatrace

Page 10: How to keep you out of the News: Web and End-to-End Performance Tips

10 @Dynatrace

And this …

Page 11: How to keep you out of the News: Web and End-to-End Performance Tips

11 @Dynatrace

Page 12: How to keep you out of the News: Web and End-to-End Performance Tips

12 @Dynatrace

And that’s why Business doesn’t like it either …

Page 13: How to keep you out of the News: Web and End-to-End Performance Tips

13 @Dynatrace

~80% of problems

caused by ~20% patterns

YES we know this

80% Dev Time in Bug Fixing

$60B Defect Costs

BUT

Page 14: How to keep you out of the News: Web and End-to-End Performance Tips

14 @Dynatrace

5 Situations on

WHY this happened,

HOW to avoid it

Page 15: How to keep you out of the News: Web and End-to-End Performance Tips

15 @Dynatrace

Page 16: How to keep you out of the News: Web and End-to-End Performance Tips

16 @Dynatrace

#Push without a Plan

Page 17: How to keep you out of the News: Web and End-to-End Performance Tips

17 @Dynatrace

Mobile Landing Page of Super Bowl Ad

434 Resources in total on that page:230 JPEGs, 75 PNGs, 50 GIFs, …

Total size of ~ 20MB

Page 18: How to keep you out of the News: Web and End-to-End Performance Tips

18 @Dynatrace

m.store.com redirects to www.store.com

ALL CSS and JS files are

redirected to the www domain

This is a lot of time “wasted” especially on high latency mobile

connections

Page 19: How to keep you out of the News: Web and End-to-End Performance Tips

19 @Dynatrace

Fifa.com during Worldcup

http://apmblog.compuware.com/2014/05/21/is-the-fifa-world-cup-website-ready-for-the-tournament/

Page 20: How to keep you out of the News: Web and End-to-End Performance Tips

20 @Dynatrace

Page 21: How to keep you out of the News: Web and End-to-End Performance Tips

21 @Dynatrace

#“Blindly” (Re)use Existing

Components

Page 22: How to keep you out of the News: Web and End-to-End Performance Tips

22 @Dynatrace

Requirement: We need a report

Page 23: How to keep you out of the News: Web and End-to-End Performance Tips

23 @Dynatrace

Using Hibernate results in 4k+ SQL Statements to display 3 items!

Hibernate Executes 4k+ Statements

Individual Execution VERY

FAST

But Total SUM takes 6s

Page 24: How to keep you out of the News: Web and End-to-End Performance Tips

24 @Dynatrace

Page 25: How to keep you out of the News: Web and End-to-End Performance Tips

25 @Dynatrace

Deployment gone bad

Page 26: How to keep you out of the News: Web and End-to-End Performance Tips

26 @Dynatrace

Test Environment

Production Environment

8x slower

3x more SQL

Page 27: How to keep you out of the News: Web and End-to-End Performance Tips

27 @Dynatrace

Test Environment Production Environment

Hibernate, Classloading,

XML – The Key Hotspots

Hibernate, Classloading, XML

– The Key Hotspots

I/O for Web Requests doesn’t

even show up!

That’s Normal: Having I/O for Web

Request as main contributor

Page 28: How to keep you out of the News: Web and End-to-End Performance Tips

28 @Dynatrace

Top Contributor Class.getInterfaces

Called from Hibernates FieldInterceptionHelper

These calls all originate form thousands of calls to

find item by code

Page 29: How to keep you out of the News: Web and End-to-End Performance Tips

29 @Dynatrace

Top Methods related to XML Processing

Classloading is triggered through CustomMonnkey and the Xalan

Parser

Classloading is triggered through CustomMonkey and the Xalan

Parser

Page 30: How to keep you out of the News: Web and End-to-End Performance Tips

30 @Dynatrace

Page 31: How to keep you out of the News: Web and End-to-End Performance Tips

31 @Dynatrace

Architectural Decisions gone

Bad

Page 32: How to keep you out of the News: Web and End-to-End Performance Tips

32 @Dynatrace

We wanted Web 2.0 and Mobile Ready!

Page 33: How to keep you out of the News: Web and End-to-End Performance Tips

33 @Dynatrace

Page 34: How to keep you out of the News: Web and End-to-End Performance Tips

34 @Dynatrace

Page 35: How to keep you out of the News: Web and End-to-End Performance Tips

35 @Dynatrace

Page 36: How to keep you out of the News: Web and End-to-End Performance Tips

36 @Dynatrace

Don’t assume

You know the environment

Page 37: How to keep you out of the News: Web and End-to-End Performance Tips

37 @Dynatrace

Distance Calculation Issues

480km biking in 1 hour!

Solution: Unit Test in Live App reports Geo

Calc Problems

Finding: Only happens on certain

Android versions

Page 38: How to keep you out of the News: Web and End-to-End Performance Tips

38 @Dynatrace

3rd Party Issues

Impact of bad 3rd party calls

Page 39: How to keep you out of the News: Web and End-to-End Performance Tips

39 @Dynatrace

Page 40: How to keep you out of the News: Web and End-to-End Performance Tips

40 @Dynatrace

#No “Agile” Deployment

Page 41: How to keep you out of the News: Web and End-to-End Performance Tips

41 @Dynatrace

Load Spike resulted in UnavailabilityAd o

n air

Page 42: How to keep you out of the News: Web and End-to-End Performance Tips

42 @Dynatrace

Alternative: “GoDaddy goes DevOps”

1h before SuperBowl KickOff

1h after Game ended

Page 43: How to keep you out of the News: Web and End-to-End Performance Tips

43 @Dynatrace

Behind the Scenes

Page 44: How to keep you out of the News: Web and End-to-End Performance Tips

44 @Dynatrace

Quick Demo

Page 45: How to keep you out of the News: Web and End-to-End Performance Tips

45 @Dynatrace

• Get it here: http://bit.ly/dttrial

• YouTube Tutorials: http://bit.ly/dttutorials

• Live Q&A Sessions: http://bit.ly/onlineperfclinic

• Contact me: [email protected] - @grabnerandi

•Special Offer:

• Lifetime license for Browser Diagnostics

• 180 Days for End-To-End

30 Days Dynatrace Free Trial

Page 46: How to keep you out of the News: Web and End-to-End Performance Tips

46 @Dynatrace

Andreas GrabnerDynatrace Developer Advocate

@grabnerandi

http://blog.dynatrace.com