Finding and Fixing Performance Issues with New Relic RPMDecember 8th, 2010 @ 10AM PSTBrian Doll - New RelicApplication Performance Engineer
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.
NewRelic.com
RPM ✓Monitors✓Troubleshoots✓Tunes
Web Applications
In the Cloud or
Datacenter
NewRelic.com
Top 5 Performance Issues#5 N+1 Queries
Death by a thousand paper cuts
NewRelic.com
70x per transaction!
NewRelic.com
1 parent+ 15 children___________________________________
16 queries!
NewRelic.com
Eager vs. Lazy Loading
EagerLazy
vs.
2 SQL queries vs. 16 SQL queries
EagerLazy
vs.
2 SQL queries vs. 16 SQL queries
NewRelic.com
Top 5 Performance Issues#5 N+1 Queries
#4 Slow SQL performance
NewRelic.com
Transaction Traces
Missing index
Almost one full second!
Explain Plans are Maps to Improving SQL Queries
NewRelic.com
Top 5 Performance Issues#5 N+1 Queries
#4 Slow SQL performance
#3 Insufficient System Resources
NewRelic.com
Waiting in line...
NewRelic.com
How are we constrained?
NewRelic.com
+
Scaling Silver Bullet?
+
+?
?
?
NewRelic.com
Top 5 Performance Issues#5 N+1 Queries
#4 Slow SQL performance
#3 Insufficient System Resources
#2 Web Service Domino Effect
NewRelic.com
Uh oh...
NewRelic.com
/b
!"#$
!"#$
!"#$
!"#$
!"#$!%&'()*
Search service unavailable
Unhappy customers
Lost sales
leads to...
leads to...
NewRelic.com
CircuitBreakers
CascadingFailures
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
NewRelic.com
Lots of work
Slow
NewRelic.com
Caching is easy.
Cache invalidation is not.
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
NewRelic.com
Faster apps = Happy customers
+
NewRelic.com
15% discount forJoyent customers
Special Offer:
•Installs in 2 minutes
•Supports Joyent SmartMachines✓Java✓Ruby✓PHP
Q&A
NewRelic.com
Questions?
• Live Q&A during the webinar
• http://support.newrelic.com/
• Email: [email protected]
• Twitter: @NewRelic
• IRC: #NewRelic on Freenode