Return-Path: X-Original-To: apmail-activemq-users-archive@www.apache.org Delivered-To: apmail-activemq-users-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 13F3B4863 for ; Mon, 27 Jun 2011 11:29:24 +0000 (UTC) Received: (qmail 75951 invoked by uid 500); 27 Jun 2011 11:29:23 -0000 Delivered-To: apmail-activemq-users-archive@activemq.apache.org Received: (qmail 75761 invoked by uid 500); 27 Jun 2011 11:29:22 -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 75751 invoked by uid 99); 27 Jun 2011 11:29:21 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 27 Jun 2011 11:29:21 +0000 X-ASF-Spam-Status: No, hits=2.0 required=5.0 tests=SPF_NEUTRAL,URI_HEX X-Spam-Check-By: apache.org Received-SPF: neutral (athena.apache.org: local policy) Received: from [216.139.236.26] (HELO sam.nabble.com) (216.139.236.26) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 27 Jun 2011 11:29:17 +0000 Received: from joe.nabble.com ([192.168.236.139]) by sam.nabble.com with esmtp (Exim 4.72) (envelope-from ) id 1Qb9zs-0007Pi-JK for users@activemq.apache.org; Mon, 27 Jun 2011 04:28:56 -0700 Date: Mon, 27 Jun 2011 04:28:56 -0700 (PDT) From: apuschmann To: users@activemq.apache.org Message-ID: <1309174136589-3627493.post@n4.nabble.com> Subject: Activemq vs. Rabbitmq, performance Peaks MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Hello, I have done some performance testing between activme and rabbitmq. First of all, I use ActiveMQ 5.4.0 on a Dual Core 1,8 and 2GB using kahadb, and a default configuration. I tested how fast activemq and rabbitmq can write and read messages from a persistence queue with a message size of ca. 1KB. Both tests were under the same situation. On Activemq i found out that after every third meter record there is a high processing time, some times it is very high. This behaviour occurs both sending and consuming. Without this peaks activemq were much faster than rabbitmq in my case. Ok my testcase, i sended 3000 messages and measured the time for sending these 3000 messages. The messages were always the same. Looking at this picture. http://img101.imageshack.us/img101/6826/sender.png Can somebody can tell me why these peaks occurs or what i can do against it? Thanks. Here my testing code: public void run() throws JMSException { String brokerURL = "tcp://localhost:61616?jms.useAsyncSend=true"; ConnectionFactory factory = new ActiveMQConnectionFactory(brokerURL); connection = factory.createConnection(); connection.start(); session = connection.createSession(false, Session.AUTO_ACKNOWLEDGE); Destination destination = session.createQueue(queueName); producer = session.createProducer(destination); producer.setDeliveryMode(DeliveryMode.PERSISTENT); int i=0, j=0; long start = System.currentTimeMillis(); while(true) { Message message = session.createTextMessage(Producer.message); producer.send(message); i++; j++; if(i == 3000) { System.out.println("The last 3000 Messages needed " + (System.currentTimeMillis() - start)); start = System.currentTimeMillis(); i=0; if(j==300000) { break; } } } } -- View this message in context: http://activemq.2283324.n4.nabble.com/Activemq-vs-Rabbitmq-performance-Peaks-tp3627493p3627493.html Sent from the ActiveMQ - User mailing list archive at Nabble.com.