activemq-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Hadrian Zbarcea (JIRA)" <j...@apache.org>
Subject [jira] Updated: (AMQ-2056) Jencks container sometimes hangs when maxMessagesPerSessions is < maxSessions
Date Tue, 10 Aug 2010 13:27:18 GMT

     [ https://issues.apache.org/activemq/browse/AMQ-2056?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Hadrian Zbarcea updated AMQ-2056:
---------------------------------

    Fix Version/s: 5.4.1
                       (was: 5.4.0)

> Jencks container sometimes hangs when maxMessagesPerSessions is < maxSessions
> -----------------------------------------------------------------------------
>
>                 Key: AMQ-2056
>                 URL: https://issues.apache.org/activemq/browse/AMQ-2056
>             Project: ActiveMQ
>          Issue Type: Bug
>          Components: JCA Container
>         Environment: Mac OX/X
>            Reporter: Adrian Trenaman
>             Fix For: 5.4.1
>
>         Attachments: jencks-blocking-consumers.tar
>
>
> I've found that if I configure Jencks with a low maxMessagesPerSessions (e.g. 3) and
a higher maxSessions (e.g. 8) then my consumers hang after about 30 messages and no more messages
get consumed.
> Any idea why this might be? I find that if I make the maxMessagesPerSessions (which AFAIK
matches the queue prefetch value) higher then it seems to work. I'm happy to do this, but
I'm puzzled as to why this occurs.
> Any help gratefully accepted - sample Spring config below. Also, I've attached sample
code to this issue. Run the RequestHandler server from within Eclipse against a standalone
broker, and then just use the ActiveMQ Web Console to sent 1000 messages to the queue RA.request
> /Ade
>     <bean id="listenerJcaConnector" class="org.jencks.JCAConnector">
>         <property name="jcaContainer" ref="jencksContainer"/>
>         <property name="transactionManager" ref="transactionManager"/>
>         <property name="activationSpec">
>                     <bean class="org.apache.activemq.ra.ActiveMQActivationSpec">
>                                 <property name="destination" value="RA.REQUEST"/>
>                                 <property name="destinationType" value="javax.jms.Queue"/>
>   <property name="maxSessions" value="8"/>
>                                 <property name="maxMessagesPerSessions" value="3"/>
<!-- effectively, this just matches the prefetch size -->
>                     </bean>
>         </property>
>         <property name="ref" value="messageListener"/>
>     </bean> 

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message