Return-Path: X-Original-To: apmail-apex-dev-archive@minotaur.apache.org Delivered-To: apmail-apex-dev-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 91505180BE for ; Fri, 15 Jan 2016 17:01:51 +0000 (UTC) Received: (qmail 64004 invoked by uid 500); 15 Jan 2016 17:01:51 -0000 Delivered-To: apmail-apex-dev-archive@apex.apache.org Received: (qmail 63943 invoked by uid 500); 15 Jan 2016 17:01:51 -0000 Mailing-List: contact dev-help@apex.incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@apex.incubator.apache.org Delivered-To: mailing list dev@apex.incubator.apache.org Received: (qmail 63932 invoked by uid 99); 15 Jan 2016 17:01:51 -0000 Received: from Unknown (HELO spamd2-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 15 Jan 2016 17:01:51 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd2-us-west.apache.org (ASF Mail Server at spamd2-us-west.apache.org) with ESMTP id 1655A1A025F for ; Fri, 15 Jan 2016 17:01:51 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 0.427 X-Spam-Level: X-Spam-Status: No, score=0.427 tagged_above=-999 required=6.31 tests=[KAM_LAZY_DOMAIN_SECURITY=1, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, RP_MATCHES_RCVD=-0.554, URIBL_BLOCKED=0.001] autolearn=disabled Received: from mx1-eu-west.apache.org ([10.40.0.8]) by localhost (spamd2-us-west.apache.org [10.40.0.9]) (amavisd-new, port 10024) with ESMTP id f00eBR8YrBxU for ; Fri, 15 Jan 2016 17:01:41 +0000 (UTC) Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by mx1-eu-west.apache.org (ASF Mail Server at mx1-eu-west.apache.org) with SMTP id 9A57831AC4 for ; Fri, 15 Jan 2016 17:01:40 +0000 (UTC) Received: (qmail 63623 invoked by uid 99); 15 Jan 2016 17:01:39 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 15 Jan 2016 17:01:39 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id CAA492C0453 for ; Fri, 15 Jan 2016 17:01:39 +0000 (UTC) Date: Fri, 15 Jan 2016 17:01:39 +0000 (UTC) From: "ASF GitHub Bot (JIRA)" To: dev@apex.incubator.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (APEXCORE-296) App Master Dies With 1 gb of 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/APEXCORE-296?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15102070#comment-15102070 ] ASF GitHub Bot commented on APEXCORE-296: ----------------------------------------- Github user amberarrow commented on a diff in the pull request: https://github.com/apache/incubator-apex-core/pull/203#discussion_r49877090 --- Diff: engine/src/main/java/com/datatorrent/stram/StreamingContainerManager.java --- @@ -1027,6 +1027,19 @@ public int processEvents() } } o.stats.lastWindowedStats = stats; + if (!o.stats.responses.isEmpty()) { + if (o.stats.operatorResponses == null) { + o.stats.operatorResponses = new ArrayList<>(); + } else { + o.stats.operatorResponses.clear(); + } + StatsListener.OperatorResponse operatorResponse; + while ((operatorResponse = o.stats.responses.poll()) != null) { + o.stats.operatorResponses.add(operatorResponse); + } + } else { + o.stats.operatorResponses = null; --- End diff -- This version tries to avoid creating garbage by reusing the ArrayList if one is already present. > App Master Dies With 1 gb of memory > ----------------------------------- > > Key: APEXCORE-296 > URL: https://issues.apache.org/jira/browse/APEXCORE-296 > Project: Apache Apex Core > Issue Type: Bug > Affects Versions: 3.0.0, 3.1.0, 3.2.0, 3.1.1, 3.3.0, 3.2.1 > Reporter: Timothy Farkas > Assignee: gaurav gupta > > When the App Master only has 1gb of memory it dies. When the memory is increased to 2gb it runs fine. Often times the App Master dies abruptly without any log messages, occasionally there is an OutOfMemoryException. -- This message was sent by Atlassian JIRA (v6.3.4#6332)