Return-Path: X-Original-To: apmail-flink-issues-archive@minotaur.apache.org Delivered-To: apmail-flink-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 36B9018BE7 for ; Thu, 21 Jan 2016 16:39:40 +0000 (UTC) Received: (qmail 58325 invoked by uid 500); 21 Jan 2016 16:39:40 -0000 Delivered-To: apmail-flink-issues-archive@flink.apache.org Received: (qmail 58269 invoked by uid 500); 21 Jan 2016 16:39:40 -0000 Mailing-List: contact issues-help@flink.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@flink.apache.org Delivered-To: mailing list issues@flink.apache.org Received: (qmail 58253 invoked by uid 99); 21 Jan 2016 16:39:40 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 21 Jan 2016 16:39:40 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id E40D72C0453 for ; Thu, 21 Jan 2016 16:39:39 +0000 (UTC) Date: Thu, 21 Jan 2016 16:39:39 +0000 (UTC) From: "Maximilian Michels (JIRA)" To: issues@flink.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (FLINK-3206) Heap size for non-pre-allocated off-heap memory MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/FLINK-3206?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15110874#comment-15110874 ] Maximilian Michels commented on FLINK-3206: ------------------------------------------- This seems to be a regression of FLINK-3073. > 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)