activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Nate Sarr <n...@kavyar.com>
Subject Re: Out of Memory Error Apache apollo 1.6
Date Fri, 13 Jun 2014 13:24:36 GMT
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 <christian.posta@gmail.com>
wrote:

> Might be better to take a heap dump and let us know.
>
>
> On Wed, Jun 11, 2014 at 6:08 AM, Nate Sarr <nate@kavyar.com> 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 <nate@kavyar.com> | http://kavyar.com
<http://kavyar.com>*

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message