Return-Path: Delivered-To: apmail-geronimo-activemq-users-archive@www.apache.org Received: (qmail 49744 invoked from network); 31 May 2006 10:07:06 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 31 May 2006 10:07:06 -0000 Received: (qmail 73949 invoked by uid 500); 31 May 2006 10:07:05 -0000 Delivered-To: apmail-geronimo-activemq-users-archive@geronimo.apache.org Received: (qmail 73925 invoked by uid 500); 31 May 2006 10:07:05 -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 73916 invoked by uid 99); 31 May 2006 10:07:04 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 31 May 2006 03:07:04 -0700 X-ASF-Spam-Status: No, hits=2.0 required=10.0 tests=RCVD_IN_BL_SPAMCOP_NET,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: domain of james.strachan@gmail.com designates 64.233.182.191 as permitted sender) Received: from [64.233.182.191] (HELO nf-out-0910.google.com) (64.233.182.191) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 31 May 2006 03:07:04 -0700 Received: by nf-out-0910.google.com with SMTP id l36so163508nfa for ; Wed, 31 May 2006 03:06:42 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=kwrojStTZhFri5iJm85NNXMC2nLR3ssU99CHM3vQbuCd/y3UWnXNDEymLCmY91xAwIOxc6pdNOu0HBTFm3DHW4UWXrdItmzLgGapzRxiABJ6RUimq0T2y2lI6OOyIJb808cmwYJtqouus/LsTO4TTL6wdej2i18AoPWMeHVx9sQ= Received: by 10.49.5.15 with SMTP id h15mr13380nfi; Wed, 31 May 2006 03:06:42 -0700 (PDT) Received: by 10.66.255.17 with HTTP; Wed, 31 May 2006 03:06:42 -0700 (PDT) Message-ID: Date: Wed, 31 May 2006 11:06:42 +0100 From: "James Strachan" To: activemq-users@geronimo.apache.org Subject: Re: neural net using topics? In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <4634774.post@talk.nabble.com> X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Also what kinds of messages are you sending? If you are using ObjectMessage and vm transport you can disable serialisation which adds some CPU overhead. e.g. see the properties on the ActiveMQConnection object... http://incubator.apache.org/activemq/maven/activemq-core/apidocs/org/apache/activemq/ActiveMQConnection.html you can enable flags like optimizedMessageDispatch, useAsyncSend, asyncDispatch, objectMessageSerializeDefered which all tend to increase throughput also if you know you are not going to reuse the Message object after sending then disable copyMessageOnSend James On 5/31/06, Hiram Chirino wrote: > On 5/30/06, jordan woerndle wrote: > > > > I'd like to start out by pleading JMS ignorance and apologizing for my > > generic question... I'm really just looking for some suggestions on how I > > can get better performance out of a wacky activeMQ app. > > > > I have a bunch of "Filters" that listen for and broadcast messages on many > > Topics. I want each filter to be able to listen to many topics, and > > periodically fire a message off onto one-to-many topics. It kind of looks > > like a network of neurons passing messages around and making decisions > > (think distributed bayesian filter.) > > > > Currently, each of my filters subscribes to one topic. Each will > > periodically publish a message to one other topic and send a "status" > > messsage to a "status" topic. I can run about 30 "Filters" (they are doing > > no processing) with about 30 topics.. i can push about 90 messages a second. > > I'd like to do a lot more and listen,broadcast to more topics. > > So is that 90 mess/sec * 30 filters = 2700 msg/sec total? With topics > we typically see performance in the order of 1000's of messages/sec. > Are you CPU constrained or IO? > > > > > I am running activeMQ 4.0 M4 using non-persistent messaging, windows XP, > > jdk1.5.0 on one machine using one broker started from the command line using > > the default out-of-the-box configuraiton. Everything I know i learned from > > the examples on the site. If it helps, I don't really care if I drop a few > > messages. > > > > I would upgrade to the listed at latest > http://incubator.apache.org/activemq/download.html > > > What's the first step to increase throughput? Should I put the broker on a > > different machine? Should I try to split my topics up between several > > brokers? > > > > Splitting the topics sometimes helps.. You can also decrease CPU usage > by avoiding marshalling by using the vm:// transport. > > > Thanks a lot! > > Jordan > > -- > > View this message in context: http://www.nabble.com/neural+net+using+topics--t1707208.html#a4634774 > > Sent from the ActiveMQ - User forum at Nabble.com. > > > > > > > -- > Regards, > Hiram > -- James ------- http://radio.weblogs.com/0112098/