How to avoid heap out of memory with angular production application?

I use a shared gitlab runner for build and deploy my application. When I run my CI pipeline I get this error :

FATAL ERROR: Ineffective mark-compacts near heap limit Allocation failed - JavaScript heap out of memory

How can I increase momory in a shared gitlab runner ? I need help so any solution is greatly appreciated :slight_smile:

Thanks in advance,
Maximilien

2 Likes

I am facing the same issue

Hello, I have always this issue, did you found a solution ?

Same issue for me, did you manage to solve this?

Did any one find a way to easily get instances with more memory on GitLab?

i.e If not, we think about moving to GtiHub - thier instances.have more RAM.
currently (8.2021) 7GB memory
Reference