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

Maximilian Michels commented on FLINK-3206:
-------------------------------------------

Fixed in c57111c8587bd32e715243bd92482b91ff8b8651.

> 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
>            Assignee: Maximilian Michels
>             Fix For: 1.0.0
>
>
> 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)

Reply via email to