Hyperz Documentation > Knowledgebase > NodeJS Websites > Out Of Memory

Out Of Memory

Hyperz

Solution

Getting errors relating to JavaScript heap out of memory? Well simply allocate more RAM for the process.

node . --max-old-space-size=1024 #increase to 1gb
node . --max-old-space-size=2048 #increase to 2gb
node . --max-old-space-size=3072 #increase to 3gb
node . --max-old-space-size=4096 #increase to 4gb
node . --max-old-space-size=5120 #increase to 5gb
node . --max-old-space-size=6144 #increase to 6gb
node . --max-old-space-size=7168 #increase to 7gb
node . --max-old-space-size=8192 #increase to 8gb

Was this article helpful?

7 out of 15 found this helpful