If the GC cannot deallocate memory, the amount of RAM taken up by your application will grow over time. What is a memory leak?Įvery Node.js program allocates memory for new objects and periodically runs a garbage collector (GC) to reclaim the memory consumed by objects that aren’t used anymore. This article is intended to help you understand your application’s memory use and give you the tools to run your application without memory errors. When your Node application uses more memory than is available on the Dyno, an R14 - Memory quota exceeded error message will be emitted to your application’s logs.