activemq-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Andreas Gies (JIRA)" <>
Subject [jira] [Created] (AMQ-5380) Prefetch size for reconnecting Durable Subscribers
Date Thu, 02 Oct 2014 10:11:34 GMT
Andreas Gies created AMQ-5380:

             Summary: Prefetch size for reconnecting Durable Subscribers
                 Key: AMQ-5380
             Project: ActiveMQ
          Issue Type: Bug
    Affects Versions: 5.10.0
         Environment: All
            Reporter: Andreas Gies
            Priority: Minor

I am using Active MQ 5.10 within a Karaf based application and have spent the last couple
of days investigating an OOM Exception we were getting occasionally.

It turned out, that the OOM happens occasionallly when we reconnect a durable subscriber that
would have a large amount of data in it even though we have specified a rather small prefetch
size for durable subscribers (5) within the broker configuration.

Further analysis showed that after closing and reconnecting the same subscriber it has a prefetch
size of 1000 (the default value). That would cause an OOM if those 1000 messages exceed the
JVM heap size.

Specifying the prefetch size within the broker url from the client side works fine, but we
would like to keep the setiing on the broker side as not all clients are our development responsibility.

This message was sent by Atlassian JIRA

View raw message