geronimo-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Manu George" <>
Subject Re: Relation between MDB's instances, instanceLimit and threads
Date Thu, 13 Mar 2008 10:18:02 GMT
Hi Beniamin,
                    The JIRA explains what changes need to be made to
AMQ code. You can try checking out AMQ 4.1.1. from the AMQ site
( and
making the change as mentioned in the JIRA. The change is in the
method getServerSession of the class
org.apache.activemq.ra.ServerSessionPoolImpl. The line number is 120.
You just need to change the if condition from if (idleSessions.size()
== 0) to if (activeSessions.size() == 0). I have tried this out and
for me it even solves the problem that we need to give
maxMessagesPerSession == maxSessions. I tested with maxSessions =10
and maxMessagesPerSession = 100 and it was able to process 4000
messages (4 requests of 1000 each) without any being left in the
queue. I know that there are many other combinations I have not tried
yet and I cannot vouch that they will work but if still you get the
problem after applying this patch we will know that there is some
other problem also.


On Thu, Mar 13, 2008 at 4:51 AM, Tomasz Mazan <> wrote:
> David Jencks pisze:
> > Does fixing the activeMQ bug
>  > help with any of
>  > these problems?  I would find it very difficult to analyze other
>  > failures until this is fixed.
>  >
>  > thanks
>  > david jencks
>  I hope it will do, but now - as I understand - I can only wait for this
>  patch included in next Geronimo release. What is expected date of this
>  ActiveMQ patch ?
>  Beniamin

View raw message