SlideShare a Scribd company logo
High Performance WordPress Gareth Davies
Why performance? Speed so people don’t wait Scale serve as many requests to as many people as possible, concurrently
LAMP A stack LAMP Linux Apache MySQL PHP
WordPress Written in PHP Uses MySQL as the database Apache/nginx can be used for HTTP
WordPress Core (installed) Themes Plugins
OS Level Tuning You’re 64-bit by now Log errors, and nothing else TCP/IP settings Only run services that you need on a server
OS Level Tuning Simple firewall to stop bots Read log files from logwatch -- hardware dies too vmem.sh Filesystem - XFS is best, EXT3, EXT4 are OK too
Apache Tune Apache (httpd.conf) ab & httperf MaxClients Defaults are usually horrible
MySQL Defaults are terrible, use my.cnf mysqltuner.pl, tuningprimer.sh mytop Use maatkit + mk-query-digest See general & slow query log (for your plugin problems) InnoDB is better for concurrency, though by default you’re probably using MyISAM mysqlslap for benchmarking
PHP Memory settings Opcode cache XCache, EAccelerator, APC php.ini
WordPress Plugins are often horribly coded Themes can have direct calls to the database
WordPress Look at wp_options tables Disable plugins Try the new Twenty Ten theme wp_config.php: WP_HOME, WP_SITEURL
Still struggling? Content Delivery Networks (CDN) Minify Caching
WP Caches WP Super Cache W3 Total Cache
More you can do use mod_proxy and serve static content CDN: Amazon S3+CloudFront is affordable use browser cache (set long expires)
Separate machines 2 machines web server database server memcached servers?
Varnish Varnish serves everything from memory httpd on a different port, run varnish on port 80 and point it to httpd port
Further growth Its now time to think about MySQL replication (master-slave setups) memcached to keep caches of query results (up to 1M) in memory HyperDB supports data partitioning, and can read from multiple databases
WordPress.COM several billion HTTP queries per day, billions of MySQL queries too HP hardware, all SSD
HipHop from Facebook http://huichen.org/en/2010/06/wordpress-3-benchmark/ http://huichen.org/en/2010/06/wordpress-3-benchmark-part-2/ ~2.7x improvement in performance
Find Me @ShaolinTiger on Twitter http://www.shaolintiger.com – My Blog shaolintiger at gmail – Email me

More Related Content

What's hot (20)

KEY
MySQL Performance - SydPHP October 2011
Graham Weldon
 
PPTX
Mysql data replication
Tuấn Ngô
 
ODP
Mysql 2007 Tech At Digg V3
epee
 
PPT
Basic Knowledge on MySql Replication
Tasawr Interactive
 
PPTX
AEM WITH MONGODB
Nate Nelson
 
ODP
Experience In Building Scalable Web Sites Through Infrastructure's View
Phuwadon D
 
PPT
Caching Data For Performance
Dave Ross
 
PDF
Memcache and Drupal - Vaibhav Jain
Drupal Camp Delhi
 
PPT
Oreilly Webcast Jun17
Sean Hull
 
PPTX
Serve like a boss (part two)
Hamed Nemati
 
PDF
PBX on a non-specialized distro
StefanoFancello
 
PPT
Apache
jtpond
 
PDF
How to turn any dynamic website into a static site | 24.01.2018 | Artem Danil...
LumoSpark
 
ODP
Forget MAMP and WAMP, Use Virtual Box to Have a Real Ubuntu Server
aaroncouch
 
PPTX
WordPress.org & Optimizing Security for your WordPress sites
GovLoop
 
PDF
Installation of LAMP Server with Ubuntu 14.10 Server Edition
Sammy Fung
 
PDF
Steve Corona: Scaling LAMP doesn't have to suck
WebExpo
 
PPTX
Let the Tiger Roar!
MongoDB
 
PDF
Scaling symfony apps
Matteo Moretti
 
PPT
5 things MySql
sarahnovotny
 
MySQL Performance - SydPHP October 2011
Graham Weldon
 
Mysql data replication
Tuấn Ngô
 
Mysql 2007 Tech At Digg V3
epee
 
Basic Knowledge on MySql Replication
Tasawr Interactive
 
AEM WITH MONGODB
Nate Nelson
 
Experience In Building Scalable Web Sites Through Infrastructure's View
Phuwadon D
 
Caching Data For Performance
Dave Ross
 
Memcache and Drupal - Vaibhav Jain
Drupal Camp Delhi
 
Oreilly Webcast Jun17
Sean Hull
 
Serve like a boss (part two)
Hamed Nemati
 
PBX on a non-specialized distro
StefanoFancello
 
Apache
jtpond
 
How to turn any dynamic website into a static site | 24.01.2018 | Artem Danil...
LumoSpark
 
Forget MAMP and WAMP, Use Virtual Box to Have a Real Ubuntu Server
aaroncouch
 
WordPress.org & Optimizing Security for your WordPress sites
GovLoop
 
Installation of LAMP Server with Ubuntu 14.10 Server Edition
Sammy Fung
 
Steve Corona: Scaling LAMP doesn't have to suck
WebExpo
 
Let the Tiger Roar!
MongoDB
 
Scaling symfony apps
Matteo Moretti
 
5 things MySql
sarahnovotny
 

Viewers also liked (20)

PPT
The History Of The Future
Gareth Davies
 
PPTX
Introduction to Information Security
Gareth Davies
 
PPT
I phone 程式設計範例 內建動畫
qaz4545112
 
DOC
Eelarve ja poliitiline valik. Kuidas poliitilised suundumused kajastuvad eela...
Marek U
 
PDF
la mejor gente
Christian Cárdenas
 
PPT
Gestor de Mobilitat - Curs CCOO
CarlesCuervaClaver
 
PPTX
Nba jerseys only at 14.99usd
inthecarts
 
PPT
Glass
j_910504
 
PPTX
Bugs Bunny’s Contribution to Communication
dnosk
 
PPTX
Minimosoeligelo
minimoso
 
PDF
Mindlin Resume2010[1]
michaelmindlin
 
PPT
historia de Zaragoza
93-estoy-y0
 
PPTX
Blogs y educación
Erick Cinat
 
PDF
Вестник Католической Церкви 6/2011
Pavel Levushkan
 
PDF
Современный подход к проектированию
Дмитрий Силаев
 
PPTX
Proyectos creativos con tic trabajo nº 2
Erick Cinat
 
PDF
Usabilitylab бизнес эффективность сайтов страховых компаний 19.09
Дмитрий Силаев
 
PPTX
Btsn 11 12 a
lindandan
 
PPT
Wild data: collaborative e-research and university libraries
RAILS7
 
PPTX
Shorty
elizabethpham
 
The History Of The Future
Gareth Davies
 
Introduction to Information Security
Gareth Davies
 
I phone 程式設計範例 內建動畫
qaz4545112
 
Eelarve ja poliitiline valik. Kuidas poliitilised suundumused kajastuvad eela...
Marek U
 
la mejor gente
Christian Cárdenas
 
Gestor de Mobilitat - Curs CCOO
CarlesCuervaClaver
 
Nba jerseys only at 14.99usd
inthecarts
 
Glass
j_910504
 
Bugs Bunny’s Contribution to Communication
dnosk
 
Minimosoeligelo
minimoso
 
Mindlin Resume2010[1]
michaelmindlin
 
historia de Zaragoza
93-estoy-y0
 
Blogs y educación
Erick Cinat
 
Вестник Католической Церкви 6/2011
Pavel Levushkan
 
Современный подход к проектированию
Дмитрий Силаев
 
Proyectos creativos con tic trabajo nº 2
Erick Cinat
 
Usabilitylab бизнес эффективность сайтов страховых компаний 19.09
Дмитрий Силаев
 
Btsn 11 12 a
lindandan
 
Wild data: collaborative e-research and university libraries
RAILS7
 
Ad

Similar to High Performance Wordpress (20)

PPT
Performance_Up.ppt
webhostingguy
 
PPTX
Anthony Somerset - Site Speed = Success!
WordCamp Cape Town
 
PPT
WE18_Performance_Up.ppt
webhostingguy
 
ODP
WP Sandbox Presentation WordCamp Toronto 2011
Alfred Ayache
 
PPT
Performance and Scalability
Mediacurrent
 
PPT
Drupalcamp Estonia - High Performance Sites
drupalcampest
 
PPT
Drupalcamp Estonia - High Performance Sites
Exove
 
PDF
Make WordPress Fly With Virtual Server Hosting - WordCamp Sydney 2014
Vlad Lasky
 
PDF
Scale Apache with Nginx
Bud Siddhisena
 
PPTX
Site Speed = Success – Optimising WordPress from the Server Up - Presented by...
WordCamp Harare
 
PPTX
WordCamp Harare 2016 - Site Speed = Success
Anthony Somerset
 
PDF
DrupalCampLA 2011: Drupal backend-performance
Ashok Modi
 
PPT
Apache
Rathan Raj
 
PPT
Scalable Apache for Beginners
webhostingguy
 
PDF
WordPress At Scale. WordCamp Dhaka 2019
Anam Ahmed
 
KEY
Site Performance - From Pinto to Ferrari
Joseph Scott
 
PDF
Scaling PHP apps
Matteo Moretti
 
ODP
MNPHP Scalable Architecture 101 - Feb 3 2011
Mike Willbanks
 
PDF
Magento's Imagine eCommerce Conference 2011 - Hosting Magento: Performance an...
MagentoImagine
 
PDF
Magento Imagine eCommerce Conference February 2011: Optimizing Magento For Pe...
varien
 
Performance_Up.ppt
webhostingguy
 
Anthony Somerset - Site Speed = Success!
WordCamp Cape Town
 
WE18_Performance_Up.ppt
webhostingguy
 
WP Sandbox Presentation WordCamp Toronto 2011
Alfred Ayache
 
Performance and Scalability
Mediacurrent
 
Drupalcamp Estonia - High Performance Sites
drupalcampest
 
Drupalcamp Estonia - High Performance Sites
Exove
 
Make WordPress Fly With Virtual Server Hosting - WordCamp Sydney 2014
Vlad Lasky
 
Scale Apache with Nginx
Bud Siddhisena
 
Site Speed = Success – Optimising WordPress from the Server Up - Presented by...
WordCamp Harare
 
WordCamp Harare 2016 - Site Speed = Success
Anthony Somerset
 
DrupalCampLA 2011: Drupal backend-performance
Ashok Modi
 
Apache
Rathan Raj
 
Scalable Apache for Beginners
webhostingguy
 
WordPress At Scale. WordCamp Dhaka 2019
Anam Ahmed
 
Site Performance - From Pinto to Ferrari
Joseph Scott
 
Scaling PHP apps
Matteo Moretti
 
MNPHP Scalable Architecture 101 - Feb 3 2011
Mike Willbanks
 
Magento's Imagine eCommerce Conference 2011 - Hosting Magento: Performance an...
MagentoImagine
 
Magento Imagine eCommerce Conference February 2011: Optimizing Magento For Pe...
varien
 
Ad

Recently uploaded (20)

PDF
Generative AI vs Predictive AI-The Ultimate Comparison Guide
Lily Clark
 
PPTX
Applied-Statistics-Mastering-Data-Driven-Decisions.pptx
parmaryashparmaryash
 
PDF
TrustArc Webinar - Navigating Data Privacy in LATAM: Laws, Trends, and Compli...
TrustArc
 
PDF
OFFOFFBOX™ – A New Era for African Film | Startup Presentation
ambaicciwalkerbrian
 
PDF
Data_Analytics_vs_Data_Science_vs_BI_by_CA_Suvidha_Chaplot.pdf
CA Suvidha Chaplot
 
PPTX
Agile Chennai 18-19 July 2025 Ideathon | AI Powered Microfinance Literacy Gui...
AgileNetwork
 
PDF
Structs to JSON: How Go Powers REST APIs
Emily Achieng
 
PPTX
IT Runs Better with ThousandEyes AI-driven Assurance
ThousandEyes
 
PPTX
OA presentation.pptx OA presentation.pptx
pateldhruv002338
 
PDF
The Future of Artificial Intelligence (AI)
Mukul
 
PPTX
What-is-the-World-Wide-Web -- Introduction
tonifi9488
 
PPTX
Agentic AI in Healthcare Driving the Next Wave of Digital Transformation
danielle hunter
 
PPTX
Agile Chennai 18-19 July 2025 | Workshop - Enhancing Agile Collaboration with...
AgileNetwork
 
PPTX
AVL ( audio, visuals or led ), technology.
Rajeshwri Panchal
 
PDF
How ETL Control Logic Keeps Your Pipelines Safe and Reliable.pdf
Stryv Solutions Pvt. Ltd.
 
PDF
State-Dependent Conformal Perception Bounds for Neuro-Symbolic Verification
Ivan Ruchkin
 
PDF
The Future of Mobile Is Context-Aware—Are You Ready?
iProgrammer Solutions Private Limited
 
PPTX
cloud computing vai.pptx for the project
vaibhavdobariyal79
 
PDF
Research-Fundamentals-and-Topic-Development.pdf
ayesha butalia
 
PDF
AI Unleashed - Shaping the Future -Starting Today - AIOUG Yatra 2025 - For Co...
Sandesh Rao
 
Generative AI vs Predictive AI-The Ultimate Comparison Guide
Lily Clark
 
Applied-Statistics-Mastering-Data-Driven-Decisions.pptx
parmaryashparmaryash
 
TrustArc Webinar - Navigating Data Privacy in LATAM: Laws, Trends, and Compli...
TrustArc
 
OFFOFFBOX™ – A New Era for African Film | Startup Presentation
ambaicciwalkerbrian
 
Data_Analytics_vs_Data_Science_vs_BI_by_CA_Suvidha_Chaplot.pdf
CA Suvidha Chaplot
 
Agile Chennai 18-19 July 2025 Ideathon | AI Powered Microfinance Literacy Gui...
AgileNetwork
 
Structs to JSON: How Go Powers REST APIs
Emily Achieng
 
IT Runs Better with ThousandEyes AI-driven Assurance
ThousandEyes
 
OA presentation.pptx OA presentation.pptx
pateldhruv002338
 
The Future of Artificial Intelligence (AI)
Mukul
 
What-is-the-World-Wide-Web -- Introduction
tonifi9488
 
Agentic AI in Healthcare Driving the Next Wave of Digital Transformation
danielle hunter
 
Agile Chennai 18-19 July 2025 | Workshop - Enhancing Agile Collaboration with...
AgileNetwork
 
AVL ( audio, visuals or led ), technology.
Rajeshwri Panchal
 
How ETL Control Logic Keeps Your Pipelines Safe and Reliable.pdf
Stryv Solutions Pvt. Ltd.
 
State-Dependent Conformal Perception Bounds for Neuro-Symbolic Verification
Ivan Ruchkin
 
The Future of Mobile Is Context-Aware—Are You Ready?
iProgrammer Solutions Private Limited
 
cloud computing vai.pptx for the project
vaibhavdobariyal79
 
Research-Fundamentals-and-Topic-Development.pdf
ayesha butalia
 
AI Unleashed - Shaping the Future -Starting Today - AIOUG Yatra 2025 - For Co...
Sandesh Rao
 

High Performance Wordpress

  • 2. Why performance? Speed so people don’t wait Scale serve as many requests to as many people as possible, concurrently
  • 3. LAMP A stack LAMP Linux Apache MySQL PHP
  • 4. WordPress Written in PHP Uses MySQL as the database Apache/nginx can be used for HTTP
  • 5. WordPress Core (installed) Themes Plugins
  • 6. OS Level Tuning You’re 64-bit by now Log errors, and nothing else TCP/IP settings Only run services that you need on a server
  • 7. OS Level Tuning Simple firewall to stop bots Read log files from logwatch -- hardware dies too vmem.sh Filesystem - XFS is best, EXT3, EXT4 are OK too
  • 8. Apache Tune Apache (httpd.conf) ab & httperf MaxClients Defaults are usually horrible
  • 9. MySQL Defaults are terrible, use my.cnf mysqltuner.pl, tuningprimer.sh mytop Use maatkit + mk-query-digest See general & slow query log (for your plugin problems) InnoDB is better for concurrency, though by default you’re probably using MyISAM mysqlslap for benchmarking
  • 10. PHP Memory settings Opcode cache XCache, EAccelerator, APC php.ini
  • 11. WordPress Plugins are often horribly coded Themes can have direct calls to the database
  • 12. WordPress Look at wp_options tables Disable plugins Try the new Twenty Ten theme wp_config.php: WP_HOME, WP_SITEURL
  • 13. Still struggling? Content Delivery Networks (CDN) Minify Caching
  • 14. WP Caches WP Super Cache W3 Total Cache
  • 15. More you can do use mod_proxy and serve static content CDN: Amazon S3+CloudFront is affordable use browser cache (set long expires)
  • 16. Separate machines 2 machines web server database server memcached servers?
  • 17. Varnish Varnish serves everything from memory httpd on a different port, run varnish on port 80 and point it to httpd port
  • 18. Further growth Its now time to think about MySQL replication (master-slave setups) memcached to keep caches of query results (up to 1M) in memory HyperDB supports data partitioning, and can read from multiple databases
  • 19. WordPress.COM several billion HTTP queries per day, billions of MySQL queries too HP hardware, all SSD
  • 20. HipHop from Facebook http://huichen.org/en/2010/06/wordpress-3-benchmark/ http://huichen.org/en/2010/06/wordpress-3-benchmark-part-2/ ~2.7x improvement in performance
  • 21. Find Me @ShaolinTiger on Twitter http://www.shaolintiger.com – My Blog shaolintiger at gmail – Email me