Magento Imagine eCommerce Conference February 2011: Optimizing Magento For Performance
Magento Performance Bootcamp
description
Transcript of Magento Performance Bootcamp
![Page 1: Magento Performance Bootcamp](https://reader034.fdocuments.us/reader034/viewer/2022052522/554d288db4c905ca208b50a8/html5/thumbnails/1.jpg)
Ray Bogman [[email protected]]www.jira.nl
Magento Performance Bootcamp
Magento Performance Bootcamp
Website Performance Optimization (WPO)
Server Performance Optimization (SPO)
Jira ICT www.jira.nl - @jiraict
![Page 2: Magento Performance Bootcamp](https://reader034.fdocuments.us/reader034/viewer/2022052522/554d288db4c905ca208b50a8/html5/thumbnails/2.jpg)
Ray Bogman [[email protected]]www.jira.nl
Magento Performance Bootcamp
Bootcamp itinerary
• SPO• WPO• Magento• Break• Workshop
![Page 3: Magento Performance Bootcamp](https://reader034.fdocuments.us/reader034/viewer/2022052522/554d288db4c905ca208b50a8/html5/thumbnails/3.jpg)
Ray Bogman [[email protected]]www.jira.nl
Magento Performance Bootcamp
About me
Ray Bogman• Computer Geek since 1983• Ethical hacker, security specialist• Performance specialist• Founder Jira ICT• Magento Lover since Day One• Joomla/Magento trainer/consultant
![Page 4: Magento Performance Bootcamp](https://reader034.fdocuments.us/reader034/viewer/2022052522/554d288db4c905ca208b50a8/html5/thumbnails/4.jpg)
Ray Bogman [[email protected]]www.jira.nl
Magento Performance Bootcamp
My site is getting slower and slower,
what's the problem?
![Page 5: Magento Performance Bootcamp](https://reader034.fdocuments.us/reader034/viewer/2022052522/554d288db4c905ca208b50a8/html5/thumbnails/5.jpg)
Ray Bogman [[email protected]]www.jira.nl
Magento Performance Bootcamp
Webmaster Tools - Stress!
Course: http://www.webpagetest.org/forums/showthread.php?tid=10936
![Page 6: Magento Performance Bootcamp](https://reader034.fdocuments.us/reader034/viewer/2022052522/554d288db4c905ca208b50a8/html5/thumbnails/6.jpg)
Ray Bogman [[email protected]]www.jira.nl
Magento Performance Bootcamp
What is the problem, how do I fix this?
• Can I fix this myself?• Where do I look?
![Page 7: Magento Performance Bootcamp](https://reader034.fdocuments.us/reader034/viewer/2022052522/554d288db4c905ca208b50a8/html5/thumbnails/7.jpg)
Ray Bogman [[email protected]]www.jira.nl
Magento Performance Bootcamp
the Performance Golden Rule [20 - 80%]
“80-90% of the end-user response time is spent on the frontend.Start there.”By Steve Souders
![Page 8: Magento Performance Bootcamp](https://reader034.fdocuments.us/reader034/viewer/2022052522/554d288db4c905ca208b50a8/html5/thumbnails/8.jpg)
Ray Bogman [[email protected]]www.jira.nl
Magento Performance Bootcamp
SPOServer Performance Optimization
![Page 9: Magento Performance Bootcamp](https://reader034.fdocuments.us/reader034/viewer/2022052522/554d288db4c905ca208b50a8/html5/thumbnails/9.jpg)
Ray Bogman [[email protected]]www.jira.nl
Magento Performance Bootcamp
SPO – Server Performance Optimization
![Page 10: Magento Performance Bootcamp](https://reader034.fdocuments.us/reader034/viewer/2022052522/554d288db4c905ca208b50a8/html5/thumbnails/10.jpg)
Ray Bogman [[email protected]]www.jira.nl
Magento Performance Bootcamp
SPO: Update your LAMP stack
• Centos 6.2
• Apache 2.4.1
• Mysql 5.5.23
• PHP 5.3.10
![Page 11: Magento Performance Bootcamp](https://reader034.fdocuments.us/reader034/viewer/2022052522/554d288db4c905ca208b50a8/html5/thumbnails/11.jpg)
Ray Bogman [[email protected]]www.jira.nl
Magento Performance Bootcamp
SPO: Setup Caching layer• APC• Memcache• tmpfs• Xcache• Eaccelerator• Zend Optimizer+• Varnish• etc...
![Page 12: Magento Performance Bootcamp](https://reader034.fdocuments.us/reader034/viewer/2022052522/554d288db4c905ca208b50a8/html5/thumbnails/12.jpg)
Ray Bogman [[email protected]]www.jira.nl
Magento Performance Bootcamp
SPO: Memcache vs. APC vs. tmpfs• Memcache
– Cache storage– Load balanced– Distributed caching system
• ACP – Non-distributed caching system– Dedicated use, not on shared servers– Opcode cache
• Tmpfs– Temporary file storage– Only “root” can do this– Static files in memory like css/js/html
![Page 13: Magento Performance Bootcamp](https://reader034.fdocuments.us/reader034/viewer/2022052522/554d288db4c905ca208b50a8/html5/thumbnails/13.jpg)
Ray Bogman [[email protected]]www.jira.nl
Magento Performance Bootcamp
SPO : Database tuning
• slow_queries_log• Mysqltuner
Known problem:Magento 1.6.1 < older issues w/ Mysql 5.1
![Page 15: Magento Performance Bootcamp](https://reader034.fdocuments.us/reader034/viewer/2022052522/554d288db4c905ca208b50a8/html5/thumbnails/15.jpg)
Ray Bogman [[email protected]]www.jira.nl
Magento Performance Bootcamp
WPOWebsite Performance Optimization
![Page 16: Magento Performance Bootcamp](https://reader034.fdocuments.us/reader034/viewer/2022052522/554d288db4c905ca208b50a8/html5/thumbnails/16.jpg)
Ray Bogman [[email protected]]www.jira.nl
Magento Performance Bootcamp
WPO: What to do
• Reduce the number of HTTP requests• CSS Sprites● Compress your content (Gzip)● Keep-Alive● Deflate/Expires content● Reduce the image size (WebP, etc...)● Use a Content Delivery Network (CDN)● Optimize .htacces● Cookie free domain for static content
![Page 17: Magento Performance Bootcamp](https://reader034.fdocuments.us/reader034/viewer/2022052522/554d288db4c905ca208b50a8/html5/thumbnails/17.jpg)
Ray Bogman [[email protected]]www.jira.nl
Magento Performance Bootcamp
WPO: Before optimized .htaccess
Source:http://www.webpagetest.org/result/120524_F0_CBM/5/performance_optimization/#cache_static_content
![Page 18: Magento Performance Bootcamp](https://reader034.fdocuments.us/reader034/viewer/2022052522/554d288db4c905ca208b50a8/html5/thumbnails/18.jpg)
Ray Bogman [[email protected]]www.jira.nl
Magento Performance Bootcamp
WPO: After optimized .htaccess
Source:http://www.webpagetest.org/result/120524_G5_CFZ/4/performance_optimization/#cache_static_content
![Page 19: Magento Performance Bootcamp](https://reader034.fdocuments.us/reader034/viewer/2022052522/554d288db4c905ca208b50a8/html5/thumbnails/19.jpg)
Ray Bogman [[email protected]]www.jira.nl
Magento Performance Bootcamp
MPOMagento Performance Optimization
![Page 20: Magento Performance Bootcamp](https://reader034.fdocuments.us/reader034/viewer/2022052522/554d288db4c905ca208b50a8/html5/thumbnails/20.jpg)
Ray Bogman [[email protected]]www.jira.nl
Magento Performance Bootcamp
How to optimize Magento?
• Flat Product, Flat Catalog● Compilation● Caching
● Nitrogento● Ez Zoom● Full Page Cache Pro● Advanced Block Cache
● Less Modules or turn them off● Not to many JS frameworks
![Page 22: Magento Performance Bootcamp](https://reader034.fdocuments.us/reader034/viewer/2022052522/554d288db4c905ca208b50a8/html5/thumbnails/22.jpg)
Ray Bogman [[email protected]]www.jira.nl
Magento Performance Bootcamp
Testing & Measuring
• ab• siege• curl-loader• httperf• new-relic• gtmetrix• webpagetest• etc...
![Page 25: Magento Performance Bootcamp](https://reader034.fdocuments.us/reader034/viewer/2022052522/554d288db4c905ca208b50a8/html5/thumbnails/25.jpg)
Ray Bogman [[email protected]]www.jira.nl
Magento Performance Bootcamp
Techniques & Resources
•YSlow (Firebug/Firefox plugin)
•Google Page Speed (Firefox/Chrome plugin)
•Webpagetest.org•Gtmetrix.com •Whatsmyip.org/http_compression•Smushit.com/ysmush.it•Host-tracker.com•CSS Sprites (CSS technique)
•CDN (Content Delivery Network)
•Byte Internet (Magento hosting provider)
•CloudVPS (Magento VPS images created by Jira)
![Page 26: Magento Performance Bootcamp](https://reader034.fdocuments.us/reader034/viewer/2022052522/554d288db4c905ca208b50a8/html5/thumbnails/26.jpg)
Ray Bogman [[email protected]]www.jira.nl
Magento Performance Bootcamp
More Jira ICT
•WPO/SPO audits– jira.nl/speed
•Training & demo-days– www.magento-competence-center.com/– cursus.jira.nl
![Page 27: Magento Performance Bootcamp](https://reader034.fdocuments.us/reader034/viewer/2022052522/554d288db4c905ca208b50a8/html5/thumbnails/27.jpg)
Ray Bogman [[email protected]]www.jira.nl
Magento Performance Bootcamp
Thank [email protected]
#jiraict
www.jira.nlhttp://www.slideshare.net/jiraicthttp://www.facebook.com/jiraict