Return-Path: Delivered-To: apmail-activemq-users-archive@www.apache.org Received: (qmail 36116 invoked from network); 19 Feb 2008 20:37:03 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 19 Feb 2008 20:37:03 -0000 Received: (qmail 89285 invoked by uid 500); 19 Feb 2008 20:36:57 -0000 Delivered-To: apmail-activemq-users-archive@activemq.apache.org Received: (qmail 89260 invoked by uid 500); 19 Feb 2008 20:36:57 -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 89251 invoked by uid 99); 19 Feb 2008 20:36:57 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 19 Feb 2008 12:36:57 -0800 X-ASF-Spam-Status: No, hits=1.2 required=10.0 tests=SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (athena.apache.org: local policy) Received: from [64.233.182.189] (HELO nf-out-0910.google.com) (64.233.182.189) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 19 Feb 2008 20:36:25 +0000 Received: by nf-out-0910.google.com with SMTP id b21so734379nfd.16 for ; Tue, 19 Feb 2008 12:36:31 -0800 (PST) Received: by 10.78.149.15 with SMTP id w15mr12186226hud.60.1203453390830; Tue, 19 Feb 2008 12:36:30 -0800 (PST) Received: by 10.78.168.13 with HTTP; Tue, 19 Feb 2008 12:36:30 -0800 (PST) Message-ID: <28c3c9290802191236x2ef82b86tce2d115d3db93e67@mail.gmail.com> Date: Tue, 19 Feb 2008 21:36:30 +0100 From: "Mario Siegenthaler" To: users@activemq.apache.org Subject: Re: Thread pooling in ActiveMQ 5 cms In-Reply-To: <47BB3B26.4050507@vigilos.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <47BB3B26.4050507@vigilos.com> X-Virus-Checked: Checked by ClamAV on apache.org I don't know if it applies to your problem but you could setup a Camel routing on the broker so that the 10'000 queues are forwarded into a few, so that each client would only have to listen to 10 or so queues (like one per broker). Mario On 2/19/08, Ben Chobot wrote: > Hey everybody. I'm playing around with the CMS client for ActiveMQ 5, > and I'm having some threading issues. It seems that every time I start a > session, I get a new thread to handle that session. Clearly, this won't > scale to lots of sessions, and in fact my OS won't let me create more > than 300 threads. I'm wondering if there's any way to get around this? > Can a single session asynchronously listen to more than one destination? > Even better, it looks like the CMS client has code for thread pools in > it, but C++ isn't my strong suite and it's not clear to me how I would > use it.... > > Any suggestions? > > > (As an aside, we're trying to figure out how reasonable it will be to > have a single client listen to 10,000 mostly-inactive queues, probably > mostly on separate brokers. Is that just flat-out not going to happen?) >