Node.js has two options for managing memory allocations, as I know:
Node.js
--max_new_space_size and --max_old_space_size
--max_new_space_size
--max_old_space_size
What exactly are mentioned NEW SPACE and OLD SPACE things?
NEW SPACE
OLD SPACE
In a collective garbage collector (which is used by V8), the heap is usually divided into two spaces. The young generation (new space) and the old generation (old space). Infant mortality or the generational hypothesis is the observation that in most cases young objects die much more often than old objects.
New space: most objects stand out here. The new space is small and designed to collect garbage very quickly, regardless of other spaces.
Old space: contains most of the objects that may have pointers to other objects. Most objects move here after surviving in a new space for a while.
Link: http://www.memorymanagement.org/glossary/g.html#term-generational-hypothesis
Link: http://jayconrod.com/posts/55/a-tour-of-v8-garbage-collection