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

**URL:** <https://forum.mautic.org/t/when-try-to-clear-cache-from-command-line-php-fatal-error-allowed-memory-size-of-134217728-bytes-exhausted/19694>\
**Category:** Product Support\
**Created:** [June 1, 2021, 5:49pm UTC](https://forum.mautic.org/t/when-try-to-clear-cache-from-command-line-php-fatal-error-allowed-memory-size-of-134217728-bytes-exhausted/19694 "2021-06-01T17:49:06Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![paulbntz](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/paulbntz/32/544_2.png) [@paulbntz](https://forum.mautic.org/u/paulbntz)\
**Post date:** [June 1, 2021, 5:49pm UTC](https://forum.mautic.org/t/when-try-to-clear-cache-from-command-line-php-fatal-error-allowed-memory-size-of-134217728-bytes-exhausted/19694/1 "2021-06-01T17:49:06Z")

</div>

**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!

---

<div class="post-metadata">

**Author:** ![mypirateapp](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/mypirateapp/32/706_2.png) [@mypirateapp](https://forum.mautic.org/u/mypirateapp)\
**Post date:** [October 14, 2021, 2:16pm UTC](https://forum.mautic.org/t/when-try-to-clear-cache-from-command-line-php-fatal-error-allowed-memory-size-of-134217728-bytes-exhausted/19694/2 "2021-10-14T14:16:05Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![silavapi](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/silavapi/32/7424_2.png) [@silavapi](https://forum.mautic.org/u/silavapi)\
**Post date:** [October 14, 2021, 2:22pm UTC](https://forum.mautic.org/t/when-try-to-clear-cache-from-command-line-php-fatal-error-allowed-memory-size-of-134217728-bytes-exhausted/19694/3 "2021-10-14T14:22:41Z")

</div>

Hey folks!

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

Have a look at this docs page:

> **[Working with php.ini resource limits](https://docs.mautic.org/en/troubleshooting/working-with-php-ini-resource-limits)**
>
> . You may come across limitations with your server configuration when installing or using Mautic. These commonly manifest as errors such as:. The Uploaded file exceeds the uploadmaxfilesize directive. . Maximum execution time of 30 seconds exceeded...

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

---

<div class="post-metadata">

**Author:** ![raramuridesign](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/raramuridesign/32/13226_2.png) [@raramuridesign](https://forum.mautic.org/u/raramuridesign)\
**Post date:** [December 3, 2024, 11:50am UTC](https://forum.mautic.org/t/when-try-to-clear-cache-from-command-line-php-fatal-error-allowed-memory-size-of-134217728-bytes-exhausted/19694/4 "2024-12-03T11:50:31Z")

</div>

New link for this documentation  
[https://docs.mautic.org/en/5.x/troubleshooting/working\_with\_resource\_limits.html](https://docs.mautic.org/en/5.x/troubleshooting/working_with_resource_limits.html)
