wesupport

Need help?

Our experts have had an average response time of 13.14 minutes in February 2024 to fix urgent issues.

We will keep your servers stable, secure, and fast at all times for one fixed price.

Magento fatal error “allowed memory size of bytes exhausted”

by | Sep 17, 2021

Wondering how to resolve magento fatal error “allowed memory size of bytes exhausted”? We can help you.

As part of our Server Management Services, we assist our customers with several similar queries.

Today, let us see steps performed by our Support Techs in order to resolve this error.

How to resolve magento fatal error “allowed memory size of bytes exhausted”?

The cause of the error “allowed memory size of bytes exhausted” is obvious i.e. it’s related to shortage of memory.

The error occurs if you try to use more RAM resources than what you have specified in the php.ini file through “memory_limit”.

Today, let us see the steps followed by our Support Techs to resolve this magento fatal error.

Out of memory errors are one of the most common and hard to fix.

In this case, however, the solution is simple. You just have to increase the memory limit in the php.ini file.

It is the default configuration file that is used to control upload sizes, file timeouts and resource limits.

  • Firstly, locate php.ini file. This will usually be etc/php.ini.
  • Then, find the parameter memory_limt =128M
  • Finally, increase the limit to 256M or 512M.

Increase the Memory Limit

You can also increase the memory limit using the following commands.

php -d memory_limit=1G bin/magento setup:di:compile
php -d memory_limit=1G bin/magento setup:static-content:deploy

You can change 1G to whatever limit you want.

This will surely resolve the error allowed memory size of bytes exhausted in Magento 2.

[Need help with similar issue? We are available 24*7]

Conclusion

In short, we saw steps followed by our Support Techs and how they resolve magento fatal error.

PREVENT YOUR SERVER FROM CRASHING!

Never again lose customers to poor server speed! Let us help you.

Our server experts will monitor & maintain your server 24/7 so that it remains lightning fast and secure.

GET STARTED

2 Comments

  1. hubi

    we have the error for …StoreRepository.php on line 112

    But what ever limit is set as local and global value (6G), the error returns

    Seems to be something else..

    Reply
    • Hiba Razak

      Hi,
      Our experts can help you with the issue.we will be happy to talk to you through our live chat(click on the icon at right-bottom).

      Reply

Submit a Comment

Your email address will not be published. Required fields are marked *

Categories

Tags