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

IllegalArgumentException thrown while getHeapMemoryUsage()

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Duplicate
    • 1.8
    • 1.8
    • general
    • 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

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

              Dates

                Created:
                Updated:
                Resolved: