NodeJS recommended max-old-space-size : <p>I'm having some trouble to understand how NodeJS acts based on the parameter max-old-space-size.</p>

<p>In my case for example, I'm running two t2.small aws instances (2GB of RAM).</p>

<p>Not sure why but I did set max-old-space-size=4096 (4GB). What does node do in this case? Could this configuration lead to a posible memory allocation failure?</p>

<p>How do I determine the correct value of max-old-space-size based on the server resources?</p>

<p>PD: My application is constantly growing the memory usage and I'm trying to understand everything about node internals.</p>
