Improve and Fix Slow Magento 2 Performance Top issues

  1. A SYNC ORDER PROCESSING IS NOT ENABLED
  2. A SYNC EMAIL NOTIFICATION IS NOT ENABLED
  3. DEFERRED STOCK UPDATES IS NOT ENABLED
  4. MYSQL/READ REPLICA CONNECTION IS NOT ENABLED
  5. OPCACHE SIZE NOT SET CORRECTLY
  6. CSS UNIFICATION IS NOT ENABLED
  7. CSS MINIFICATION IS NOT ENABLED
  8. JS MINIFICATION IS NOT ENABLED
  9. MAGENTO ECE-TOOLS VERSION IS OUTDATED
  10. UNUSED MAGENTO BANNER

Magento 2 Issues:
Async Order Processing is Not Enabled

The configuration Async Order Processing is disabled

There can be times when intensive sales on a storefront occur at the same time that Magento is performing intensive order processing. Having asyncOrderProcessing disabled can lead to deadlocks and slowness on the order page. To fix that Magento Commerce can be configured to distinguish between the traffic patterns for order processing and checkout at the database level. Enabling Async Order Processing will store and index order data asynchronously. Orders are placed in temporary storage and moved in bulk
to the Order Management Grid without collisions. This will improve performance and avoid conflicts in read write operations in the corresponding tables. You can activate this option

Async Email Notification is Not Enabled:

When the asyncEmailNotification is disabled, it can degrade the performance of checkout and order processing, negatively impacting visitor experience.

By enabling asyncEmailNotification, the processes that handle email notifications for check out and order processing are moved to the background. This improves the performance of placing an order. You can activate this feature from

Deferred Stock Updates is not Enabled

In times of high number of sales transactions, when deferredStockUpdates is disabled, it can cause deadlocks which could degrade performance of the store. By enabling deferredStockUpdates as the name suggests, can defer stock updates related to orders. This reduces the number of operations required and significantly speeds up the order
placement process.
This feature can be activated from Stores > Settings > Configuration > Catalog > Inventory > Product Stock Options > Use ‘Deferred Stock Updates’

Caution!
This option can only be used when Backorders are enabled in the store because this feature can result in negative stock quantities.

Redis Replica Connection is not Enabled

Redis Replica Connections are not enabled. This issue is only applicable to Magento Commerce running on a non split architecture.

Graviton 2 Redis Performance

What about Magento Mysql Replica?

Most of the merchants Don’t need MySQL to read replicas. Wha yu need it reduces the numbers of Mysql queries (N+1 SQL issue) in the Magento Core and 3-d Magento modules. Magento 2 ecosystems are amateurish and low-cost that's why 3-d party modules regularly are the biggest issues for your website. Also, you need to fix the Magento Mysql missing Indexes issues.

OP Cache Size not set correctly

On Magento Commerce Pro accounts only, there is not enough memory for OPcache

OPcache improves PHP performance by storing precompiled script bytecode in shared memory, thereby removing the need for PHP to load and parse scripts on each request. When OPcache is set incorrectly, instead of improving performance it can increase the cache generation overhead.

It is recommended to set the opcache.memory_consumption PHP setting in php.ini file to at least 2048MB to avoid performance degradation.

opcache.validate_timestamps=0

CSS Unification is Not Enabled

When CSS unification is not enabled, it can result in multiple HTTP requests for each partial required during page load. This can have an adverse effect on performance.

Unification of CSS files results in combining multiple asset requests to a single request which can improve performance of page load.

CSS assets minification is not enabled

CSS files can be fairly large in size. When they are not minified or gzipped, the time to download at page load time can be high, providing a bad visitor experience

Magento commerce can be configured for various file optimization techniques including minification. Minification can be done from the command line by running bin/magento
config:store:set dev/js/minify_files 1

JS Minification is Not Enabled

JS files can be fairly large in size. When they are not minified or gzipped, the time to download at page load time can be high, providing a bad visitor experience.

Magento commerce can be configured for various file optimization techniques including minification. Minification can be done from the command line by running bin/magento
config:store:set dev/js/minify_files

Magento ECE-Tools Version is Outdated

Having an outdated version of Magento ECE-Tools can lead to issues with infrastructure upgrade, servers, application, and integrations.

Always run the latest compatible version of the Magento ECE-Tools

Unused Magento Banner Functionality

When the Magento Banner functionality is enabled but is not being used, it can make an unnecessary AJAX request to the server

Unnecessary AJAX requests to a server can have a negative impact on the performance of the site.
This is especially true during high traffic periods

If the Magento Banned functionality is not required, it is recommended to follow these steps
• Disable to Magento Banner Module Output as described here. The name of the module is Magento_Banner.

Magento Commerce vs Magento 2 Open Source performance:

To be continued…

You can send your issues and fixes and we can create open source list.

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store