activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sbarlabanov <>
Subject Re: RedeliveryPlugin causes a deadlock with JobSchedulerImpl in ActiveMQ 5.7.0
Date Thu, 08 Nov 2012 16:21:35 GMT
Actually, the DLQ is disabled for expired messages using
individualDeadLetterStrategy. See below for our broker configuration.
Expired messages does not occur in the DLQ. So may be they are removed after
they are dispatched to DLQ. I do not know the code of ActiveMQ that good and
do not know where the DLQ plugin is called - before or after dispatching :(.
Does the deadlock problem has something to do with expired messages? I think
the code works the same way for all messages. So the deadlock problem may
occur also for normal redeliveries. It seems that RedeliveryPlugin and
JobSchedulerImpl may block each other under certain circumstances. I see no
point in code where the measures are taken to avoid that blocking. For me it
smells like a bug: RedeliveryPlugin blocks on JobSchedulerImpl call, which
is blocked on the queue send call, which is in turn blocked by


    <broker xmlns=""
brokerName="dcdng" useJmx="true" useShutdownHook="false"

            <managementContext createConnector="false"/>

            <kahaDB directory="${}"

            <transportConnector uri="${activemq.connector.address}"/>

                    <policyEntry queue=">" producerFlowControl="true">
                            <individualDeadLetterStrategy queuePrefix="DLQ."
useQueueForQueueMessages="true" processExpired="false" enableAudit="false"/>

            <redeliveryPlugin fallbackToDeadLetter="true"
                            <redeliveryPolicy queue="EventQueue"
                            <redeliveryPolicy maximumRedeliveries="3"

            <systemUsage sendFailIfNoSpace="true">
                    <memoryUsage limit="200 mb"/>
                    <storeUsage limit="1000 mb"/>
                    <tempUsage limit="200 mb"/>

View this message in context:
Sent from the ActiveMQ - User mailing list archive at

View raw message