Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Pipeline: Got Fatal error by Allowed memory size

Ramon Costa April 4, 2023

Hi everybody,

I've configured a pipeline for a Symfony app with PHP Unit tests and Behat tests.

In first place, when after having run composer install, I did following:

php bin/console cache:clear

In that step, I've got an error of Allowed memory. As I couldn't get rid off it, I removed cache:clear step temporaly.

But in further steps, when I prepare database in order to run behat tests, in fixtures loading, the Allowed Memory error came again.

Fatal error: Allowed memory size of 134217728 bytes exhausted

My pipeline is something like that:

image.png

The pipeline output is:

image.png

I've already raised the memory limit and step size (2x) as well as I've gave more memory to MySql docker service to 2GB (default was 1GB) 

What can I do to solve that?

Thanks in advance

Greetings

1 answer

0 votes
Ramon Costa April 6, 2023

By the way, I've workaround this adding additional param -d memory_limit=-1 in some places like:

- php -d memory_limit=-1 /usr/local/bin/composer install

- php -d memory_limit=-1 vendor/bin/phpunit

- php -d memory_limit=-1 vendor/bin/behat

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
TAGS
AUG Leaders

Atlassian Community Events