Forums Register Login

Info on Current JVM Memory usage

+Pie Number of slices to send: Send
Hi,
I need the info on current memory usage of the JVM. And pointers in this regards would be helpful
Regards
lpt
+Pie Number of slices to send: Send
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

Example:

We find this kind of rampant individuality very disturbing. But not this tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com


reply
reply
This thread has been viewed 765 times.
Similar Threads
Want to know how and where to use MemoryUsage methods
performence issue
Releasing memory to OS
Understanding memory usage
Memory Usage shown by Windows Task Manager and VM Telemetry view
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 28, 2024 13:58:27.