I wrote the following program.
result:
==============
Max mem 66.650112 mb
free mem 1.9108 mb
total mem 2.031616 mb
==============
I understand max memory is the total amount of memory that the jvm can use for heap or in other words its the max heap size..
How about total memory and free memory..does the total memory mean total free memory? if yes , then why executing such a small program (which doesnot create any object) consume such a big amount of memory ?
Or total memory is for this
thread of execution and can be extendable to max mem.
please explain
Thanks,
Rahul B
[Added code tags - Paul Sturrock]
[ September 11, 2006: Message edited by: Paul Sturrock ]