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

PPTX
Building Scalable Web Apps - LVL.UP KL
PPT
High Availabiltity & Replica Sets with mongoDB
PPTX
Introducing MongoDB in a multi-site HA environment
PDF
MongoDb scalability and high availability with Replica-Set
PPTX
Nginx [engine x] and you (and WordPress)
PDF
Setting up mongo replica set
ODP
Clug 2011 March web server optimisation
PPT
Intro to MySQL Master Slave Replication
Building Scalable Web Apps - LVL.UP KL
High Availabiltity & Replica Sets with mongoDB
Introducing MongoDB in a multi-site HA environment
MongoDb scalability and high availability with Replica-Set
Nginx [engine x] and you (and WordPress)
Setting up mongo replica set
Clug 2011 March web server optimisation
Intro to MySQL Master Slave Replication

What's hot (20)

KEY
MySQL Performance - SydPHP October 2011
PPTX
Mysql data replication
ODP
Mysql 2007 Tech At Digg V3
PPT
Basic Knowledge on MySql Replication
PPTX
AEM WITH MONGODB
ODP
Experience In Building Scalable Web Sites Through Infrastructure's View
PPT
Caching Data For Performance
PDF
Memcache and Drupal - Vaibhav Jain
PPT
Oreilly Webcast Jun17
PPTX
Serve like a boss (part two)
PDF
PBX on a non-specialized distro
PPT
Apache
PDF
How to turn any dynamic website into a static site | 24.01.2018 | Artem Danil...
ODP
Forget MAMP and WAMP, Use Virtual Box to Have a Real Ubuntu Server
PPTX
WordPress.org & Optimizing Security for your WordPress sites
PDF
Installation of LAMP Server with Ubuntu 14.10 Server Edition
PDF
Steve Corona: Scaling LAMP doesn't have to suck
PPTX
Let the Tiger Roar!
PDF
Scaling symfony apps
PPT
5 things MySql
MySQL Performance - SydPHP October 2011
Mysql data replication
Mysql 2007 Tech At Digg V3
Basic Knowledge on MySql Replication
AEM WITH MONGODB
Experience In Building Scalable Web Sites Through Infrastructure's View
Caching Data For Performance
Memcache and Drupal - Vaibhav Jain
Oreilly Webcast Jun17
Serve like a boss (part two)
PBX on a non-specialized distro
Apache
How to turn any dynamic website into a static site | 24.01.2018 | Artem Danil...
Forget MAMP and WAMP, Use Virtual Box to Have a Real Ubuntu Server
WordPress.org & Optimizing Security for your WordPress sites
Installation of LAMP Server with Ubuntu 14.10 Server Edition
Steve Corona: Scaling LAMP doesn't have to suck
Let the Tiger Roar!
Scaling symfony apps
5 things MySql
Ad

Viewers also liked (20)

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

Similar to High Performance Wordpress (20)

PPT
Performance_Up.ppt
PPTX
Anthony Somerset - Site Speed = Success!
PPT
WE18_Performance_Up.ppt
ODP
WP Sandbox Presentation WordCamp Toronto 2011
PPT
Performance and Scalability
PPT
Drupalcamp Estonia - High Performance Sites
PPT
Drupalcamp Estonia - High Performance Sites
PDF
Make WordPress Fly With Virtual Server Hosting - WordCamp Sydney 2014
PDF
Scale Apache with Nginx
PPTX
Site Speed = Success – Optimising WordPress from the Server Up - Presented by...
PPTX
WordCamp Harare 2016 - Site Speed = Success
PDF
DrupalCampLA 2011: Drupal backend-performance
PPT
Apache
PPT
Scalable Apache for Beginners
PDF
WordPress At Scale. WordCamp Dhaka 2019
KEY
Site Performance - From Pinto to Ferrari
PDF
Scaling PHP apps
ODP
MNPHP Scalable Architecture 101 - Feb 3 2011
PDF
Magento's Imagine eCommerce Conference 2011 - Hosting Magento: Performance an...
PDF
Magento Imagine eCommerce Conference February 2011: Optimizing Magento For Pe...
Performance_Up.ppt
Anthony Somerset - Site Speed = Success!
WE18_Performance_Up.ppt
WP Sandbox Presentation WordCamp Toronto 2011
Performance and Scalability
Drupalcamp Estonia - High Performance Sites
Drupalcamp Estonia - High Performance Sites
Make WordPress Fly With Virtual Server Hosting - WordCamp Sydney 2014
Scale Apache with Nginx
Site Speed = Success – Optimising WordPress from the Server Up - Presented by...
WordCamp Harare 2016 - Site Speed = Success
DrupalCampLA 2011: Drupal backend-performance
Apache
Scalable Apache for Beginners
WordPress At Scale. WordCamp Dhaka 2019
Site Performance - From Pinto to Ferrari
Scaling PHP apps
MNPHP Scalable Architecture 101 - Feb 3 2011
Magento's Imagine eCommerce Conference 2011 - Hosting Magento: Performance an...
Magento Imagine eCommerce Conference February 2011: Optimizing Magento For Pe...

Recently uploaded (20)

PDF
Profit Center Accounting in SAP S/4HANA, S4F28 Col11
PDF
Network Security Unit 5.pdf for BCA BBA.
PDF
Encapsulation_ Review paper, used for researhc scholars
PPTX
Detection-First SIEM: Rule Types, Dashboards, and Threat-Informed Strategy
PDF
Peak of Data & AI Encore- AI for Metadata and Smarter Workflows
PDF
KodekX | Application Modernization Development
PDF
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
PDF
Blue Purple Modern Animated Computer Science Presentation.pdf.pdf
PPTX
Spectroscopy.pptx food analysis technology
PDF
How UI/UX Design Impacts User Retention in Mobile Apps.pdf
PPTX
Cloud computing and distributed systems.
PDF
Approach and Philosophy of On baking technology
PDF
Electronic commerce courselecture one. Pdf
PDF
Review of recent advances in non-invasive hemoglobin estimation
PDF
Chapter 3 Spatial Domain Image Processing.pdf
DOCX
The AUB Centre for AI in Media Proposal.docx
PPTX
Effective Security Operations Center (SOC) A Modern, Strategic, and Threat-In...
PDF
Unlocking AI with Model Context Protocol (MCP)
PDF
cuic standard and advanced reporting.pdf
PDF
Dropbox Q2 2025 Financial Results & Investor Presentation
Profit Center Accounting in SAP S/4HANA, S4F28 Col11
Network Security Unit 5.pdf for BCA BBA.
Encapsulation_ Review paper, used for researhc scholars
Detection-First SIEM: Rule Types, Dashboards, and Threat-Informed Strategy
Peak of Data & AI Encore- AI for Metadata and Smarter Workflows
KodekX | Application Modernization Development
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
Blue Purple Modern Animated Computer Science Presentation.pdf.pdf
Spectroscopy.pptx food analysis technology
How UI/UX Design Impacts User Retention in Mobile Apps.pdf
Cloud computing and distributed systems.
Approach and Philosophy of On baking technology
Electronic commerce courselecture one. Pdf
Review of recent advances in non-invasive hemoglobin estimation
Chapter 3 Spatial Domain Image Processing.pdf
The AUB Centre for AI in Media Proposal.docx
Effective Security Operations Center (SOC) A Modern, Strategic, and Threat-In...
Unlocking AI with Model Context Protocol (MCP)
cuic standard and advanced reporting.pdf
Dropbox Q2 2025 Financial Results & Investor Presentation

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