Uploaded image for project: 'Flink'
  1. Flink
  2. FLINK-7401

EnvironmentInformation.getMaxJvmHeapMemory does not return the value given via -Xmx

    XMLWordPrintableJSON

Details

    Description

      EnvironmentInformation.getMaxJvmHeapMemory is intended to return the value given to the JVM via -Xmx but it actually returns something a bit smaller which may disturb memory calculations expecting the right value.

      For now, this is a "good" bug as the calculations inside TaskManagerServices#calculateNetworkBufferMemory(), for example, lead to lower values for the network buffers or the manages memory fractions which thus still fit into the bounds set by the JVM options.

      Attachments

        Activity

          People

            Unassigned Unassigned
            nkruber Nico Kruber
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: