Uploaded image for project: 'Ignite'
  1. Ignite
  2. IGNITE-6062

IllegalArgumentException thrown while getHeapMemoryUsage()

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Duplicate
    • Affects Version/s: 1.8
    • Fix Version/s: 1.8
    • Component/s: general
    • Labels:
      None

      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

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                sbberkov Alexander Belyak
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: