The question says it all!
How can I programmatically get memory, thread and CPU usuage from within my Java application?
Thanks
Use the various static methods in ManagementFactory, like getOperatingSystemMXBean()
, getMemoryMXBean()
and getThreadMXBean()
.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With