When try to clear cache from command line > PHP Fatal error: Allowed memory size of 134217728 bytes exhausted

Your software
My Mautic version is: 3.3.3
My PHP version is: 7.4
My Database type and version is: MARIADB 10.4.18

Running Mautic on OpenLiteSpeed (not apache or nginx)

Your problem
My problem is:

When trying to clear cache on Mautc I got this error message.

These errors are showing in the log/command line:


./console cache:clear -v

// Clearing the cache for the prod environment with debug false

// Clearing outdated warmup directory…

// Warming up cache…

PHP Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 495616 bytes) in /home/user/webapps/mt/vendor/symfony/translation/Translator.php on line 318

In Translator.php line 318:

[Symfony\Component\Debug\Exception\OutOfMemoryException]
Error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 495616 bytes)

Exception trace:
at /home/user/webapps/mt/vendor/symfony/translation/Translator.php:318


Steps I have tried to fix the problem:

I have manual clear cache from winscp app. I would like to clear cache from command line

Any help will be appreciated!

2 Likes

I have the same issue but on mautic 4, any help is appreciated

Hey folks!

Looks like your server may be under resourced according to the error messages.

Have a look at this docs page:

You may need to ask your server provider/hosting provider to assist.

1 Like