From dev-return-11643-apmail-activemq-dev-archive=activemq.apache.org@activemq.apache.org Wed Jul 23 15:53:53 2008 Return-Path: Delivered-To: apmail-activemq-dev-archive@www.apache.org Received: (qmail 62031 invoked from network); 23 Jul 2008 15:53:53 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 23 Jul 2008 15:53:53 -0000 Received: (qmail 59239 invoked by uid 500); 23 Jul 2008 15:53:52 -0000 Delivered-To: apmail-activemq-dev-archive@activemq.apache.org Received: (qmail 59126 invoked by uid 500); 23 Jul 2008 15:53:52 -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 59114 invoked by uid 99); 23 Jul 2008 15:53:52 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 23 Jul 2008 08:53:52 -0700 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 23 Jul 2008 15:53:06 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id A2E0B234C171 for ; Wed, 23 Jul 2008 08:53:01 -0700 (PDT) Message-ID: <2134868997.1216828381650.JavaMail.jira@brutus> Date: Wed, 23 Jul 2008 08:53:01 -0700 (PDT) From: "Alessandro Zanfardino (JIRA)" To: dev@activemq.apache.org Subject: [jira] Created: (AMQ-1868) Producer block when queue memory limit is setted to 5Mb and no consumer is actived MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org Producer block when queue memory limit is setted to 5Mb and no consumer is actived ---------------------------------------------------------------------------------- Key: AMQ-1868 URL: https://issues.apache.org/activemq/browse/AMQ-1868 Project: ActiveMQ Issue Type: Bug Components: Broker Affects Versions: 5.1.0 Environment: Unix, jdk 1.5.0_12, AMQ 5.1.0 Reporter: Alessandro Zanfardino Attachments: activemq.xml, AMQTester.zip Hallo I'm using the attached source code to test AMQ 5.1.0 I'm using following setting: //SESSION ackMode = Session.AUTO_ACKNOWLEDGE; //FACTORY dispatchAsync = true; useAsyncSend = false; //PRODUCERS DelveryMode=Pesrsistent timeToLive = 21600000; //6h If I use the following configuration in activemq.xml: I noted this behaviour: if producer starts a loop of sendMessage on a queue where no consumer is listen, after N messages, when the 5Mb are full, producer is blocked. Block ends when some consumer registers a listener on this queue and start to conuming messages. If I change the configuration, removing queue memory limit like below: and producer starts a loop of sendMessage on a queue where no consumer is listen, producer is NEVER blocked. Memory usage percentage go up until 90% and then remains steady, but producer continues to send. I expected this same behaviour when queue memory limit was 5Mb, also. Further, I set values for queue memory limit higher than 5Mb and repeated the test : memoryLimit="10 mb" => producer was blocked memoryLimit="18 mb" (=90% of 20Mb) => producer was blocked memoryLimit="19 mb" ( >90% of 20Mb) => producer NEVER blocked I expected that producer NEVER blocked in every cases. Please can you help me for this issue? Feel free to ask me other details. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.