Magento 2 Performance Tuning

by | May 11, 2017 | Blog | 0 comments

Magento 2 Performance Tuning

Speak to a Magento Certified Solution Specialist

Tuning Magento 2 performance can be a challenging task. We’ve launched ten Magento 2 sites at this point, so we’ve learned quite a bit, the hard way. For an example, check out Virota with over 400,000 products:

https://www.virota.com/

If you’re struggling to get your new site to load quickly, you may find some guidance here. Let’s start with a quick list of considerations:

Some Basics

  • Server hardware – Requires a current processor (doesn’t need to be high end), fast storage (like SAS drives or solid state drives) and 1 GB of RAM.
  • PHP 7 – Magento 2 will run on an older version of PHP, but it will be noticeably slower.
  • Production mode/caching – Keep in mind it runs like a snail in development. Its not a bug, it’s a ‘feature’.

Really Technical Items

Here are a couple really specific configuration settings that are important to tuning Magento performance tuning. If you’re using a good Magento hosting provider, they’ll have done this for you. If you’re using GoDaddy… well, you’re getting what you pay for.

First, optimize PHP and MySQL settings out of the box.

In PHP:

  • Compression turned on – enabled in the HTAccess file as well.
  • memory_limit must be set to 1024M
  • in addition, open_basedir set to none
  • finally, always_populate_raw_post_data set to -1

In MySQL:

  • Turn on Query caching
  • Increase INNODB buffer pool size

In Magento:

  • Another possibility… Some sites benefit from using Flat Catalog indexes for products and categories. You’ll need to experiment with your particular site.

Troubleshooting Magento 2 Performance Problems

OK, so you’ve got the server configurations set, but it’s still a dog. Here are a couple proven trouble spots worth investigating.

  • Extensions – Disable all the extensions then look at performance. Many Magento 2 extensions are new, and still have some performance issues.
  • Custom coding – Obviously Magento 2 is a sophisticated application. It’s easy to introduce slow custom code. Set it back to the default Magento code and give it a spin.
  • 3rd party integrations like Google Analytics – If their servers are slow, they can slow your page loads. Can’t tell you how many times clients complain about a slow page load, only to find it had nothing to do with our code or servers.
  • Image sizes – In addition, put a 2MB JPEG on the home page, and try to load it over your iPhone. Seems obvious, but not every person managing a site understands how large image files are, or how to compress them. As a result, limited mobile bandwidth clog.

Coming Soon

A couple exciting technology updates are just a few months away. They’ll speed your site’s load time, when configured to support them.

Running under TLS – First, a number of changes are coming to SSL/TLS. In the past, running under SSL slowed the data transfer. Upcoming changes to TLS will actually provide better compression, fewer server connections and more speed tools. Read more at istlsfastyet.com.

HTML 5 – In 2017 and 2018, HTML 5 appears in web servers. When installed on your web server (APACHE, NGINX, etc.), the site appears to load faster. For example, it learns the images that get loaded on every page. The web server starts sending the images when requested. It doesn’t wait for a request for the images.

In conclusion, Magento 2 performance is determined by many factors. Looking for some help speeding up your site? Contact Us!

 

Web 2 Market Digital Marketing Case Study

American Technical Publishers (“ATP”) is an industry leader in textbook publishing for career and technical training. Founded in 1898, the company sells worldwide through its website on the domain ATPLearning.com and by phone order. As ATP improved its product...

How to GDPR prepare your online store?

GDPR or General Data Protection Regulation is an updated version of the 1995 Data Protection Directive. With the advance of the different ways we go on the internet, a more defined law was in demand. The GDPR is drawn to protect the rights of all the European Union...

Learn how eCommerce with Magento helps expand Online Business

Online shopping is a billion dollar industry. And Magento has cornered the eCommerce market with more than 250,000 online stores in America alone. The reputation is because of the Magento program’s ability to fit any online business. All that stops you from standing...

Magento website templates – How the right template can boost sales?

Magento is an out of the box eCommerce software. And it also has a free Community version which is the most popular. Because of the way Magento is set up, no two online stores look and feel the same. The uniqueness comes from the way the store is designed using...

Hosting for Magento – How to find the right hosting for eCommerce stores?

Magento is a huge program to host. Without a great hosting partner, the Mage program loses all its benefits. Coded on the PHP framework, Magento is a very popular program that comes without a host. The one click out of the box store is easy to install. However it is...

eCommerce Magento theme – How to choose the right theme for your online store

eCommerce Magento theme involves different ways to go about it. Magento is an open source program which comes with a theme and a blank theme file which can be worked on. This helps online stores to add unique features to their store. For example, you can create blocks...

Magento site – What are the basic features for an online store

Magento is a huge program that is popular among eCommerce owners. All you need is to install Magento and set up the store. This out of the box solution even allows people to customize the store. However the customization should be undertaken by an experienced person....

Free Magento templates for Community and Enterprise stores

Magento has changed the eCommerce industry by providing the out of the box store solution. No matter what type of products you sell, Magento fits. Most business owners are however not very in tune with how to setup their eCommerce store. This includes finding the...

Magento Free templates – Tips to choosing the right store template

Magento offers a lot of potential for eCommerce store owners. It is open source, and provides an out of the box easy solution. This means the store is flexible to design and code according to your requirements. The very first thing that most store owners look for is a...

Design Magento – Three design tips for every online store owner

Magento is a very popular eCommerce program with online store owners. The way you can design Magento stores is unique. This of course leads to creating your very own branded store. There are however some things to consider when designing your store. Let’s look at just...