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/03/24 08:08:00 UTC

[jira] [Updated] (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 updated FLINK-16742:
------------------------------------
    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.

Then the VM 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_`).

  was:
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.


> 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
>            Priority: Major
>
> 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.
> Then the VM 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)