finding and fixing top performance issues with new relic rpm

26
Finding and Fixing Performance Issues with New Relic RPM December 8th, 2010 @ 10AM PST Brian Doll - New Relic Application Performance Engineer

Upload: brian-doll

Post on 21-May-2015

2.633 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Finding and fixing top performance issues with new relic rpm

Finding and Fixing Performance Issues with New Relic RPMDecember 8th, 2010 @ 10AM PSTBrian Doll - New RelicApplication Performance Engineer

Page 2: Finding and fixing top performance issues with new relic rpm

Brian DollApplication Performance Engineering

http://www.slideshare.net/briandoll

New Relic is the leading software as a service provider of application performance management tools. More than 6,000 companies use RPM™, to manage more than 90,000 Java, .net, php, Ruby, or JRuby applications. RPM enables developers and operations teams to monitor, troubleshoot and optimize their web applications.

Page 3: Finding and fixing top performance issues with new relic rpm

NewRelic.com

RPM ✓Monitors✓Troubleshoots✓Tunes

Web Applications

In the Cloud or

Datacenter

Page 4: Finding and fixing top performance issues with new relic rpm

NewRelic.com

Top 5 Performance Issues#5 N+1 Queries

Death by a thousand paper cuts

Page 5: Finding and fixing top performance issues with new relic rpm

NewRelic.com

70x per transaction!

Page 6: Finding and fixing top performance issues with new relic rpm

NewRelic.com

1 parent+ 15 children___________________________________

16 queries!

Page 7: Finding and fixing top performance issues with new relic rpm

NewRelic.com

Eager vs. Lazy Loading

EagerLazy

vs.

2 SQL queries vs. 16 SQL queries

EagerLazy

vs.

2 SQL queries vs. 16 SQL queries

Page 8: Finding and fixing top performance issues with new relic rpm

NewRelic.com

Top 5 Performance Issues#5 N+1 Queries

#4 Slow SQL performance

Page 9: Finding and fixing top performance issues with new relic rpm

NewRelic.com

Transaction Traces

Missing index

Almost one full second!

Explain Plans are Maps to Improving SQL Queries

Page 10: Finding and fixing top performance issues with new relic rpm

NewRelic.com

Top 5 Performance Issues#5 N+1 Queries

#4 Slow SQL performance

#3 Insufficient System Resources

Page 11: Finding and fixing top performance issues with new relic rpm

NewRelic.com

Waiting in line...

Page 12: Finding and fixing top performance issues with new relic rpm

NewRelic.com

How are we constrained?

Page 13: Finding and fixing top performance issues with new relic rpm

NewRelic.com

+

Scaling Silver Bullet?

+

+?

?

?

Page 14: Finding and fixing top performance issues with new relic rpm

NewRelic.com

Top 5 Performance Issues#5 N+1 Queries

#4 Slow SQL performance

#3 Insufficient System Resources

#2 Web Service Domino Effect

Page 15: Finding and fixing top performance issues with new relic rpm

NewRelic.com

Uh oh...

Page 16: Finding and fixing top performance issues with new relic rpm

NewRelic.com

/b

!"#$

!"#$

!"#$

!"#$

!"#$!%&'()*

Search service unavailable

Unhappy customers

Lost sales

leads to...

leads to...

Page 17: Finding and fixing top performance issues with new relic rpm

NewRelic.com

CircuitBreakers

CascadingFailures

Page 18: Finding and fixing top performance issues with new relic rpm

NewRelic.com

Top 5 Performance Issues#5 N+1 Queries

#4 Slow SQL performance

#3 Insufficient System Resources

#2 Web Service Domino Effect

#1 Repetitive Work Syndrome or Cache as cache can

Page 19: Finding and fixing top performance issues with new relic rpm

NewRelic.com

Lots of work

Slow

Page 20: Finding and fixing top performance issues with new relic rpm

NewRelic.com

Caching is easy.

Cache invalidation is not.

Page 21: Finding and fixing top performance issues with new relic rpm

NewRelic.com

How RPM Works

a!

a! a!

a!

Https

Https

Applications

App Team

New Relic Service

๏ Secure, reliable service๏ No private user data๏ View app performance from anywhere

Supports

Page 22: Finding and fixing top performance issues with new relic rpm

NewRelic.com

Faster apps = Happy customers

+

Page 23: Finding and fixing top performance issues with new relic rpm

NewRelic.com

15% discount forJoyent customers

Special Offer:

•Installs in 2 minutes

•Supports Joyent SmartMachines✓Java✓Ruby✓PHP

Page 24: Finding and fixing top performance issues with new relic rpm

Q&A

Page 25: Finding and fixing top performance issues with new relic rpm

NewRelic.com

Questions?

• Live Q&A during the webinar

• http://support.newrelic.com/

• Email: [email protected]

• Twitter: @NewRelic

• IRC: #NewRelic on Freenode

Page 26: Finding and fixing top performance issues with new relic rpm