finding and fixing top performance issues with new relic rpm
TRANSCRIPT
![Page 1: Finding and fixing top performance issues with new relic rpm](https://reader034.vdocuments.site/reader034/viewer/2022051515/555dae05d8b42a68328b48ca/html5/thumbnails/1.jpg)
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](https://reader034.vdocuments.site/reader034/viewer/2022051515/555dae05d8b42a68328b48ca/html5/thumbnails/2.jpg)
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](https://reader034.vdocuments.site/reader034/viewer/2022051515/555dae05d8b42a68328b48ca/html5/thumbnails/3.jpg)
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](https://reader034.vdocuments.site/reader034/viewer/2022051515/555dae05d8b42a68328b48ca/html5/thumbnails/4.jpg)
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](https://reader034.vdocuments.site/reader034/viewer/2022051515/555dae05d8b42a68328b48ca/html5/thumbnails/5.jpg)
NewRelic.com
70x per transaction!
![Page 6: Finding and fixing top performance issues with new relic rpm](https://reader034.vdocuments.site/reader034/viewer/2022051515/555dae05d8b42a68328b48ca/html5/thumbnails/6.jpg)
NewRelic.com
1 parent+ 15 children___________________________________
16 queries!
![Page 7: Finding and fixing top performance issues with new relic rpm](https://reader034.vdocuments.site/reader034/viewer/2022051515/555dae05d8b42a68328b48ca/html5/thumbnails/7.jpg)
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](https://reader034.vdocuments.site/reader034/viewer/2022051515/555dae05d8b42a68328b48ca/html5/thumbnails/8.jpg)
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](https://reader034.vdocuments.site/reader034/viewer/2022051515/555dae05d8b42a68328b48ca/html5/thumbnails/9.jpg)
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](https://reader034.vdocuments.site/reader034/viewer/2022051515/555dae05d8b42a68328b48ca/html5/thumbnails/10.jpg)
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](https://reader034.vdocuments.site/reader034/viewer/2022051515/555dae05d8b42a68328b48ca/html5/thumbnails/11.jpg)
NewRelic.com
Waiting in line...
![Page 12: Finding and fixing top performance issues with new relic rpm](https://reader034.vdocuments.site/reader034/viewer/2022051515/555dae05d8b42a68328b48ca/html5/thumbnails/12.jpg)
NewRelic.com
How are we constrained?
![Page 13: Finding and fixing top performance issues with new relic rpm](https://reader034.vdocuments.site/reader034/viewer/2022051515/555dae05d8b42a68328b48ca/html5/thumbnails/13.jpg)
NewRelic.com
+
Scaling Silver Bullet?
+
+?
?
?
![Page 14: Finding and fixing top performance issues with new relic rpm](https://reader034.vdocuments.site/reader034/viewer/2022051515/555dae05d8b42a68328b48ca/html5/thumbnails/14.jpg)
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](https://reader034.vdocuments.site/reader034/viewer/2022051515/555dae05d8b42a68328b48ca/html5/thumbnails/15.jpg)
NewRelic.com
Uh oh...
![Page 16: Finding and fixing top performance issues with new relic rpm](https://reader034.vdocuments.site/reader034/viewer/2022051515/555dae05d8b42a68328b48ca/html5/thumbnails/16.jpg)
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](https://reader034.vdocuments.site/reader034/viewer/2022051515/555dae05d8b42a68328b48ca/html5/thumbnails/17.jpg)
NewRelic.com
CircuitBreakers
CascadingFailures
![Page 18: Finding and fixing top performance issues with new relic rpm](https://reader034.vdocuments.site/reader034/viewer/2022051515/555dae05d8b42a68328b48ca/html5/thumbnails/18.jpg)
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](https://reader034.vdocuments.site/reader034/viewer/2022051515/555dae05d8b42a68328b48ca/html5/thumbnails/19.jpg)
NewRelic.com
Lots of work
Slow
![Page 20: Finding and fixing top performance issues with new relic rpm](https://reader034.vdocuments.site/reader034/viewer/2022051515/555dae05d8b42a68328b48ca/html5/thumbnails/20.jpg)
NewRelic.com
Caching is easy.
Cache invalidation is not.
![Page 21: Finding and fixing top performance issues with new relic rpm](https://reader034.vdocuments.site/reader034/viewer/2022051515/555dae05d8b42a68328b48ca/html5/thumbnails/21.jpg)
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](https://reader034.vdocuments.site/reader034/viewer/2022051515/555dae05d8b42a68328b48ca/html5/thumbnails/22.jpg)
NewRelic.com
Faster apps = Happy customers
+
![Page 23: Finding and fixing top performance issues with new relic rpm](https://reader034.vdocuments.site/reader034/viewer/2022051515/555dae05d8b42a68328b48ca/html5/thumbnails/23.jpg)
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](https://reader034.vdocuments.site/reader034/viewer/2022051515/555dae05d8b42a68328b48ca/html5/thumbnails/24.jpg)
Q&A
![Page 25: Finding and fixing top performance issues with new relic rpm](https://reader034.vdocuments.site/reader034/viewer/2022051515/555dae05d8b42a68328b48ca/html5/thumbnails/25.jpg)
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](https://reader034.vdocuments.site/reader034/viewer/2022051515/555dae05d8b42a68328b48ca/html5/thumbnails/26.jpg)