J
J
JohnDaniels2020-01-02 23:13:34
GitLab
JohnDaniels, 2020-01-02 23:13:34

Is it possible to increase the memory limit of the gitlab runner?

I set up the project according to the instructions https://docs.gitlab.com/ee/ci/examples/laravel_wit...
Everything is fine, but recently the tests began to fall with an error

Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 32768 bytes) in ...

Can anything be done about it?
I use a free plan, cloud.
Does it make sense to upgrade to a paid version?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
SlavikF, 2020-01-03
@JohnDaniels

Firstly, in the paid plan, you will have more minutes for the runner, but there will be no more memory.
Second, the out-of-memory error is not a runner error. This is a PHP error.
I don't know which container you are using, but I think the solution to the problem is to increase the memory_limit in the PHP config:
memory_limit = 512M

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question