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

Hey guys!

I was able to find a solution for this problem. Thanks to @smino for guiding me through additional steps I had not considered when trouble shooting my problem.

Through online research and @smino 's guide, I found this link: https://stackoverflow.com/questions/53230823/fatal-error-ineffective-mark-compacts-near-heap-limit-allocation-failed-javas

On there, they explain that you can add an option to a Node process to expand the memory available by adding the following line to the build process:

–max-old-space-size=8192

I had not managed to enter this line into the code, because when you do a SUDO BENCH UPDATE --RESET, bench checks for the Git files and gets the build file from Git. When I added the above line on to my local files and ran a BENCH BUILD (no sudo), the process did not check the Git files and used the local file and completed the process succesfully.

I hope this helps anyone that may find this error in the future. Thank you again @smino for guiding me through additional steps, they helped me a lot to get to this solution.

Regards,

Sony

4 Likes