Magento Expert Forum - Improve your Magento experience

Results 1 to 14 of 14

Optimizing Magento Performance

  1. #1
    Moderator shunavi's Avatar
    Join Date
    Mar 2013
    Posts
    124
    Thanks
    9
    Thanked 26 Times in 17 Posts

    Thumbs up Optimizing Magento Performance

    According to the recent research, 64% of dissatisfied online shoppers said they were less likely to visit a slow retailer again, 62% were less likely to purchase from the site again and 48% would purchase from a competitor.
    Such statistics always makes developers puzzle – from one hand, the website owner wants the application to be multifunctional and universal, from the other – it shouldn’t be slow. And the problem is always to make a solid extension work as fast as possible.
    Performance optimization is a good way out in such situation. Optimizing a website, you should consider providing two factors:

    1. acceptable pages loading speed;
    2. acceptable pages loading speed when N people use the same application simultaneously.

    The basic advice regarding response times that has been about the same for forty years:
    “0.1 second is about the limit for having the user feel that the system is reacting instantaneously, meaning that no special feedback is necessary except to display the result.
    1.0 second is about the limit for the user’s flow of thought to stay uninterrupted, even though the user will notice the delay. Normally, no special feedback is necessary during delays of more than 0.1 but less than 1.0 second, but the user does lose the feeling of operating directly on the data.
    10 seconds is about the limit for keeping the user’s attention focused on the dialogue. For longer delays, users will want to perform other tasks while waiting for the computer to finish, so they should be given feedback indicating when the computer expects to be done. Feedback during the delay is especially important if the response time is likely to be highly variable, since users will then not know what to expect.”
    Considering all this information, let’s try to provide the pages loading speed within 0.1 – 1 second with the load of 20 competitive requests by optimizing Magento performance.
    What we have

    Server:

    • CPU: Intel® Xeon® CPU X3320 @ 2.50GHz
    • Memory: 4GB
    • HDD: 1HDD, non-RAID

    Magento CE 1.7.0.0
    What we should do

    1. Select a tool to measure Magento website performance

    • http_load
      http_load runs multiple http fetches in parallel, to test the throughput of a web server. It runs in a single process, so it doesn’t bog down the machine. It can be configured to do https fetches as well.
    • Apache HTTP server benchmarking tool
      It is a tool for benchmarking your Apache Hypertext Transfer Protocol (HTTP) server. It is designed to give you an impression of how your current Apache installation performs. This especially shows you how many requests per second your Apache installation is capable of serving.
    • Siege
      Siege is an http load testing and benchmarking utility. It was designed to let web developers measure their code under duress, to see how it will stand up to load on the internet. Siege supports basic authentication, cookies, HTTP and HTTPS protocols. It lets its user hit a web server with a configurable number of simulated web browsers.
    • Apache JMeter
      Apache JMeteris open source software, a 100% pure Java desktop application designed to load test functional behavior and measure performance. It may be used to test performance both on static and dynamic resources. Apache JMeter can be used to simulate a heavy load on a server, network or object to test its strength or to analyze overall performance under different load types. You can use it to make a graphical analysis of performance or to test your server/script/object behavior under heavy concurrent load.

    2. Select OS for server

    Here you can select whatever you like or what your hosting provider offers:

        • BSD: FreeBSD, OpenSD, etc.
        • Debian: Debian, Ubuntu
        • Gentoo, Slackware
        • RHEL

    3. Select webserver with PHP

    • Apache + mod_php
      It is the most popular application environment
    • Nginx + Apache + mod_php
      Nginx as a proxy before Apache doesn’t influence the pages generation speed but gives the increase of loading speed and economy of system resources
    • Nginx + php-fpm
      This variant is less popular as none of the web hosting control panels like cPanel work flawless with Nginx. But our tests showed that exactly this environment was 30% faster than Apache


    To avoid many serious mistakes in correct webserver configuration, be careful with Nginx settings and don’t forget to:

        • Forbid access to Magento catalogs
          location/app/{deny all;}
          location ~ Ʌ.ht {deny all;}
          location /.svn/ {deny all;}
        • Disable logging where it is not necessary
          location/media/catalog/{
          access_log off;
          }
          location /js/ {
          access_log off;
          }
        • Turn on compression for js and css
          location/media/js/{
          gzip on;
          gzip_min_length 1000;
          gzip_disable “MSIE[1-6]\.”;
          expires 5d;
          access_log off;
          }
        • Enlarge the FastCGI response time
          fastcgi_read_timeout

    4. Select PHP 5.3.* or PHP 5.4.*

    There are 2 obvious advantages of moving to PHP 5.4.*:

        • it is faster;
        • later you can use new language constructions.

    But don’t forget about the disadvantage you can face:

        • problems when migrating to new version

    The tests showed the following results:

    5. Select opcode cacher

    Open Source

        • APC
        • Xcache
        • eAccelerator

    Proprietary

        • IonCube
        • Zend Server

    As you can see below, the opcode cacher usage gives the speed increase of about 70%:

    6. Change the number of child-processes in PHP-FPM depending on your hardware
    7. Move users sessions to memcached
    8. Move cache to APC or memcached
    9. Set the higher values in the settings of PHP – realpath_cache_size and realpath_cache_ttl
    Let’s sum up what we’ve got after all these steps on optimization:

    As you can see, server environment optimization resulted in reducing rendering speed in 3.5 times as well as decreasing the price of the required hardware.

    View more threads in the same category:


  2. The Following 3 Users Say Thank You to shunavi For This Useful Post:

    david (24-03-2013),frerika (24-03-2013),michealnguyen (22-12-2014)

  3. #2
    Administrator david's Avatar
    Join Date
    Nov 2012
    Posts
    261
    Thanks
    22
    Thanked 42 Times in 34 Posts

    Default

    Good to know, thanks

  4. #3
    Junior Member frerika's Avatar
    Join Date
    Mar 2013
    Posts
    18
    Thanks
    4
    Thanked 3 Times in 3 Posts

    Default

    Do you have any simple instructions for basic speed up magento site? It 's seem it 's too advantage for me

  5. The Following User Says Thank You to frerika For This Useful Post:

    golddev (24-03-2013)

  6. #4
    Junior Member golddev's Avatar
    Join Date
    Mar 2013
    Posts
    41
    Thanks
    1
    Thanked 9 Times in 5 Posts

    Default

    Quote Originally Posted by frederik View Post
    Do you have any simple instructions for basic speed up magento site? It 's seem it 's too advantage for me
    Me too, it 's seem it 's difficult to get it work

  7. #5
    Junior Member
    Join Date
    May 2013
    Posts
    25
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Yes i too agree with your views about optimizing magento performance. Its a really nice share.

  8. #6
    New member
    Join Date
    May 2013
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Great post.

    Actually, there's another way to improve performance, which is very easy yet can be quite effective.

    Use cloud services for common tasks like in-store search.

    Even though most such solutions are expensive, there is one that is free and provides great search results and search suggestions—Searchanise (check out at Magento Connect.

    Just try it out—it's free. Since all the search requests are processed in the cloud, you may have a significant performance boost.

  9. #7
    Junior Member Kathy Daunt's Avatar
    Join Date
    May 2013
    Posts
    66
    Thanks
    10
    Thanked 4 Times in 4 Posts

    Default

    Hi guys, the post is good and thanks for sharing.

    Recently read two article which is related to this. One is Magento performance optimization and another one is Tips to optimize your Magento store.

    Hope this might be useful for you

  10. #8
    Junior Member
    Join Date
    Jul 2013
    Posts
    13
    Thanks
    8
    Thanked 0 Times in 0 Posts

    Default

    Good Test! I am always prefer super cache to boost store loading speed.

  11. #9
    Junior Member curtis's Avatar
    Join Date
    Jun 2013
    Posts
    15
    Thanks
    0
    Thanked 1 Time in 1 Post

    Default

    I don't want to spend a lot of money for VPS to get full set up caching system. Do we have any shared hosting for magento what support caching?
    Quote Originally Posted by Parth Patel View Post
    Good Test! I am always prefer super cache to boost store loading speed.

  12. #10
    Junior Member
    Join Date
    Jul 2013
    Posts
    13
    Thanks
    8
    Thanked 0 Times in 0 Posts

    Default

    If you invest in best then you will definitely get best

    Quote Originally Posted by curtis View Post
    I don't want to spend a lot of money for VPS to get full set up caching system. Do we have any shared hosting for magento what support caching?

  13. #11
    Junior Member Kathy Daunt's Avatar
    Join Date
    May 2013
    Posts
    66
    Thanks
    10
    Thanked 4 Times in 4 Posts

    Default

    Thanks for explaining in a clear manner with graph. There are some tips to optimize the Magento store, please refer:http://apptha.com/blog/top-significa...magento-store/

  14. #12
    Junior Member
    Join Date
    Aug 2013
    Posts
    45
    Thanks
    4
    Thanked 0 Times in 0 Posts

    Default

    Nice Post...

    There are many Magento Extension are available in the market that speed up your site and decrease the load time of your website....

    M-Connect Media a Magento Theme Development Company

  15. #13
    New member
    Join Date
    Sep 2013
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Great inforgraphics for developers. I think super cache is the simple and only solution for speed.

  16. #14
    New member Ritvars Radvilavičs's Avatar
    Join Date
    Oct 2014
    Location
    Leicester, UK
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Which Debian version are you working with and would suggest?
    Which one is better and why?
    Which of these Debian configurations can work with Nginx + Percona XtraDB + Amazon AWS + Redis + Varnish + PHP-FPM ?

    1.Debian Wheezy 64 bit minimal system, only SSH is installed.

    2. Debian Squeeze 64 bit + Confixx 3.3.X on Debian Squeeze 64bit base with pre-installed Parallels Confixx 3.3.9. (excl. Royalty!)

    3. Debian Wheezy 64 bit Debian Wheezy + Froxlor on 64bit base is installed and pre-configured Froxlor.

    4. Debian Wheezy 64 bit + i-MSCP Debian Wheezy 64bit on base with pre-installed i-MSCP Control Panel

    5. Debian Squeeze 64 bit + ispCP on Debian Squeeze 64bit base with pre-installed ispCP 1.1.0 Beta first

    6. Debian Wheezy 64 bit + Plesk 12.x Debian Wheezy 64bit on base with pre-installed Parallels Plesk 12 (excl. Royalty!)

    7. Debian Wheezy + OpenVPN Access Server Debian Wheezy 64bit on base with pre-installed OpenVPN Access Server (incl. 2 user license)

    8. Debian Squeeze 64 bit + ownCloud Debian Squeeze on 64bit base is installed and preconfigured ownCloud.

    9. Debian Squeeze 64 bit minimal system, only SSH is installed.

    Appreciate professional and experienced replies, thank you!

Similar Threads

  1. 12 Tips for Optimizing SEO on Your Magento Shop
    By david in forum Magento SEO technique
    Replies: 24
    Last Post: 09-03-2015, 05:04 AM
  2. How I can check my magento site performance?
    By brent in forum Magento Speed up, Performance and Optimize
    Replies: 4
    Last Post: 26-02-2015, 03:48 PM
  3. Magento Cache strategy for best performance
    By david in forum Magento Speed up, Performance and Optimize
    Replies: 3
    Last Post: 29-05-2014, 08:10 AM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •