title: Does Java heap memory change based on RAM?
body: <p>I know the default Java heap memory is 128 MB. Since it is the <strong>default</strong>, I want to know whether this memory get <strong>automatically</strong> changed according to the RAM size. For an example, for a machine with 128 MB RAM, heap memory 128 is too much and it should be automatically changed. Because if an application use all of 128 heap, PC will end up in a trouble.</p>
  
  <p>please help.</p>