Archive

Posts Tagged ‘memory’

[nodejs] increase memory limit

December 22, 2015 Leave a comment

Problem
Your Node.js program terminates with a “process out of memory” error. How to increase the memory limit?

Solution
Launch your program with the following switch:

node --max-old-space-size=8192 mem_eater.js

This way you give 8 GB RAM to your process.

More tips here.

Categories: nodejs Tags: ,
Design a site like this with WordPress.com
Get started