Node.js runs out of memory during the build process, causing it to crash.
'FATAL ERROR: Ineffective mark-compacts' error
'JavaScript heap out of memory'
Build crashes after running for a while
Large number of pages/files to process
Memory-intensive plugins or loaders
Insufficient memory allocated to Node
Circular dependencies causing infinite loops
DevConsole monitors build resource usage and can help identify memory-heavy operations.
Set NODE_OPTIONS='--max-old-space-size=4096'
Use tools to detect import cycles.
Split large pages, use incremental builds.
Start with 4GB (4096). For very large projects, you might need 8GB or more.
Each page needs to be held in memory during SSG. More pages = more memory.
DevConsole gives you the visibility and control to fix issues like build out of memory in seconds, not hours.
Get DevConsole Pro