SlideShare a Scribd company logo
Optimizing Drupal
   Performance
 Basic practices
        by Tim Kamanin

           @timonweb
         timonweb.com
   mailto:timur@kamanin.com




 Drupal Trójmiasto 3drupal.pl
Reasons why most Drupal
sites are slow:
- full page renders

- serving dynamic content to
anonymous users

- slow mysql queries


- module bloat
Typical Drupal Stack


  CSS / JavaScript            Media


                     Drupal


  Apache             MySQL        PHP


                     Linux
Drupal Performance Checklist
1. Limit number of
   your modules
2. Always check what
installed modules are
  doing behind the
       scenes
3. Architect the
 system and write
   modules with
performance in mind
4. Split code invoked   via
urls into separate files:
 module_name.admin.inc,
  module_name.page.inc,
           etc
5. use drupal_static(),
provides central static
variable storage, docs:
 http://bit.ly/QD86rP
6. Install fast_404
7. Export views and
   Panels to code
8. Enable css /
javascript aggregation
9. Let aggregate cache
to take care of css/js
     aggregation
10. Enable page and
 page compression
   (mod_deflate)
11. Install Boost to
make anonymous caching
  10 x times faster!
12. Enable views and
 block caching for
 authorized users
13. Store cache in
 memory. Install
memcached or redis
14. Cache PHP with APC
15. Tune MySQL:
    - find slow queries
       - use indexes
  - use EXPLAIN on queries
       - tune my.cnf
- get decent query cache and
         key buffer
16. Tune Apache:


  StartServers
MinSpareServers
 MaxSpareServers
   MaxClients
   KeepAlive
17. Remember about
                   mod_expires
ExpiresActive on


ExpiresByType image/jpg "access plus 1 month"
ExpiresByType image/jpeg "access plus 1 month"
ExpiresByType image/gif "access plus 1 month"
ExpiresByType image/png "access plus 1 month"
ExpiresByType text/css "access plus 1 months"
ExpiresByType application/javascript "access plus 1 months"
18. Separate Media and
        Code:
 - Move media to CDN
   - Move media to
   separate server
19. Move search from
 Database to Solr
 search_api + Solr
What else can be done?
varnish, squid, load
balancing, memcached, fields
in mongdo, css sprites, Etag,
   ESI, separate database
   server, optimize media,
 preload, postload, external
 js, nginx, Lighttpd, amazon
         cloud, SSD
Comments,
questions?

       @timonweb
      timonweb.com
mailto:timur@kamanin.com

More Related Content

What's hot (20)

PPTX
Wordpress optimization
paudelvinay
 
PPTX
Speeding Up WordPress sites
Jason Yingling
 
PDF
04 web optimization
Nguyen Duc Phu
 
PDF
High Performance Drupal
Chapter Three
 
PPTX
Build website using Open Source Technology
Arunkumar Kupppuswamy
 
PPTX
Scaling wordpress for high traffic
Roshan Bhattarai
 
PDF
Roshan Bhattarai: Scaling WordPress for high traffic sites
wpnepal
 
PPTX
Ithemes presentation
Jason Yingling
 
PPT
High Performance Wordpress
Gareth Davies
 
PPTX
Building Scalable Web Apps - LVL.UP KL
Gareth Davies
 
PPTX
Scalability
Daniel DiPaolo
 
PPTX
Wordpress customer support
wordpress technical support
 
ODP
Drupal Performance and Scaling
Gerald Villorente
 
PDF
EasyEngine - Command-Line tool to manage WordPress Sites on Nginx
rtCamp
 
PPTX
Wordpress Website Development Services Hyderabad | Wordpress Website Develop...
webdesigning
 
PPTX
Squeeze Maximum Performance From Your Joomla Website
SiteGround.com
 
PDF
Scaling WordPress
Joseph Scott
 
PPTX
Serve like a boss (part two)
Hamed Nemati
 
PPTX
Wordpress website scaling challenges
Rajnish K
 
PPTX
"Ensuring chances of theme acceptance in wordpress.org directory" on WordCamp...
Sudeep Balchhaudi
 
Wordpress optimization
paudelvinay
 
Speeding Up WordPress sites
Jason Yingling
 
04 web optimization
Nguyen Duc Phu
 
High Performance Drupal
Chapter Three
 
Build website using Open Source Technology
Arunkumar Kupppuswamy
 
Scaling wordpress for high traffic
Roshan Bhattarai
 
Roshan Bhattarai: Scaling WordPress for high traffic sites
wpnepal
 
Ithemes presentation
Jason Yingling
 
High Performance Wordpress
Gareth Davies
 
Building Scalable Web Apps - LVL.UP KL
Gareth Davies
 
Scalability
Daniel DiPaolo
 
Wordpress customer support
wordpress technical support
 
Drupal Performance and Scaling
Gerald Villorente
 
EasyEngine - Command-Line tool to manage WordPress Sites on Nginx
rtCamp
 
Wordpress Website Development Services Hyderabad | Wordpress Website Develop...
webdesigning
 
Squeeze Maximum Performance From Your Joomla Website
SiteGround.com
 
Scaling WordPress
Joseph Scott
 
Serve like a boss (part two)
Hamed Nemati
 
Wordpress website scaling challenges
Rajnish K
 
"Ensuring chances of theme acceptance in wordpress.org directory" on WordCamp...
Sudeep Balchhaudi
 

Viewers also liked (10)

PPTX
Introduction to social performance_in English
Social Performance Task Force (SPTF)
 
PPTX
Causes behind Poor Performance in English of Bangladeshi Primary Students
University of Rajshahi
 
DOCX
Thesis questionnaire
Maliha Ahmed
 
PPTX
Factors affecting the academic performance of college students (1)
Shubham Aggarwal
 
DOCX
Questionaire
Raj Ranjan
 
DOCX
Questionnaire for the survey of electronics market(for school/college projects)
Dan John
 
DOCX
Questionnaire
jennilynbalbalosa
 
DOCX
Questionnaire mba project
Aashi Yadav
 
DOC
Sample Questionnaire
Deighton Gooden
 
DOC
Brand questionnaire
yasiniub
 
Introduction to social performance_in English
Social Performance Task Force (SPTF)
 
Causes behind Poor Performance in English of Bangladeshi Primary Students
University of Rajshahi
 
Thesis questionnaire
Maliha Ahmed
 
Factors affecting the academic performance of college students (1)
Shubham Aggarwal
 
Questionaire
Raj Ranjan
 
Questionnaire for the survey of electronics market(for school/college projects)
Dan John
 
Questionnaire
jennilynbalbalosa
 
Questionnaire mba project
Aashi Yadav
 
Sample Questionnaire
Deighton Gooden
 
Brand questionnaire
yasiniub
 
Ad

Similar to Optimizing Drupal Performance (English) (20)

PPTX
wordpress-performance-presentation
Arun Janarthanan
 
PPTX
Drupal performance optimization Best Practices
Ratnesh kumar, CSM
 
PPTX
PHP Performance tuning for Drupal 8
Acquia
 
PPT
Drupalcamp Estonia - High Performance Sites
Exove
 
PDF
DrupalCampLA 2011 - Drupal frontend-optimizing
Ashok Modi
 
PPT
Make Drupal Run Fast - increase page load speed
Andy Kucharski
 
PPT
Taking your site from Drupal 6 to Drupal 7
Phase2
 
PPT
Performance and Scalability
Mediacurrent
 
PDF
Drupal performance and scalability
Twinbit
 
PPT
Open Source Content Management Systems
Matthew Turland
 
ODP
Drupal 7x Installation - Introduction to Drupal Concepts
Micky Metts
 
ODP
High Performance Web Sites
Ravi Raj
 
PPTX
Артем Сильчук - Respond in 60ms. Extremal optimization with reinventing a wheel
LEDC 2016
 
PPT
Drupal Performance - SerBenfiquista.com Case Study
hernanibf
 
PPTX
AEM (CQ) Dispatcher Security and CDN+Browser Caching
Andrew Khoury
 
PDF
Introduction of webpack 4
Vijay Shukla
 
PDF
Introduction to Drupal - Installation, Anatomy, Terminologies
Gerald Villorente
 
PPTX
In-Fisherman.com - Building an Enterprise Level Drupal Site
Mediacurrent
 
PDF
Cache all the things #DCLondon
digital006
 
PDF
Introduction To Drupal
Lauren Roth
 
wordpress-performance-presentation
Arun Janarthanan
 
Drupal performance optimization Best Practices
Ratnesh kumar, CSM
 
PHP Performance tuning for Drupal 8
Acquia
 
Drupalcamp Estonia - High Performance Sites
Exove
 
DrupalCampLA 2011 - Drupal frontend-optimizing
Ashok Modi
 
Make Drupal Run Fast - increase page load speed
Andy Kucharski
 
Taking your site from Drupal 6 to Drupal 7
Phase2
 
Performance and Scalability
Mediacurrent
 
Drupal performance and scalability
Twinbit
 
Open Source Content Management Systems
Matthew Turland
 
Drupal 7x Installation - Introduction to Drupal Concepts
Micky Metts
 
High Performance Web Sites
Ravi Raj
 
Артем Сильчук - Respond in 60ms. Extremal optimization with reinventing a wheel
LEDC 2016
 
Drupal Performance - SerBenfiquista.com Case Study
hernanibf
 
AEM (CQ) Dispatcher Security and CDN+Browser Caching
Andrew Khoury
 
Introduction of webpack 4
Vijay Shukla
 
Introduction to Drupal - Installation, Anatomy, Terminologies
Gerald Villorente
 
In-Fisherman.com - Building an Enterprise Level Drupal Site
Mediacurrent
 
Cache all the things #DCLondon
digital006
 
Introduction To Drupal
Lauren Roth
 
Ad

Recently uploaded (20)

PDF
The Rise of AI and IoT in Mobile App Tech.pdf
IMG Global Infotech
 
PPTX
WooCommerce Workshop: Bring Your Laptop
Laura Hartwig
 
PPTX
Building Search Using OpenSearch: Limitations and Workarounds
Sease
 
PDF
Biography of Daniel Podor.pdf
Daniel Podor
 
PPTX
The Project Compass - GDG on Campus MSIT
dscmsitkol
 
PDF
What Makes Contify’s News API Stand Out: Key Features at a Glance
Contify
 
PDF
LOOPS in C Programming Language - Technology
RishabhDwivedi43
 
PDF
DevBcn - Building 10x Organizations Using Modern Productivity Metrics
Justin Reock
 
PDF
Transforming Utility Networks: Large-scale Data Migrations with FME
Safe Software
 
PPTX
From Sci-Fi to Reality: Exploring AI Evolution
Svetlana Meissner
 
PDF
Achieving Consistent and Reliable AI Code Generation - Medusa AI
medusaaico
 
PPTX
Designing Production-Ready AI Agents
Kunal Rai
 
PDF
Mastering Financial Management in Direct Selling
Epixel MLM Software
 
PPTX
Q2 FY26 Tableau User Group Leader Quarterly Call
lward7
 
PDF
[Newgen] NewgenONE Marvin Brochure 1.pdf
darshakparmar
 
PDF
New from BookNet Canada for 2025: BNC BiblioShare - Tech Forum 2025
BookNet Canada
 
PDF
Jak MŚP w Europie Środkowo-Wschodniej odnajdują się w świecie AI
dominikamizerska1
 
PDF
July Patch Tuesday
Ivanti
 
PDF
Go Concurrency Real-World Patterns, Pitfalls, and Playground Battles.pdf
Emily Achieng
 
PDF
Smart Trailers 2025 Update with History and Overview
Paul Menig
 
The Rise of AI and IoT in Mobile App Tech.pdf
IMG Global Infotech
 
WooCommerce Workshop: Bring Your Laptop
Laura Hartwig
 
Building Search Using OpenSearch: Limitations and Workarounds
Sease
 
Biography of Daniel Podor.pdf
Daniel Podor
 
The Project Compass - GDG on Campus MSIT
dscmsitkol
 
What Makes Contify’s News API Stand Out: Key Features at a Glance
Contify
 
LOOPS in C Programming Language - Technology
RishabhDwivedi43
 
DevBcn - Building 10x Organizations Using Modern Productivity Metrics
Justin Reock
 
Transforming Utility Networks: Large-scale Data Migrations with FME
Safe Software
 
From Sci-Fi to Reality: Exploring AI Evolution
Svetlana Meissner
 
Achieving Consistent and Reliable AI Code Generation - Medusa AI
medusaaico
 
Designing Production-Ready AI Agents
Kunal Rai
 
Mastering Financial Management in Direct Selling
Epixel MLM Software
 
Q2 FY26 Tableau User Group Leader Quarterly Call
lward7
 
[Newgen] NewgenONE Marvin Brochure 1.pdf
darshakparmar
 
New from BookNet Canada for 2025: BNC BiblioShare - Tech Forum 2025
BookNet Canada
 
Jak MŚP w Europie Środkowo-Wschodniej odnajdują się w świecie AI
dominikamizerska1
 
July Patch Tuesday
Ivanti
 
Go Concurrency Real-World Patterns, Pitfalls, and Playground Battles.pdf
Emily Achieng
 
Smart Trailers 2025 Update with History and Overview
Paul Menig
 

Optimizing Drupal Performance (English)