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.po...@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 <n...@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 | n...@kavyar.com <n...@kavyar.com> | http://kavyar.com
<http://kavyar.com>*

Reply via email to