Return-Path: Delivered-To: apmail-activemq-dev-archive@www.apache.org Received: (qmail 24297 invoked from network); 3 Sep 2008 17:18:28 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 3 Sep 2008 17:18:28 -0000 Received: (qmail 10573 invoked by uid 500); 3 Sep 2008 17:18:26 -0000 Delivered-To: apmail-activemq-dev-archive@activemq.apache.org Received: (qmail 10387 invoked by uid 500); 3 Sep 2008 17:18:25 -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 10376 invoked by uid 99); 3 Sep 2008 17:18:25 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 03 Sep 2008 10:18:25 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of bruce.snyder@gmail.com designates 209.85.132.250 as permitted sender) Received: from [209.85.132.250] (HELO an-out-0708.google.com) (209.85.132.250) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 03 Sep 2008 17:17:25 +0000 Received: by an-out-0708.google.com with SMTP id c28so480553ana.65 for ; Wed, 03 Sep 2008 10:17:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:in-reply-to:mime-version:content-type :content-transfer-encoding:content-disposition:references; bh=PuDVbMPmP6cd0rG6WO7/IpUlKJoik1dyj3UPJUq526A=; b=npsb3EnyaFUq8M4z5UNA5aCkyUNNZuESBNzKgCjQMFowFgrjX7r+yrl6Ym0Mb7Kuxs kKoobZ/0XKSOQ2OjUVppjnSIVD72J389QpUAvz9PrSTV5WrJlxzzvaR9K0B56niUJX1Y OgAny/JflbQuVcVwwcmUUVp8mE5Ua0R2uGvQw= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :references; b=ZfAdTS/HqTgEYWMGFWloeHljTzrdJqw9EkMljFuzxr7pE6egnRirvArB2IaTQBdHIa ptmrRvSpajANXY+EcXOwVIs19Yhx2KwsQIB7hTmaWb2JtNJ/gyQAZXfaoj3+7zJLlzih wQ80qBP8XqoM2dyQvO10HyzrTZtAtfpVFEQ1o= Received: by 10.100.248.14 with SMTP id v14mr9338016anh.147.1220462275364; Wed, 03 Sep 2008 10:17:55 -0700 (PDT) Received: by 10.100.44.19 with HTTP; Wed, 3 Sep 2008 10:17:55 -0700 (PDT) Message-ID: <7b3355cb0809031017i71033dxbea114df21dd9383@mail.gmail.com> Date: Wed, 3 Sep 2008 11:17:55 -0600 From: "Bruce Snyder" To: dev@activemq.apache.org Subject: Re: How to intercept the creation of ActiveMQConnections? In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <7b3355cb0808200933o1ae8696cy39442fa5d9d974@mail.gmail.com> <7b3355cb0809021455r7ba29e59sec4d66a7d7655851@mail.gmail.com> <3a73c17c0809030138k5042f024yc4d9d692a76d9aff@mail.gmail.com> <3a73c17c0809030851pab229f8g4736d641b214f6d@mail.gmail.com> <3a73c17c0809030946s2249bf9aie412d2a66b17c3f7@mail.gmail.com> X-Virus-Checked: Checked by ClamAV on apache.org On Wed, Sep 3, 2008 at 10:54 AM, James Strachan wrote: > 2008/9/3 Gary Tully : >>> Though number of connections in no way reflects the cpu usage of a >>> broker; >>> >> what are you thinking here? > > You could have 1000 connections doing very little, waiting for > messages - but another broker could have one connection sending 5000 > messages/second. > > A single connection can use up the entire CPU on a broker; so am not > sure there's much merrit on associating connection count to cpu usage. > Though having a maximum allowed connection count is fine though Yes, and that was my original intent - associating connections a static limit and with a percentage of the broker's memory usage. As this discussion about CPU usage unfolded, I thought I must have completely overlooked a thread in the connection or something. Bruce -- perl -e 'print unpack("u30","D0G)U8V4\@4VYY9&5R\"F)R=6-E+G-N>61E