Runtime.freeMemory(): Returns the amount of free memory in the Java Virtual Machine. Runtime.maxMemory(): Returns the maximum amount of memory that the Java virtual machine will attempt to use. Runtime.totalMemory(): Returns the total amount of memory in the Java virtual machine.
They are JVM sepcific. They are not dealing with the System Memory.