Description
In org.apache.ignite.internal.managers.discovery.GridDiscoveryManager
we can't just use getHeapMemoryUsage():
private static final MemoryMXBean mem = ManagementFactory.getMemoryMXBean();
mem.getHeapMemoryUsage().getCommitted();
because of
https://bugs.openjdk.java.net/browse/JDK-6870537
It should be somehow wrapped to catch IllegalArgumentException.
Also we need to test all codebase and use wrapped version of getHeapMemoryUsage() method.
In version 2.1 its already fixed.
Attachments
Issue Links
- duplicates
-
IGNITE-5288 Inconsistency of committed and the max memory numbers should not cause stopping node
- Resolved