@VisibleForTesting
  protected long getMemorySizeValue(
      Map<String, String> resourceProperties, FlinkConf conf, String flinkConfKey) {
    String value = resourceProperties.get(flinkConfKey);
    if (value == null) {
      value = conf.configValue(flinkConfKey);
    }
    return parseMemorySize(value);
  }
get jobManager and taskManager memory. An example of using Jobmanager memory parameters is as
flink-conf.jobmanager.memory.process.size: 1024M flink-conf.yaml Prioritize from high to low.
amoro-ams/src/main/java/org/apache/amoro/server/manager/FlinkOptimizerContainer.java