activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Wladimir Safonov <>
Subject Producer locks while awaiting broker response
Date Fri, 29 Feb 2008 22:08:25 GMT

as I found in the older mailings some people experienced the same 
problem as I do in the moment. Seems like problem persisted already in 
the earlier versions of the broker (< 4.0), but no solution approach was 
found so far. So in my situation, I have a couple of topics, some of 
which stay under relatively high message load (>10 messages pro sec) 
from the system start. After 1-2 hours a random producer hangs up with 
the following stack trace:

sun.misc.Unsafe.park(Native Method)

This can also happen to several producers at the same time. As I read in 
the preceding posts, such behavior is possible if the consumer fails. As 
I use failover, I can't say for sure if the consumer failed just before 
the problem occurred. Anyway after the consumer has recovered, the 
publisher should definitely receive some response, which does not 
happen. Generally speaking, such broker strategy is kind of odd, because 
possible listener crash & recover situations should not influence the 
work of the producers - they should be really decoupled.

I checked already this page: But in my case the 
problem also occurs on the empty topics which process a couple of 
messages pro minute, whose consumer also fails now and then. So current 
topic usage cannot be the reason for this behavior.
I'm currently using AMQ 5.0, but I had the same problem with AMQ 4.1.1.

Does anybody know how such broker behavior can be influenced or if not, 
will there be any fixes regarding this bug in the future releases?
Appreciate any help!

Thanks a lot in advance!

Best regards,

View raw message