Return-Path: Delivered-To: apmail-activemq-users-archive@www.apache.org Received: (qmail 59098 invoked from network); 29 Feb 2008 22:09:04 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 29 Feb 2008 22:09:04 -0000 Received: (qmail 42110 invoked by uid 500); 29 Feb 2008 22:08:58 -0000 Delivered-To: apmail-activemq-users-archive@activemq.apache.org Received: (qmail 42089 invoked by uid 500); 29 Feb 2008 22:08:58 -0000 Mailing-List: contact users-help@activemq.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@activemq.apache.org Delivered-To: mailing list users@activemq.apache.org Received: (qmail 42080 invoked by uid 99); 29 Feb 2008 22:08:58 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 29 Feb 2008 14:08:58 -0800 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: local policy) Received: from [213.9.58.226] (HELO relay.itemis.de) (213.9.58.226) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 29 Feb 2008 22:08:12 +0000 Received: from localhost (localhost [127.0.0.1]) by relay.itemis.de (Postfix) with ESMTP id 00DB31060063 for ; Fri, 29 Feb 2008 23:08:33 +0100 (CET) X-Virus-Scanned: amavisd-new at X-Spam-Score: -2.452 X-Spam-Level: Received: from relay.itemis.de ([127.0.0.1]) by localhost (relay.itemis.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id LjGUQrYodBlE for ; Fri, 29 Feb 2008 23:08:26 +0100 (CET) Received: from [172.16.0.26] (uplink.itemis.info [80.152.197.97]) by relay.itemis.de (Postfix) with ESMTP id 5DAC71060060 for ; Fri, 29 Feb 2008 23:08:26 +0100 (CET) Message-ID: <47C88259.9070908@itemis.de> Date: Fri, 29 Feb 2008 23:08:25 +0100 From: Wladimir Safonov User-Agent: Thunderbird 2.0.0.9 (Windows/20071031) MIME-Version: 1.0 To: users@activemq.apache.org Subject: Producer locks while awaiting broker response Content-Type: text/plain; charset=ISO-8859-15; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org X-Old-Spam-Flag: NO X-Old-Spam-Status: No, score=-2.452 tagged_above=-10 required=6.6 tests=[AWL=0.147, BAYES_00=-2.599] Hello, 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) java.util.concurrent.locks.LockSupport.park(LockSupport.java:118) java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.await(AbstractQueuedSynchronizer.java:1841) java.util.concurrent.ArrayBlockingQueue.take(ArrayBlockingQueue.java:341) org.apache.activemq.transport.FutureResponse.getResult(FutureResponse.java:40) org.apache.activemq.transport.ResponseCorrelator.request(ResponseCorrelator.java:76) org.apache.activemq.ActiveMQConnection.syncSendPacket(ActiveMQConnection.java:1172) org.apache.activemq.ActiveMQSession.send(ActiveMQSession.java:1640) org.apache.activemq.ActiveMQMessageProducer.send(ActiveMQMessageProducer.java:226) org.apache.activemq.ActiveMQMessageProducerSupport.send(ActiveMQMessageProducerSupport.java:240) 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: http://activemq.apache.org/my-producer-blocks.html. 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, Wladimir