JVM Heap Memory Management MBean Example

Описание к видео JVM Heap Memory Management MBean Example

Need to know how much Java heap space is in use on your JVM? Want to set a memory management alert programmatically. In this MBean example, I'll show you how to use the MemoryMXBean MBean to discover Heap Memory Usage, the Max Heap Memory usage and of course, calculate the percentage used. Then you can send an alert, trigger garbage collection or just log the JVM memory and heap metrics to the console. It's up to you, what you do, but after watching this Java MBean tutorial, what you want to do with your limited JVM heap space is up to you!

Комментарии

Информация по комментариям в разработке