Return-Path: X-Original-To: apmail-activemq-users-archive@www.apache.org Delivered-To: apmail-activemq-users-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 1029111651 for ; Fri, 13 Jun 2014 13:25:03 +0000 (UTC) Received: (qmail 27775 invoked by uid 500); 13 Jun 2014 13:25:02 -0000 Delivered-To: apmail-activemq-users-archive@activemq.apache.org Received: (qmail 27738 invoked by uid 500); 13 Jun 2014 13:25:02 -0000 Mailing-List: contact users-help@activemq.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@activemq.apache.org Delivered-To: mailing list users@activemq.apache.org Received: (qmail 27728 invoked by uid 99); 13 Jun 2014 13:25:02 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 13 Jun 2014 13:25:02 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: local policy includes SPF record at spf.trusted-forwarder.org) Received: from [209.85.215.53] (HELO mail-la0-f53.google.com) (209.85.215.53) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 13 Jun 2014 13:24:57 +0000 Received: by mail-la0-f53.google.com with SMTP id b8so75230lan.12 for ; Fri, 13 Jun 2014 06:24:36 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:date :message-id:subject:from:to:content-type; bh=GWAp6VkcOy8mlGoZrC5BXKgwQU+brUymBPOLLjbvPUg=; b=Imy9EwKzSX+JFkL+buaBqOSyNQmJBAOKlnzC/hSV3tC10CDUTvoYtIy326dPMWV4PK COB2EbBEPQToHO7eZFsv6kCaZCsogjzCR7CJNPeIN+3MLH/S6+0nF5Wyj0dwlfVVLiUI DQuUGKlDOQY+f1v3xLi1+SpLr6QI6XxES/oYw0N4kfXUjfx3NBTHRrnF88Vj+/Lusp7B c78N4qArwABI0QWLXD05dbcmlHg+P3y5pRtG3uU2YFYZtJjJV+Ev1ETBOmxv4AgSMy8L 7FQwj93BwYxyhYNwt3rcn2R7voQ82F3trgYqRWhjIRF2Vd+teUvvh1opktETe0hUM6rk 7H3w== X-Gm-Message-State: ALoCoQmTxvueunDSg/DjGmiRTza21YORPUUgA7mlR8TXgut4Xu3TgDPqceXkIRd1rmvgnUj7nakd MIME-Version: 1.0 X-Received: by 10.112.171.167 with SMTP id av7mr70243lbc.97.1402665876146; Fri, 13 Jun 2014 06:24:36 -0700 (PDT) Received: by 10.112.200.138 with HTTP; Fri, 13 Jun 2014 06:24:36 -0700 (PDT) X-Originating-IP: [69.207.162.170] In-Reply-To: References: Date: Fri, 13 Jun 2014 09:24:36 -0400 Message-ID: Subject: Re: Out of Memory Error Apache apollo 1.6 From: Nate Sarr To: users@activemq.apache.org Content-Type: multipart/alternative; boundary=001a11c379a849b71904fbb7995c X-Virus-Checked: Checked by ClamAV on apache.org --001a11c379a849b71904fbb7995c Content-Type: text/plain; charset=UTF-8 I took a thread dump and it looks like there are a huge number of instances of org.apach.activemq.apollo.broker.PeriodStat which is causing the memory leak. We are using JMS to send messages with a reply queue to receive a response. After each response we do close the Session and MessageConsumer. Any ideas what might be causing the issue ? Thanks, -Nate On Wed, Jun 11, 2014 at 9:09 AM, Christian Posta wrote: > Might be better to take a heap dump and let us know. > > > On Wed, Jun 11, 2014 at 6:08 AM, Nate Sarr wrote: > > > Hi > > > > We are using apache apollo 1.6 and every so often we run into an out of > > memory error - the following is the stack trace that was printed to the > > log: > > > > java.lang.OutOfMemoryError: Java heap space > > > > at > > > > > scala.collection.mutable.ResizableArray$class.ensureSize(ResizableArray.scala:99) > > > > at > > scala.collection.mutable.ArrayBuffer.ensureSize(ArrayBuffer.scala:47) > > > > at > > scala.collection.mutable.ArrayBuffer.$plus$plus$eq(ArrayBuffer.scala:98) > > > > at > > scala.collection.mutable.ArrayBuffer.$plus$plus$eq(ArrayBuffer.scala:47) > > > > at > > scala.collection.mutable.BufferLike$class.appendAll(BufferLike.scala:147) > > > > at > > scala.collection.mutable.AbstractBuffer.appendAll(Buffer.scala:48) > > > > at > > scala.collection.mutable.BufferLike$class.append(BufferLike.scala:142) > > > > at > scala.collection.mutable.AbstractBuffer.append(Buffer.scala:48) > > > > at > > > > > scala.collection.convert.Wrappers$MutableBufferWrapper.add(Wrappers.scala:80) > > > > at > > > > > org.apache.activemq.apollo.broker.Broker.roll_current_period(Broker.scala:430) > > > > at > > > > > org.apache.activemq.apollo.broker.Broker$$anonfun$_start$2.apply$mcV$sp(Broker.scala:384) > > > > at > > > > > org.apache.activemq.apollo.util.BaseService$$anonfun$schedule$1$1.apply$mcV$sp(BaseService.scala:171) > > > > at > > org.fusesource.hawtdispatch.package$$anon$4.run(hawtdispatch.scala:357) > > > > at > > > > > org.fusesource.hawtdispatch.internal.SerialDispatchQueue.run(SerialDispatchQueue.java:96) > > > > at > > > > > org.fusesource.hawtdispatch.internal.pool.SimpleThread.run(SimpleThread.java:77) > > > > If anyone has any suggestions or thoughts it would be greatly > appreciated. > > > > Thanks, > > > > -Nate > > > > > > -- > *Christian Posta* > http://www.christianposta.com/blog > twitter: @christianposta > -- *Nathan SarrCo-founder | Kavyar* *585-721-0788 | nate@kavyar.com | http://kavyar.com * --001a11c379a849b71904fbb7995c--