Uploaded image for project: 'Flink'
  1. Flink
  2. FLINK-16614 FLIP-116 Unified Memory Configuration for Job Manager
  3. FLINK-16742

Extend and use BashJavaUtils to start JM JVM process and pass JVM memory args

    XMLWordPrintableJSON

Details

    Description

      Currently, the legacy options `jobmanager.heap.size` (or `jobmanager.heap.mb`) is used in JM standalone bash scripts to pass JVM heap size arg and start JM JVM process.

      BashJavaUtils should be extended to get JVM memory arg list string from Flink configuration. BashJavaUtils can use JobManagerProcessUtils#processSpecFromConfig to obtain JobManagerProcessSpec. JobManagerProcessSpec can be passed to ProcessMemoryUtils#generateJvmParametersStr to get JVM memory arg list string.

      The configuration should be fixed to fallback to JobManagerOptions.JVM_HEAP_MEMORY if a legacy option is set (JobManagerProcessUtils#getConfigurationWithLegacyHeapSizeMappedToNewConfigOption) before passing it to JobManagerProcessUtils#processSpecFromConfig.

      Then the JVM memory arg list from BashJavaUtils can be used in JM standalone bash scripts instead the existing bash code which parses legacy heap options: `jobmanager.heap.size` (or `jobmanager.heap.mb`).

      Attachments

        Issue Links

          Activity

            People

              xtsong Xintong Song
              azagrebin Andrey Zagrebin
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 10m
                  10m