Return-Path: Delivered-To: apmail-geronimo-activemq-users-archive@www.apache.org Received: (qmail 81246 invoked from network); 15 Jun 2006 12:42:09 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 15 Jun 2006 12:42:09 -0000 Received: (qmail 39454 invoked by uid 500); 15 Jun 2006 12:42:08 -0000 Delivered-To: apmail-geronimo-activemq-users-archive@geronimo.apache.org Received: (qmail 39439 invoked by uid 500); 15 Jun 2006 12:42:08 -0000 Mailing-List: contact activemq-users-help@geronimo.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: activemq-users@geronimo.apache.org Delivered-To: mailing list activemq-users@geronimo.apache.org Received: (qmail 39429 invoked by uid 99); 15 Jun 2006 12:42:08 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 15 Jun 2006 05:42:08 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: neutral (asf.osuosl.org: local policy) Received: from [193.96.150.26] (HELO itchy.airbus.de) (193.96.150.26) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 15 Jun 2006 05:41:01 -0700 Received: from de0-mailsp02.res.airbus.corp (unknown [44.159.50.177]) by itchy.airbus.de (Postfix) with ESMTP id DEE2D2404E3 for ; Thu, 15 Jun 2006 14:26:37 +0200 (CEST) Received: from de0-mailsp02.res.airbus.corp (localhost.localdomain [127.0.0.1]) by de0-mailsp02.res.airbus.corp (8.12.11/8.12.10) with ESMTP id k5FCZGQk005515 for ; Thu, 15 Jun 2006 14:35:16 +0200 Received: from de0-mailrt10.res.airbus.corp ([44.159.50.164]) by de0-mailsp02.res.airbus.corp (8.12.11/8.12.10) with ESMTP id k5FCY8Rd003925 for ; Thu, 15 Jun 2006 14:35:11 +0200 Received: from de0-mailrt01.res.airbus.corp ([44.159.50.162]) by de0-mailrt10.res.airbus.corp with Microsoft SMTPSVC(5.0.2195.6713); Thu, 15 Jun 2006 14:33:23 +0200 Received: from de0-mailmb02.res.airbus.corp ([44.159.50.152]) by de0-mailrt01.res.airbus.corp with Microsoft SMTPSVC(5.0.2195.6713); Thu, 15 Jun 2006 14:33:23 +0200 X-MimeOLE: Produced By Microsoft Exchange V6.0.6603.0 content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Subject: AW: limit the number of messages per second Date: Thu, 15 Jun 2006 14:33:23 +0200 Message-ID: <001FD7EB9646934B9237F09DE8E1F07C02F8C146@DE0-MAILMB02.res.airbus.corp> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: limit the number of messages per second Thread-Index: AcaQdsj6wJrytXJUS2CQOf/IzIQ1eAAABIaA From: "Gerdes, Mike" To: X-OriginalArrivalTime: 15 Jun 2006 12:33:23.0407 (UTC) FILETIME=[E46685F0:01C69077] X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N I want this feature to make AMQ a bit more stable, to reduce network= traffic and prevent flooding and to avoid that a software with errors= kills my system. >From what I noticed is that AMQ does have some memory problems and that it= hits under certain circumstances 100 used memory and crashes then. But= thats the smaller reason. The major reason is just for security. In my= testing and application I need to have a system that is more or less= stable and secure. And DoS and flooding of queues seems to me a big= problem. One thing about the memory problem, I have encountered. With more then one= consumer and using queue, AMQ crashes with 100% used memory if I send as= fast as possible. This happens with and without async messages. What I= noticed is that the usageManagers request more and more memory and at some= point don't get it and then block. When a message from a queue is read,= its memory is not freed. With only on consumer this haven'T been the case.= There has the memory be freed. (I put reference counter System.out.println into the usageManger) -----Urspr=FCngliche Nachricht----- Von: James Strachan [mailto:james.strachan@gmail.com] Gesendet: Donnerstag, 15. Juni 2006 14:02 An: activemq-users@geronimo.apache.org Betreff: Re: limit the number of messages per second On 6/15/06, Gerdes, Mike wrote: > > Hi, > > I is it possible in AMQ to set a limit for the max number of messages per= second, from all or one consumer? Not currently no. Just out of interest, whats you use case? You could write a bridge which takes messages off an input queue and then forwards them to an ouput queue but such that it throttles the publisher to only publish a certain number of messages per second to limit the rate at which messages are made available to consumers. --=0D James ------- http://radio.weblogs.com/0112098/ =0D This mail has originated outside your organization, either from an external partner or the Global Internet. Keep this in mind if you answer this message. This mail has originated outside your organization, either from an external= partner or the Global Internet. Keep this in mind if you answer this= message.