What i am asking is how much of Virtual memory is allocated to Java and how much of free space is when a java program is running.
Thanks,
Whenever you talk about java, then you no more talk about Virtual memory etc, you only talk about heap memory, because GC takes care of memory management. If you want to set heap memory size then use command line arguments for that, eg:- java -Xms200m -Xmx800m TestProgram.
Xms - minimum heap size.
Xmx - maximum heap size.
I hope it helps, if not then google for memory management in java.
Comment