Posts

Showing posts with the label forever max-old-space-size

How to allocate memory for Node.js server

Sometimes while making heavy calculations it is possible that node.js runs out of memory and throws this error " FATAL ERROR- JS Allocation failed – process out of memory"   By default node.js occupies 512MB RAM in a 32 bit machine and 1.4GB RAM in a 64bit machine This is how we can increase it.