[jira] [Created] (IGNITE-6062) IllegalArgumentException thrown while getHeapMemoryUsage()

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

[jira] [Created] (IGNITE-6062) IllegalArgumentException thrown while getHeapMemoryUsage()

Anton Vinogradov (Jira)
Alexander Belyak created IGNITE-6062:
----------------------------------------

             Summary: IllegalArgumentException thrown while getHeapMemoryUsage()
                 Key: IGNITE-6062
                 URL: https://issues.apache.org/jira/browse/IGNITE-6062
             Project: Ignite
          Issue Type: Bug
          Components: general
    Affects Versions: 1.8
            Reporter: Alexander Belyak
             Fix For: 1.8


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.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)