Bobcares

Try our smart search search

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
Copy Code
php -d memory_limit=1G bin/magento setup:static-content:deployCopy Code

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