You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@flink.apache.org by "Steven Zhen Wu (Jira)" <ji...@apache.org> on 2020/02/02 21:52:00 UTC

[jira] [Created] (FLINK-15846) TaskExecutorResourceUtils should return config strs with mb as unit for better readability

Steven Zhen Wu created FLINK-15846:
--------------------------------------

             Summary: TaskExecutorResourceUtils should return config strs with mb as unit for better readability
                 Key: FLINK-15846
                 URL: https://issues.apache.org/jira/browse/FLINK-15846
             Project: Flink
          Issue Type: Improvement
          Components: Runtime / Configuration
            Reporter: Steven Zhen Wu


With FLIP-49 being released in 1.10. The config strs returned `TaskExecutorResourceUtils` are using bytes as unit which are very difficult to read when inspecting logs. It is hard to believe anyone will ever configure memory using bytes as unit. mostly likely either mega-bytes or giga-bytes.

e.g. from logs.

BASH_JAVA_UTILS_EXEC_RESULT:-D taskmanager.memory.framework.off-heap.size=2147483648b -D taskmanager.memory.network.max=163840000b -D taskmanager.memory.network.min=163840000b -D taskmanager.memory.framework.heap.size=134217728b -D taskmanager.memory.managed.size=2616406869b -D taskmanager.cpu.cores=2.0 -D taskmanager.memory.task.heap.size=1479068832b -D taskmanager.memory.task.off-heap.size=0b 

-Xmx1613286560
 -Xms1613286560
-XX:MaxDirectMemorySize=2311323648
-XX:MaxMetaspaceSize=536870912



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