SlideShare a Scribd company logo
How to improve your Apache Web server’s performance?

The performance of web application depends upon the performance of the web server and
the database server. You can increase your web server’s performance either by adding
additional hardware resources such as RAM, faster CPU etc. or you can get better
performance on the same hardware through Cloud Management, by doing some custom
configuration to the web server.

Here are some custom configurations for better performances

   •   Load only the required modules:

   Apache server is a modular program which includes the functionality of selecting a
   set of modules. So it’s suggested to run Apache with only the required modules which
   will reduce the memory footprint and hence the server performance.

   •   Choose appropriate MPM:

   Apache comes with a number of Multi-Processing Modules (MPMs) which binds the
   network ports to the machine. But only one MPM can be loaded at a time, so choose the
   appropriate MPM for your application. It depends on various factors like, whether the OS
   supports threads, available memory, scalability versus stability, whether non-thread-
   safe third-party modules are used, etc.

   •   DNS lookup:

   Keep “HostnameLookups off” to reduce latency to every request since the DNS lookup
   has to be completed before the request is finished.

   •   AllowOverride:

   Make “AllowOverride all” to reduce additional file system lookups.

   •   FollowSymLinks:

   Add the option ‘FollowSymLinks’ to make the server follow the symbolic links in the
   directory.

   •   Content Negotiation:

   Option ‘Multiviews’ scans the directory for files, which causes latency.

   •   MaxClients:

   ‘MaxClients’ is the limit on maximum simultaneous requests. It should be set to low so
   that new connections are put in queue.

   •   MinSpareServers, MaxSpareServers, and StartServers:
The ‘MinSpareServers’ and ‘MaxSpareServers’ determines how many child processes
should be kept waiting for request. Now you can adjust it as your requirement.

Listed below are some tweaks to help you around

StartServers---2

MinSpareServers---2

MaxSpareServers---5

ServerLimit---100

MaxClients---100

MaxRequestsPerChild---4000

•   KeepAlive and KeepAliveTimeout:

The ‘KeepAlive’ directive allows multiple requests to be sent over the same TCP
connection. This is useful when HTML pages use a lot of images.

KeepAlive--on

Timeout--20

•   HTTP Compression & Caching:

Use mod_deflate module for HTTP Compression. Most of the browsers are supporting it.

•   Separate server for static and dynamic content:

For dynamic contents Apache server needs 3M to 20M of RAM, while for the static
contents it consumes only 1M. To reduce latency use separate servers for static and
dynamic contents.

•   Reducing network load:

Use ‘mod_gzip’ to compress the data in order to reduce bandwidth. Most of the browsers
are supporting it.

More Related Content

What's hot (20)

PPTX
Active mq Installation and Master Slave setup
Ramakrishna Narkedamilli
 
PPT
Rest services caching
Sperasoft
 
ZIP
High Performance WordPress - WordCamp Jerusalem 2010
Barry Abrahamson
 
PDF
Building low latency java applications with ehcache
Chris Westin
 
PPTX
Mage Titans 2015
paupartington
 
PPTX
Speed Up WordPress Websites - Part 1 - WordPress Cairo Meetup
Ahmed Mohammed Nagdy
 
PPTX
Proxysql use case scenarios plam 2016
Alkin Tezuysal
 
PDF
ProxySQL Tutorial - PLAM 2016
Derek Downey
 
PDF
High Performance WordPress II
Barry Abrahamson
 
PPTX
Activemq installation and master slave setup using shared broker data
Ramakrishna Narkedamilli
 
PPTX
[Hanoi-August 13] Tech Talk on Caching Solutions
ITviec
 
PDF
Web server
Touhid Arastu
 
PDF
How to cache your static resources
Wesley Smits
 
PDF
WordPress At Scale. WordCamp Dhaka 2019
Anam Ahmed
 
PDF
Webinar slides: MySQL & MariaDB load balancing with ProxySQL & ClusterControl...
Severalnines
 
PDF
Caching in HTTP
Alexander Shopov
 
PPTX
WordPress + NGINX Best Practices with EasyEngine
NGINX, Inc.
 
PPTX
WordPress Hosting Best Practices - Do's and Don't s | WordPress Trivandrum
WordPress Trivandrum
 
PDF
Setting up a local WordPress Environment
Chris La Nauze
 
PPTX
WordPress Speed Optimization
Dinesh Jain
 
Active mq Installation and Master Slave setup
Ramakrishna Narkedamilli
 
Rest services caching
Sperasoft
 
High Performance WordPress - WordCamp Jerusalem 2010
Barry Abrahamson
 
Building low latency java applications with ehcache
Chris Westin
 
Mage Titans 2015
paupartington
 
Speed Up WordPress Websites - Part 1 - WordPress Cairo Meetup
Ahmed Mohammed Nagdy
 
Proxysql use case scenarios plam 2016
Alkin Tezuysal
 
ProxySQL Tutorial - PLAM 2016
Derek Downey
 
High Performance WordPress II
Barry Abrahamson
 
Activemq installation and master slave setup using shared broker data
Ramakrishna Narkedamilli
 
[Hanoi-August 13] Tech Talk on Caching Solutions
ITviec
 
Web server
Touhid Arastu
 
How to cache your static resources
Wesley Smits
 
WordPress At Scale. WordCamp Dhaka 2019
Anam Ahmed
 
Webinar slides: MySQL & MariaDB load balancing with ProxySQL & ClusterControl...
Severalnines
 
Caching in HTTP
Alexander Shopov
 
WordPress + NGINX Best Practices with EasyEngine
NGINX, Inc.
 
WordPress Hosting Best Practices - Do's and Don't s | WordPress Trivandrum
WordPress Trivandrum
 
Setting up a local WordPress Environment
Chris La Nauze
 
WordPress Speed Optimization
Dinesh Jain
 

Similar to How to improve your apache web server’s performance (20)

PPT
WE18_Performance_Up.ppt
webhostingguy
 
PPT
Performance_Up.ppt
webhostingguy
 
PPTX
Apache Performance Tuning: Scaling Up
Sander Temme
 
PPT
Configuring Apache Servers for Better Web Perormance
Spark::red
 
PPT
Lamp Stack Optimization
Dave Ross
 
PDF
25 Apache Performance Tips
Monitis_Inc
 
PPT
Performance and Scalability
Mediacurrent
 
PPTX
Drupal performance
Piyuesh Kumar
 
PDF
Performance scalability brandonlyon
Digitaria
 
PPT
Scalable Apache for Beginners
webhostingguy
 
PDF
Bottom to Top Stack Optimization with LAMP
katzgrau
 
PDF
Bottom to Top Stack Optimization - CICON2011
CodeIgniter Conference
 
PPTX
Anthony Somerset - Site Speed = Success!
WordCamp Cape Town
 
TXT
Httpd.conf
ayanoaccount
 
PPT
Utosc2007_Apache_Configuration.ppt
webhostingguy
 
PPT
Utosc2007_Apache_Configuration.ppt
webhostingguy
 
PPT
Utosc2007_Apache_Configuration.ppt
webhostingguy
 
PDF
php & performance
simon8410
 
PDF
PHP & Performance
毅 吕
 
PDF
Apache HTTPD 2.4 - GWO2016
Jim Jagielski
 
WE18_Performance_Up.ppt
webhostingguy
 
Performance_Up.ppt
webhostingguy
 
Apache Performance Tuning: Scaling Up
Sander Temme
 
Configuring Apache Servers for Better Web Perormance
Spark::red
 
Lamp Stack Optimization
Dave Ross
 
25 Apache Performance Tips
Monitis_Inc
 
Performance and Scalability
Mediacurrent
 
Drupal performance
Piyuesh Kumar
 
Performance scalability brandonlyon
Digitaria
 
Scalable Apache for Beginners
webhostingguy
 
Bottom to Top Stack Optimization with LAMP
katzgrau
 
Bottom to Top Stack Optimization - CICON2011
CodeIgniter Conference
 
Anthony Somerset - Site Speed = Success!
WordCamp Cape Town
 
Httpd.conf
ayanoaccount
 
Utosc2007_Apache_Configuration.ppt
webhostingguy
 
Utosc2007_Apache_Configuration.ppt
webhostingguy
 
Utosc2007_Apache_Configuration.ppt
webhostingguy
 
php & performance
simon8410
 
PHP & Performance
毅 吕
 
Apache HTTPD 2.4 - GWO2016
Jim Jagielski
 
Ad

More from Andolasoft Inc (20)

PDF
Scalable Mobile App Development for Business Growth1 (1).pdf
Andolasoft Inc
 
PDF
Latest Facts and Trends in Fitness App Development
Andolasoft Inc
 
PDF
Challenges of React Native App Development_ Effective Mitigation Strategies.pdf
Andolasoft Inc
 
PDF
How To Use Server-Side Rendering with Nuxt.js
Andolasoft Inc
 
PDF
Essential Functionalities Your Real Estate Web App Must Have.pdf
Andolasoft Inc
 
PDF
A Complete Guide to Developing Healthcare App
Andolasoft Inc
 
PDF
Game-Changing Power of React Native for Businesses in 2024
Andolasoft Inc
 
PDF
A Complete Guide to Real Estate Website Development
Andolasoft Inc
 
PDF
How to Build Cross-Platform Mobile Apps Using Python
Andolasoft Inc
 
PDF
Impact of AI on Modern Mobile App Development
Andolasoft Inc
 
PDF
How to Optimize the SEO of Shopify Stores
Andolasoft Inc
 
PDF
14 Tips On How To Improve Android App Performance
Andolasoft Inc
 
PDF
The Ultimate Guide to Setting Up Your WooCommerce Store
Andolasoft Inc
 
PDF
Ranking The Best PHP Development Companies in the World
Andolasoft Inc
 
PDF
Top 8 WordPress Design and Development Trends of 2023
Andolasoft Inc
 
PDF
List of 10 Best WordPress Development Companies
Andolasoft Inc
 
PDF
WooCommerce vs Shopify: Which is Better For Your Online Store
Andolasoft Inc
 
PDF
Why Choose WooCommerce For Your eCommerce Store
Andolasoft Inc
 
PDF
Django Workflow and Architecture
Andolasoft Inc
 
PDF
Service Oriented Architecture in NodeJS
Andolasoft Inc
 
Scalable Mobile App Development for Business Growth1 (1).pdf
Andolasoft Inc
 
Latest Facts and Trends in Fitness App Development
Andolasoft Inc
 
Challenges of React Native App Development_ Effective Mitigation Strategies.pdf
Andolasoft Inc
 
How To Use Server-Side Rendering with Nuxt.js
Andolasoft Inc
 
Essential Functionalities Your Real Estate Web App Must Have.pdf
Andolasoft Inc
 
A Complete Guide to Developing Healthcare App
Andolasoft Inc
 
Game-Changing Power of React Native for Businesses in 2024
Andolasoft Inc
 
A Complete Guide to Real Estate Website Development
Andolasoft Inc
 
How to Build Cross-Platform Mobile Apps Using Python
Andolasoft Inc
 
Impact of AI on Modern Mobile App Development
Andolasoft Inc
 
How to Optimize the SEO of Shopify Stores
Andolasoft Inc
 
14 Tips On How To Improve Android App Performance
Andolasoft Inc
 
The Ultimate Guide to Setting Up Your WooCommerce Store
Andolasoft Inc
 
Ranking The Best PHP Development Companies in the World
Andolasoft Inc
 
Top 8 WordPress Design and Development Trends of 2023
Andolasoft Inc
 
List of 10 Best WordPress Development Companies
Andolasoft Inc
 
WooCommerce vs Shopify: Which is Better For Your Online Store
Andolasoft Inc
 
Why Choose WooCommerce For Your eCommerce Store
Andolasoft Inc
 
Django Workflow and Architecture
Andolasoft Inc
 
Service Oriented Architecture in NodeJS
Andolasoft Inc
 
Ad

Recently uploaded (20)

PDF
"Beyond English: Navigating the Challenges of Building a Ukrainian-language R...
Fwdays
 
PDF
[Newgen] NewgenONE Marvin Brochure 1.pdf
darshakparmar
 
PDF
Agentic AI lifecycle for Enterprise Hyper-Automation
Debmalya Biswas
 
PDF
Achieving Consistent and Reliable AI Code Generation - Medusa AI
medusaaico
 
PDF
Empower Inclusion Through Accessible Java Applications
Ana-Maria Mihalceanu
 
PPT
Interview paper part 3, It is based on Interview Prep
SoumyadeepGhosh39
 
PDF
New from BookNet Canada for 2025: BNC BiblioShare - Tech Forum 2025
BookNet Canada
 
PPTX
Building Search Using OpenSearch: Limitations and Workarounds
Sease
 
PDF
HCIP-Data Center Facility Deployment V2.0 Training Material (Without Remarks ...
mcastillo49
 
PDF
DevBcn - Building 10x Organizations Using Modern Productivity Metrics
Justin Reock
 
PDF
SWEBOK Guide and Software Services Engineering Education
Hironori Washizaki
 
PDF
Newgen 2022-Forrester Newgen TEI_13 05 2022-The-Total-Economic-Impact-Newgen-...
darshakparmar
 
PDF
July Patch Tuesday
Ivanti
 
PDF
CIFDAQ Market Insights for July 7th 2025
CIFDAQ
 
PDF
Log-Based Anomaly Detection: Enhancing System Reliability with Machine Learning
Mohammed BEKKOUCHE
 
PPTX
✨Unleashing Collaboration: Salesforce Channels & Community Power in Patna!✨
SanjeetMishra29
 
PDF
Timothy Rottach - Ramp up on AI Use Cases, from Vector Search to AI Agents wi...
AWS Chicago
 
PDF
"AI Transformation: Directions and Challenges", Pavlo Shaternik
Fwdays
 
PPTX
AUTOMATION AND ROBOTICS IN PHARMA INDUSTRY.pptx
sameeraaabegumm
 
PDF
Building Real-Time Digital Twins with IBM Maximo & ArcGIS Indoors
Safe Software
 
"Beyond English: Navigating the Challenges of Building a Ukrainian-language R...
Fwdays
 
[Newgen] NewgenONE Marvin Brochure 1.pdf
darshakparmar
 
Agentic AI lifecycle for Enterprise Hyper-Automation
Debmalya Biswas
 
Achieving Consistent and Reliable AI Code Generation - Medusa AI
medusaaico
 
Empower Inclusion Through Accessible Java Applications
Ana-Maria Mihalceanu
 
Interview paper part 3, It is based on Interview Prep
SoumyadeepGhosh39
 
New from BookNet Canada for 2025: BNC BiblioShare - Tech Forum 2025
BookNet Canada
 
Building Search Using OpenSearch: Limitations and Workarounds
Sease
 
HCIP-Data Center Facility Deployment V2.0 Training Material (Without Remarks ...
mcastillo49
 
DevBcn - Building 10x Organizations Using Modern Productivity Metrics
Justin Reock
 
SWEBOK Guide and Software Services Engineering Education
Hironori Washizaki
 
Newgen 2022-Forrester Newgen TEI_13 05 2022-The-Total-Economic-Impact-Newgen-...
darshakparmar
 
July Patch Tuesday
Ivanti
 
CIFDAQ Market Insights for July 7th 2025
CIFDAQ
 
Log-Based Anomaly Detection: Enhancing System Reliability with Machine Learning
Mohammed BEKKOUCHE
 
✨Unleashing Collaboration: Salesforce Channels & Community Power in Patna!✨
SanjeetMishra29
 
Timothy Rottach - Ramp up on AI Use Cases, from Vector Search to AI Agents wi...
AWS Chicago
 
"AI Transformation: Directions and Challenges", Pavlo Shaternik
Fwdays
 
AUTOMATION AND ROBOTICS IN PHARMA INDUSTRY.pptx
sameeraaabegumm
 
Building Real-Time Digital Twins with IBM Maximo & ArcGIS Indoors
Safe Software
 

How to improve your apache web server’s performance

  • 1. How to improve your Apache Web server’s performance? The performance of web application depends upon the performance of the web server and the database server. You can increase your web server’s performance either by adding additional hardware resources such as RAM, faster CPU etc. or you can get better performance on the same hardware through Cloud Management, by doing some custom configuration to the web server. Here are some custom configurations for better performances • Load only the required modules: Apache server is a modular program which includes the functionality of selecting a set of modules. So it’s suggested to run Apache with only the required modules which will reduce the memory footprint and hence the server performance. • Choose appropriate MPM: Apache comes with a number of Multi-Processing Modules (MPMs) which binds the network ports to the machine. But only one MPM can be loaded at a time, so choose the appropriate MPM for your application. It depends on various factors like, whether the OS supports threads, available memory, scalability versus stability, whether non-thread- safe third-party modules are used, etc. • DNS lookup: Keep “HostnameLookups off” to reduce latency to every request since the DNS lookup has to be completed before the request is finished. • AllowOverride: Make “AllowOverride all” to reduce additional file system lookups. • FollowSymLinks: Add the option ‘FollowSymLinks’ to make the server follow the symbolic links in the directory. • Content Negotiation: Option ‘Multiviews’ scans the directory for files, which causes latency. • MaxClients: ‘MaxClients’ is the limit on maximum simultaneous requests. It should be set to low so that new connections are put in queue. • MinSpareServers, MaxSpareServers, and StartServers:
  • 2. The ‘MinSpareServers’ and ‘MaxSpareServers’ determines how many child processes should be kept waiting for request. Now you can adjust it as your requirement. Listed below are some tweaks to help you around StartServers---2 MinSpareServers---2 MaxSpareServers---5 ServerLimit---100 MaxClients---100 MaxRequestsPerChild---4000 • KeepAlive and KeepAliveTimeout: The ‘KeepAlive’ directive allows multiple requests to be sent over the same TCP connection. This is useful when HTML pages use a lot of images. KeepAlive--on Timeout--20 • HTTP Compression & Caching: Use mod_deflate module for HTTP Compression. Most of the browsers are supporting it. • Separate server for static and dynamic content: For dynamic contents Apache server needs 3M to 20M of RAM, while for the static contents it consumes only 1M. To reduce latency use separate servers for static and dynamic contents. • Reducing network load: Use ‘mod_gzip’ to compress the data in order to reduce bandwidth. Most of the browsers are supporting it.