I know the default Java heap memory is 128 MB. Since it is the default, I want to know whether this memory get automatically 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.
please help.
In Java 1.6 update 18 (and later), if unspecified, the default heap-size in a client JVM follows these rules:
Taken from the 1.6.0_18 update notes
In previous releases of Java heap size was NOT variable by default.