DEV Community

Jordan Finneran
Jordan Finneran

Posted on • Edited on • Originally published at jordanfinners.dev

4 1

Node JS Memory Limits

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!

Top comments (0)

Billboard image

The Next Generation Developer Platform

Coherence is the first Platform-as-a-Service you can control. Unlike "black-box" platforms that are opinionated about the infra you can deploy, Coherence is powered by CNC, the open-source IaC framework, which offers limitless customization.

Learn more