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. 


Comments

Popular posts from this blog

Install Cpanm module error : No such file or directory opening compressed index

How to increase Elasticsearch Shard recovery Speed

Getting started with Python Flask application with MVC structure