Return-Path: Delivered-To: apmail-activemq-users-archive@www.apache.org Received: (qmail 80569 invoked from network); 23 May 2009 19:54:50 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 23 May 2009 19:54:50 -0000 Received: (qmail 96507 invoked by uid 500); 23 May 2009 19:55:02 -0000 Delivered-To: apmail-activemq-users-archive@activemq.apache.org Received: (qmail 96432 invoked by uid 500); 23 May 2009 19:55:01 -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 96422 invoked by uid 99); 23 May 2009 19:55:01 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 23 May 2009 19:55:01 +0000 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 [206.190.39.107] (HELO web50812.mail.re2.yahoo.com) (206.190.39.107) by apache.org (qpsmtpd/0.29) with SMTP; Sat, 23 May 2009 19:54:50 +0000 Received: (qmail 50766 invoked by uid 60001); 23 May 2009 19:54:28 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=rocketmail.com; s=s1024; t=1243108468; bh=9PtDL6iAlIvZPEEuiArqbZUVjOgWOk2MA/M7nscaFp0=; h=Message-ID:X-YMail-OSG:Received:X-Mailer:References:Date:From:Subject:To:In-Reply-To:MIME-Version:Content-Type; b=fqJPCM5kj1hv7/hmupHpzJHSU0rRGmVdVnp+UzNdChwCelQDJRy+kB0rylxAUXR0Y+DU3oaNv0xxX4cqEE0dwv9qtU7kdt8aE7B4J2YLXdCDLc64jiRQQkaRmMczlGi0zN4ijCzqWXuBeVzS50cCvuWKVloJ93wM+BgciYdNrpA= DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=rocketmail.com; h=Message-ID:X-YMail-OSG:Received:X-Mailer:References:Date:From:Subject:To:In-Reply-To:MIME-Version:Content-Type; b=R5J1I3xdTgXhnmE9pP+e19zfX/z4TCml0rDXsNz6ytuC2uwQOUNPzvN97rkD9djIKlrx3BwEyKf+DQBOHsz7GmEK6xOpq54Ap2rqm7Vp3+gSwVnIRaxodi+VIMtsyTq3DyFZrdgKGpGJrJ4GcmT4PoM6+u/vbu8+c4nAu8H+txc=; Message-ID: <753937.50043.qm@web50812.mail.re2.yahoo.com> X-YMail-OSG: r5so6H0VM1nojDaWypgdwW3tHoRwJtEXql0T_XSU808724DD5.INC_KeFHTSn1RyB7ZFCjQvEPJ7DqTHfFknfOj_mPGMRTbnyzBOaVnI.h.6cdYxyfn7bEvRAHBJarPwZMGPg_8AvMKAO9xW09_XwSSb.rw03pWLFMGjghHbye00fathQyzSyNQo9VVNIiww.ByInI8IAOr1XAEUtZDPWbCoptqoMPuy_WBfXqXZhg0e0Mptg72ffIK1lTp5TGZV7WrMJqP2Hixmav5eBSLWq1z38NjFAmIGhIl7zp4xGd779zyrA74- Received: from [98.180.25.228] by web50812.mail.re2.yahoo.com via HTTP; Sat, 23 May 2009 12:54:28 PDT X-Mailer: YahooMailRC/1277.43 YahooMailWebService/0.7.289.10 References: <911381.8914.qm@web50804.mail.re2.yahoo.com> <23682395.post@talk.nabble.com> Date: Sat, 23 May 2009 12:54:28 -0700 (PDT) From: Jose Luna Subject: Re: Large number of queues (HowTo) To: users@activemq.apache.org In-Reply-To: <23682395.post@talk.nabble.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Virus-Checked: Checked by ClamAV on apache.org > Any chance we can get a hold of your test code. We use stomp, so our tests are very short python scripts using stomp.py: http://www.briggs.net.nz/log/projects/stomppy/ They are simple scripts that create thousands of queues from a single connection, send messages to those queues, and also send messages to composite queues representing large numbers of actual queues. > 2. I see that most most posts about working setups are NOT Centos, in fact I > have seen two posts that use Ubuntu successfully. Am I to change my linux > distro? I am not aware of any problems with CentOS5 and ActiveMQ (although I am certainly no expert with ActiveMQ). Our production machine is RHEL5. We test on Ubuntu for convenience, but we also test on a dev server running CentOS5 to emulate the production environment. We've encountered no problems on CentOS5 or RHEL5. > 3. How many is "many" connections or machines that connect to the server? At > more than fifty we see issues. We have not done any tests with a significantly large number of connections, I only included that information in the HowTo because I encountered it in my research and it is relevant to the resource usage discussed. > 4. How would having a total of 256k ram effect this? I can't really attest to the consequences of 256 MB of ram. The memory usage will vary widely depending on the use case. If this is what you have available on the heap, it should be entirely sufficient for thousands of queues (if you follow the instructions to limit the number of threads). ActiveMQ is pretty memory intensive, but there are lot of ways to tune it. I think the best thing to do is run some tests that follow your particular use case. If you find that you have memory-related issues, read the doc on memory usage I linked to in my original post. Also, you should really read through all of the relevant elements and properties in the activemq config schema (http://activemq.apache.org/xml-reference.html). A couple of examples off the top of my head (that may not be relevant to you): - You can set how many messages are pulled from persistent storage and put into memory at a time, when a queue is being read. - If you're using composite queues, you can choose whether a copy of the message is made when forwarding the message.