Saturday, November 11, 2023

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

 

See the current value of max-old-space-size (in MB)

 

node -e 'console.log(v8.getHeapStatistics().heap_size_limit/(1024*1024))'

 

 

That said, to increase the memory, in the terminal where you run your Node.js process:

 export NODE_OPTIONS="--max-old-space-size=8192"
 
Reference 
https://stackoverflow.com/questions/53230823/fatal-error-ineffective-mark-compacts-near-heap-limit-allocation-failed-javas 

No comments:

Post a Comment