node increase the heap size code example
Example 1: node parameter add memory
node --max-old-space-size=8192 server.js
Example 2: increase node heap size
export NODE_OPTIONS=--max_old_space_size=4096
node --max-old-space-size=8192 server.js
export NODE_OPTIONS=--max_old_space_size=4096