---
title: Performance tuning for Magento Community Edition
description: Performance tuning for Magento Community Edition
---

[![e-Zest logo\_An accion lab company\_Colour](https://blog.e-zest.com/hubfs/images/Logos%20with%20Tagline/Corporate/SVG/e-Zest%20logo_An%20accion%20lab%20company_Colour.svg "e-Zest logo_An accion lab company_Colour")](https://www.e-zest.com/)

- [WORK](https://www.e-zest.com/our-work)
- [SERVICES](https://www.e-zest.com/our-services) 
    - [Product Engineering](https://www.e-zest.com/digital-product-engineering-services)
    - [Enterprise Data Services](https://www.e-zest.com/enterprise-data-services)
    - [Digital Commerce](https://www.e-zest.com/digital-commerce-services)
    - [Digital Operations](https://www.e-zest.com/digital-operations)
    - [Digital Consulting](https://www.e-zest.com/digital-transformation-consulting-services)
    - [Digital Experience Design](https://www.e-zest.com/digital-experience-design)
- [INSIGHTS](https://blog.e-zest.com/)
- [CAREERS](https://www.e-zest.com/careers)
- [ENTERPRISE DATA SERVICES](https://www.e-zest.com/enterprise-data-services)
- [GENERATIVE AI](https://www.e-zest.com/generative-ai)
- [Healthcare](https://healthcare.e-zest.com)
- [Contact Us](https://www.e-zest.com/contact-us)

- ![Elevating Product Engineering with AI and ML](https://blog.e-zest.com/hubfs/Elevating%20Product%20Engineering%20with%20AI%20and%20ML.jpg)

  [BLOGS](https://blog.e-zest.com)
  
  #### Elevating Product Engineering with AI and ML

  As technology evolves and customer choices broaden, there is an increasing ...

  [Read more](https://blog.e-zest.com/elevating-product-engineering-with-ai-and-ml)
- ![e-Zest – An Accion Labs Company gets Recognition as a Contender in the ISG Provider Lens™ Study on Digital Engineering Services 2024](https://blog.e-zest.com/hubfs/e-Zest%20%E2%80%93%20An%20Accion%20Labs%20Company%20-%20Gets%20Recognition%20as%20a%20Contender%20in%20the%20ISG%20Provider%20LensTM%20Study%20on%20Digital%20Engineering%20Services%202024.jpg)

  [NEWS](https://blog.e-zest.com/news)
  
  #### e-Zest – An Accion Labs Company gets Recognition as a Contender in the ISG Provider Lens™ Study on Digital Engineering Services 2024

  We are delighted to announce that e-Zest – An Accion Labs Company has been ...

  [Read more](https://blog.e-zest.com/news/e-zest-an-accion-labs-company-gets-recognition-as-a-contender-in-the-isg-provider-lens-study-on-digital-engineering-services-2024)
- ![e-Zest Solutions supports Digital Pune Mission](https://blog.e-zest.com/hubfs/blog-files/Digital%20Literacy%20Bus%20e-Zest.png)

  [CSR](https://blog.e-zest.com/csr)
  
  #### e-Zest Solutions supports Digital Pune Mission

  **Pune, India:** e-Zest Solutions, a leading digital technology innovation ...

  [Read more](https://blog.e-zest.com/csr/e-zest-solutions-supports-digital-pune-mission)

- [Work](https://www.e-zest.com/our-work)
- [Services](https://www.e-zest.com/our-services)
- [Insights](https://blog.e-zest.com)
- [Careers](https://www.e-zest.com/careers)
- [Enterprise Data](https://www.e-zest.com/enterprise-data-services)
- [Generative AI](https://www.e-zest.com/generative-ai)
- [Innovations](https://www.e-zest.com/innovations)
- [Healthcare](https://healthcare.e-zest.com)
- [About](https://www.e-zest.com/about-us)
- [Contact](https://www.e-zest.com/contact-us)

- [Blog](https://blog.e-zest.com/)
- [News](https://blog.e-zest.com/news)
- [CSR](https://blog.e-zest.com/csr)

- [![Linkedin Icon](https://blog.e-zest.com/hubfs/icons/linkedin_icon_white.svg)](https://www.linkedin.com/company/e-zest-solutions/)
- [![Twitter Icon](https://blog.e-zest.com/hubfs/twitter-logo-silhouette%20(5).svg)](https://twitter.com/ezest)
- [![Facebook Icon](https://blog.e-zest.com/hubfs/facebook-app-logo%20(4).svg)](https://www.facebook.com/61259256638)
- [![Instagram Icon](https://blog.e-zest.com/hubfs/instagram-logo%20(4).svg)](https://www.instagram.com/ezestsolutions/)
- [![Youtube Icon](https://blog.e-zest.com/hubfs/icons/youtube_icon_white.svg)](https://www.youtube.com/user/ezestcorporate)

[![Go to top icon](https://blog.e-zest.com/hubfs/AA%20Assets/top%20button.svg)](https://blog.e-zest.com/performance-tuning-for-magento-community-edition/#top)

Hit enter to search or ESC to close

Insights

e-Zest members share technology ideas to foster digital transformation.

- [Blog](https://blog.e-zest.com)
- [News](https://blog.e-zest.com/news)
- [Podcasts](https://www.e-zest.com/podcasts)
- [Healthcare](https://blog.e-zest.com/healthcare)
- [CSR](https://blog.e-zest.com/csr)
- [Whitepaper](https://blog.e-zest.com/whitepaper)
- [Playbook](https://blog.e-zest.com/playbook)
- [Media Kit](https://www.e-zest.com/media-kit)

# Performance tuning for Magento Community Edition

[Vidya Palaskar](https://blog.e-zest.com/author/vidya-palaskar)  Mar 14, 2013

[Magento Community Edition](https://blog.e-zest.com/topic/magento-community-edition) [PHP](https://blog.e-zest.com/topic/php-2) [Performance Tuning](https://blog.e-zest.com/topic/performance-tuning) [Open Source](https://blog.e-zest.com/topic/open-source) [e-commerce](https://blog.e-zest.com/topic/e-commerce) [Page load time](https://blog.e-zest.com/topic/page-load-time) [Technology](https://blog.e-zest.com/topic/technology)

- <https://www.linkedin.com/shareArticle?mini=true&url=https://blog.e-zest.com/performance-tuning-for-magento-community-edition/&title=&summary=&source=>
- <https://twitter.com/intent/tweet?source=https://blog.e-zest.com/performance-tuning-for-magento-community-edition/&text=Performance%20tuning%20for%20Magento%20Community%20Edition>
- <https://www.facebook.com/sharer/sharer.php?u=https://blog.e-zest.com/performance-tuning-for-magento-community-edition/>
- <https://www.instagram.com/ezestsolutions/?u=https://blog.e-zest.com/performance-tuning-for-magento-community-edition/>

Magento is a very popular, robust and enterprise grade open source e-commerce framework built in PHP. On one side these are the positive aspects of this application but on the other side this mammoth is reported to have slow performance. Page load time is high which adversely affects customers and SEO efforts. Below are some useful steps that will improve the performance of Magento Community Edition.

1. **Enable cache into Magento admin section**  
    Go to Magento admin section -\> System -\> Cache Management, and enable all the Cache Types.
2. **Enable Compilation**  
    Go to Magento admin section -\> Tools -\> Compilation -\> Click on “Enable” button.
3. **Enable Flat Data**  
    Go to System -\> Configuration -\> CATALOG -\> Catalog -\> Set “Use Flat Catalog Category” = “yes”  
    And “Use Flat Catalog Product” = “Yes”
4. **Disable modules that you don’t use:**  
    System -\> Configuration -\> Advanced -\> Advanced.
5. **Disable the Magento log**  
    System -\> Configuration -\> Advanced -\> Developer -\> Log Settings (default is disabled).
6. **Combine JavaScript and Combine CSS files**  
    System -\>Configuration -\>Advanced -\>Developer -\> ‘JavaScript settings’ and ‘CSS Settings’. Here you can merge all JavaScript files into one file. And all CSS files into one single file
7. **Keep Alive settings in Apache**
   
   ```
   
   KeepAlive On
   KeepAliveTimeout  Default 5 seconds
   MaxKeepAliveRequests  Default 100
   ```
   
   Apache KeepAlive settings provide long-lived HTTP sessions which allow multiple requests to be sent over the same TCP connection. In some cases this has been shown to result in an almost 50% speedup in latency times for HTML documents with many images.
8. **ExpiresActive On setting (for text/css, image/gif, image/jpg, image/png) in .htaccess file**
   
   This module controls the setting of the Expires HTTP header and the max-age directive of the Cache-Control HTTP header in server responses. The expiration date can set to be relative to either the time the source file was last modified, or to the time of the client access.
   
   These HTTP headers are an instruction to the client about the document's validity and persistence. If cached, the document may be fetched from the cache rather than from the source until this time has passed. After that, the cache copy is considered "expired" and invalid, and a new copy must be obtained from the source
   
   For this you can do below settings in your .htaccess file.
   
   ```
   
   ExpiresActive On
   ExpiresByType text/css "access plus 2 day"
   ExpiresByType image/gif "access plus 2 day"
   ExpiresByType image/jpg "access plus 2 day"
   ExpiresByType image/png "access plus 2 day"
   ```
   
   Here you can set max age to day, month or year.
9. **Use APC – Alternative PHP Cache (opcode cache for PHP)**
   
   APC engine cache the compiled bytecode of PHP scripts to avoid the overhead of parsing and compiling source code on each request. And it is improving performance around 50%.  
    Steps to install APC on Linux:
   
     1. Install php-pecl-apc package using below command through putty -  
         yum install php-pecl-apc
     2. After installation of APC you will find apc.ini file at  
         ls /etc/php.d/apc.ini
     3. Edit apc.ini file and do the below settings -
        
        ```
        
        apc.enabled=1
        apc.shm_size=512M
        apc.num_files_hint=10000
        apc.user_entries_hint=10000
        apc.max_file_size=5M
        apc.stat=0
        apc.optimization=0
        apc.shm_segments=1
        apc.enable_cli=1
        apc.cache_by_default=1
        apc.include_once_override=1
        ```
     4. Activate APC support in Magento configuration:
        
        Go to your Magento installation  
         Open local.xml file /app/etc/local.xml and add below lines in between `<global>...</global>` tags.
        
        ```
        
        <cache>
          <backend>apc</backend>
          <slow_backend>File</slow_backend> 
        <prefix>Myproject_</prefix>
        </cache>
        ```
     5. Now clear the Magento older cache and refresh your site.
     6. To check whether cache is stored using APC, go to var/cache directory you will find mage-- directories , open any one and you can see the cache files having prefix provided by you (i.e. Myproject\_\</prefix\>).\</li\> \</ol\> \</li\> \<li\>Modify my.cnf or my.ini file as below (The values for parameters should be according to your RAM size) - \<pre\> \[mysqld\] a. key\_buffer\_size = 512M (It should be 30% of Memory.) b. max\_allowed\_packet = 64M c. table\_open\_cache = 512 d. sort\_buffer\_size = 4M e. read\_buffer\_size = 4M f. read\_rnd\_buffer\_size = 2M g. myisam\_sort\_buffer\_size = 64M h. tmp\_table\_size = 128M i. query\_cache\_size = 96M j. query\_cache\_type = 1M k. thread\_cache\_size = 8 l. max\_connections = 400 m. wait\_timeout = 300 n. query\_cache\_limit: 2MB

- <https://twitter.com/intent/tweet?source=https://blog.e-zest.com/performance-tuning-for-magento-community-edition/&text=Performance%20tuning%20for%20Magento%20Community%20Edition>
- <https://www.facebook.com/sharer/sharer.php?u=https://blog.e-zest.com/performance-tuning-for-magento-community-edition/>
- <https://www.linkedin.com/shareArticle?mini=true&url=https://blog.e-zest.com/performance-tuning-for-magento-community-edition/&title=&summary=&source=>

### Similar Blog

[How To Implement AWS ElastiCache in Magento For any web application, caching plays a vital role in performance. We all know about Magento as a powerful e-commerce framework. ... By Vidya Palaskar Dec 29, 2014](https://blog.e-zest.com/how-to-implement-aws-elasticache-in-magento/)

## Helping Organizations Thrive in the Digital Age

[Contact Us](https://www.e-zest.com/contact-us)

- [About](https://www.e-zest.com/about-us)
- [Services](https://www.e-zest.com/our-services)
- [Work](https://www.e-zest.com/our-work)
- [Insights](https://blog.e-zest.com/)
- [Healthcare](https://healthcare.e-zest.com/)
- [Accion Labs](https://www.accionlabs.com/)

- <https://www.linkedin.com/company/e-zest-solutions/>
- <https://twitter.com/ezest>
- <https://www.facebook.com/eZest/>
- <https://www.instagram.com/ezestsolutions/>
- <https://www.youtube.com/user/ezestcorporate>

- Dallas
- Detroit
- Hannover
- Vienna
- London
- Pune

 © 2025 e-Zest Solutions

- [Privacy Policy](https://www.e-zest.com/privacypolicy)
- [Cookie Policy](https://www.e-zest.com/cookie-policy)

 Contact us

 Contact us

e-Zest is a leading digital innovation partner for enterprises and technology companies that utilizes emerging technologies for creating engaging customers experiences. Being a customer-focused and technology-driven company, it always helps clients in crafting holistic business value for their software development efforts. It offers software development and consulting services for cloud computing, enterprise mobility, big data and analytics, user experience and digital commerce.