Hi, I need the info on current memory usage of the JVM. And pointers in this regards would be helpful Regards lpt
posted 11 years ago
You can use the object Runtime to get this information.
- freeMemory() Returns the amount of free memory in the Java Virtual Machine - maxMemory() Returns the maximum amount of memory that the Java virtual machine will attempt to use. - totalMemory() Returns the total amount of memory in the Java virtual machine