You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@flink.apache.org by "Andrey Zagrebin (Jira)" <ji...@apache.org> on 2020/04/27 07:17:00 UTC

[jira] [Closed] (FLINK-16742) Extend and use BashJavaUtils to start JM JVM process and pass JVM memory args

     [ https://issues.apache.org/jira/browse/FLINK-16742?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Andrey Zagrebin closed FLINK-16742.
-----------------------------------
    Resolution: Done

merged into master by 70b0a73c1fbad7b0fe094e5019f3a212631bca21

> Extend and use BashJavaUtils to start JM JVM process and pass JVM memory args
> -----------------------------------------------------------------------------
>
>                 Key: FLINK-16742
>                 URL: https://issues.apache.org/jira/browse/FLINK-16742
>             Project: Flink
>          Issue Type: Sub-task
>          Components: Deployment / Scripts, Runtime / Configuration, Runtime / Coordination
>            Reporter: Andrey Zagrebin
>            Assignee: Xintong Song
>            Priority: Major
>              Labels: pull-request-available
>             Fix For: 1.11.0
>
>          Time Spent: 10m
>  Remaining Estimate: 0h
>
> 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_`).



--
This message was sent by Atlassian Jira
(v8.3.4#803005)