You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@flink.apache.org by "Stephan Ewen (JIRA)" <ji...@apache.org> on 2016/01/06 17:39:40 UTC

[jira] [Commented] (FLINK-3206) Heap size for non-pre-allocated off-heap memory

    [ https://issues.apache.org/jira/browse/FLINK-3206?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15085791#comment-15085791 ] 

Stephan Ewen commented on FLINK-3206:
-------------------------------------

Are you running this on YARN?

I recently discovered this as a bug in the YARN code. Fixing this as part of my YARN refactoring...

> Heap size for non-pre-allocated off-heap memory
> -----------------------------------------------
>
>                 Key: FLINK-3206
>                 URL: https://issues.apache.org/jira/browse/FLINK-3206
>             Project: Flink
>          Issue Type: Bug
>          Components: Start-Stop Scripts
>    Affects Versions: 1.0.0
>            Reporter: Greg Hogan
>
> In {{taskmanager.sh}} the heap size is adjusted for off-heap memory only with pre-allocation set to true. In {{TaskManager.scala}} the computation is reversed to compute the {{directMemorySize}}. The effect is the JVM heap settings are too high and the assumed size of direct memory is also too high.
> {noformat}
> taskmanager.memory.fraction: 0.9
> taskmanager.memory.off-heap: true
> taskmanager.heap.mb: 18000
> {noformat}
> With {{taskmanager.memory.preallocate: false}}
> {noformat}
> 13:44:29,015 INFO  org.apache.flink.runtime.taskmanager.TaskManager              -     -Xms18000M
> 13:44:29,015 INFO  org.apache.flink.runtime.taskmanager.TaskManager              -     -Xmx18000M
> 13:44:30,591 INFO  org.apache.flink.runtime.taskmanager.TaskManager              - Limiting managed memory to 0.9 of the maximum memory size (161999 MB), memory will be allocated lazily.
> {noformat}
> With {{taskmanager.memory.preallocate: true}}
> {noformat}
> 13:53:44,127 INFO  org.apache.flink.runtime.taskmanager.TaskManager              -     -Xms1800M
> 13:53:44,127 INFO  org.apache.flink.runtime.taskmanager.TaskManager              -     -Xmx1800M
> 13:53:45,743 INFO  org.apache.flink.runtime.taskmanager.TaskManager              - Using 0.9 of the maximum memory size for managed off-heap memory (15524 MB).
> {noformat}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)