Return-Path: X-Original-To: apmail-activemq-users-archive@www.apache.org Delivered-To: apmail-activemq-users-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id E9C3296A5 for ; Mon, 13 Feb 2012 13:38:10 +0000 (UTC) Received: (qmail 57079 invoked by uid 500); 13 Feb 2012 13:38:10 -0000 Delivered-To: apmail-activemq-users-archive@activemq.apache.org Received: (qmail 56988 invoked by uid 500); 13 Feb 2012 13:38:09 -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 56980 invoked by uid 99); 13 Feb 2012 13:38:09 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 13 Feb 2012 13:38:09 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of herve.barrault@gmail.com designates 209.85.213.171 as permitted sender) Received: from [209.85.213.171] (HELO mail-yx0-f171.google.com) (209.85.213.171) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 13 Feb 2012 13:38:03 +0000 Received: by yenm7 with SMTP id m7so2565105yen.2 for ; Mon, 13 Feb 2012 05:37:42 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; bh=SLiApZ3QuqH7o2YGkMLZun7+fGEH7HyhY3TJfzHKfTo=; b=voaXMHRx0lHNExTyUYi3zB5memiTtnK15nZru4lGNl3fRceOpfT7DHqrehp7LwaZCx Nrmp9xHhwpqwm0gxvcaUGlIX6cxyj1ADscMGVc84h35nTsyXXQa18MaOfdn+hQCdNJS1 VnpQXsEnK5vVo1eyq6zKpAFslo8VDhasROdmU= MIME-Version: 1.0 Received: by 10.236.123.47 with SMTP id u35mr19638105yhh.115.1329140262497; Mon, 13 Feb 2012 05:37:42 -0800 (PST) Received: by 10.236.175.193 with HTTP; Mon, 13 Feb 2012 05:37:42 -0800 (PST) Date: Mon, 13 Feb 2012 14:37:42 +0100 Message-ID: Subject: Producer flow control From: =?ISO-8859-1?Q?Herv=E9_BARRAULT?= To: users Content-Type: multipart/alternative; boundary=20cf301b685f33eec804b8d8954c --20cf301b685f33eec804b8d8954c Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Hi, i have looked to the documentation of the producer flow control functionality (http://activemq.apache.org/producer-flow-control.html). I see that it is based on the storage size but in my case, i think not being able to use the size. I have a queue where i put messages two kind of messages : Big 10MB and Small 1kB. As Big messages are rare (compared to small ones), i would limit the Memory to 100MB (10 messages). But for small messages i would limit the number of small messages to 5000 (so about 5MB) . We have noted that with JDBC persistence, the number of pending messages in the broker (not by queue) is important for "performances". As i would keep the order of Big and Small messages, i put them in the same queue. Is there a way to define a strategy for the flow control which is 100MB and 5k messages ? Regards Herv=E9 --20cf301b685f33eec804b8d8954c--