Reached heap limit Allocation failed
When pushing a analog.js app i get the following error.
2024-11-14T14:03:40.429Z FATAL ERROR: Reached heap limit Allocation failed - JavaScript heap out of memory
First it builds the angular app and when building the server, I reach a limit.
4 Replies
Build log for pipeline Mie7dw0ASvijtk5DbIWPBw
The server part of the app is relatively small. I did not try to add an completely new Analog app for now, will try that later tomorrow.
@elite-benni build containers have plenty of resources (up to 4 CPU cores and 8 GB RAM), but Node.js is not able to utilize RAM by default. You need to set this https://stackoverflow.com/questions/56982005/where-do-i-set-node-options-max-old-space-size-2048 either as env variable or as a param.
This is the config I've used for spartan website.
My bad, sorry, reading your answer instantly made me realize that it was a stupid question.
Build works I now get other errors, but I don't think they are regarded to zerops.
THANKS!! 😉