Will process be allocated enough heap when no explicit parameters are specified?
<p>I am running java process through main class on java 8. I have not specified anywhere min(Xms) and max(Xmx) heap size. But when i check through visualVM it's
4267704320(i.e. 4.26 GB) which is the default max heap size for a given process(confirmed through windows command also which is
<code>-XX:+PrintFlagsFinal -version 2&gt;&amp;1 | findstr MaxHeapSize</code>. similarly on linux box too). </p>

<p><strong>My question is</strong> if my process(on linux machine) requires more 5 GB(i have 30 GB RAM), will my process be allocated 5 GB memory  when i have not specified
 any explicit heap size(Xms and Xmx) parameters.</p>