I see it is using all of the 6144 MB of old space memory too. This site build certainly appears to have memory consumption issues.
For out of memory (OOM) issues for site builds at Netlify, there are three general solutions:
- Debug the code locally to find and fix the root cause of the OOM errors.
- Upgrade to a plan at Netlify with more memory available.
- Build outside of Netlify on a system with more memory and deploy to Netlify using the manual deploy workflow.
Which solution to use is up to you. Now, there is a cost for upgrading but not for the other two solutions.
The Free and Starter plan get 8 GB of total build memory available. The Pro and Enterprise plans get 11 GB of memory for the builds. There is also an High-Performance Builds add-on for Enterprise that grants up to 36 GB of memory for builds.
If there are other questions about any of this, please let us know.