Return-Path: Delivered-To: apmail-activemq-dev-archive@www.apache.org Received: (qmail 43043 invoked from network); 26 Oct 2007 19:12:16 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 26 Oct 2007 19:12:16 -0000 Received: (qmail 72991 invoked by uid 500); 26 Oct 2007 19:02:36 -0000 Delivered-To: apmail-activemq-dev-archive@activemq.apache.org Received: (qmail 72968 invoked by uid 500); 26 Oct 2007 19:02:36 -0000 Mailing-List: contact dev-help@activemq.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@activemq.apache.org Delivered-To: mailing list dev@activemq.apache.org Received: (qmail 72957 invoked by uid 99); 26 Oct 2007 19:02:36 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 26 Oct 2007 12:02:36 -0700 X-ASF-Spam-Status: No, hits=-100.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO brutus.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 26 Oct 2007 19:02:49 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id C225D71424F for ; Fri, 26 Oct 2007 12:02:25 -0700 (PDT) Message-ID: <11846095.1193425345790.JavaMail.jira@brutus> Date: Fri, 26 Oct 2007 12:02:25 -0700 (PDT) From: "Timothy Bish (JIRA)" To: dev@activemq.apache.org Subject: [jira] Assigned: (AMQCPP-150) ActiveMQ-CPP consumer client hanging after receiving 32767 messages. In-Reply-To: <7441570.1193313744118.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/activemq/browse/AMQCPP-150?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Timothy Bish reassigned AMQCPP-150: ----------------------------------- Assignee: Timothy Bish (was: Nathan Mittler) > ActiveMQ-CPP consumer client hanging after receiving 32767 messages. > -------------------------------------------------------------------- > > Key: AMQCPP-150 > URL: https://issues.apache.org/activemq/browse/AMQCPP-150 > Project: ActiveMQ C++ Client > Issue Type: Bug > Affects Versions: 2.1 > Environment: Ubuntu 6.10 > Reporter: Omar Bashir > Assignee: Timothy Bish > Attachments: CppQueueReceiver.cpp, CppQueueTransmitterOrig.cpp > > > I was stress-testing an ActiveMQ-CPP consumer client by transmitting to it a large burst of messages (100 per second). I realised that the client hangs after receiving 32767 messages and the broker has a log message > INFO PrefetchSubscription - Could not correlate acknowledgment with dispatched message: MessageAck ... > I changed the size of the message from 40 bytes to over 600 bytes but it still behaved the same way. Behaviour remained the same when I reduced message frequency to one per second. I am using ActiveMQ-CPP-2.1 and ActiveMQ broker 4.1.1. > I replaced the C++ consumer with the Java consumer and the problem disappeared. Then I ran both the Java and C++ consumers concurrently both listening to the same queue, the C++ client froze after 16 messages whereas the Java client continued to receive and process messages. > Now, I have the C++ producer client that disconnects after sending 32000 messages, reconnects and then starts transmitting again. The problem disappears with this configuration. Both Java and C++ clients have now received in excess of 230k messages and are still running perfectly well. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.