Node JS Memory Limits

Jordan Finneran
Jul 24, 2017 · 1 min read

Recently came across an issue at work where one of our Node JS micro services kept hitting the default memory limit on Node JS.
It was moving GB of data around at the time and kept hitting the default of ~1.7GB of memory and causing the process manager to restart it.

So thought I’d share the command line argument to set the memory size to what you like max_old_space_size=4096 as you might find it handy!

Jordan Finneran

Written by

Data Engineer at the Datashed, basically a big data geek!

Welcome to a place where words matter. On Medium, smart voices and original ideas take center stage - with no ads in sight. Watch
Follow all the topics you care about, and we’ll deliver the best stories for you to your homepage and inbox. Explore
Get unlimited access to the best stories on Medium — and support writers while you’re at it. Just $5/month. Upgrade