Return-Path: Delivered-To: apmail-geronimo-activemq-users-archive@www.apache.org Received: (qmail 37100 invoked from network); 22 Jun 2006 10:30:51 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 22 Jun 2006 10:30:51 -0000 Received: (qmail 92564 invoked by uid 500); 22 Jun 2006 10:30:50 -0000 Delivered-To: apmail-geronimo-activemq-users-archive@geronimo.apache.org Received: (qmail 92536 invoked by uid 500); 22 Jun 2006 10:30:50 -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 92527 invoked by uid 99); 22 Jun 2006 10:30:50 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 22 Jun 2006 03:30:50 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: domain of james.strachan@gmail.com designates 72.14.214.194 as permitted sender) Received: from [72.14.214.194] (HELO hu-out-0102.google.com) (72.14.214.194) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 22 Jun 2006 03:30:49 -0700 Received: by hu-out-0102.google.com with SMTP id 28so159325hug for ; Thu, 22 Jun 2006 03:30:28 -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=Pq1G0dWgGHfRpUXbETegf53nLs+b0Mwy+CRsTntzgKsdReauN7yT6LeNd4RPH99uCAFglVCJdYBdd15g1fOeGG8UMsoxznyuBaaVF24lLcU+qpjsANso88gX6w4+SvTwVGlsE5yDF9N+ljaUOHxPtziRGS+77GMibJFOFNNuVVI= Received: by 10.67.26.7 with SMTP id d7mr934125ugj; Thu, 22 Jun 2006 03:30:27 -0700 (PDT) Received: by 10.66.224.1 with HTTP; Thu, 22 Jun 2006 03:30:27 -0700 (PDT) Message-ID: Date: Thu, 22 Jun 2006 12:30:27 +0200 From: "James Strachan" To: activemq-users@geronimo.apache.org Subject: Re: ThroughPut : Small vs Large Messages In-Reply-To: <6FB083FB72EFD21181D30004AC4CA18A0AEA0959@SRV002> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <6FB083FB72EFD21181D30004AC4CA18A0AEA0959@SRV002> X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N It could be the Nagler kicking in - i.e. it might take a little while for the TCP buffers to be flushed to the network for smaller messages. You can tune TCP to enable/disable waiting for complete tcp buffers before actually sending it to the network - its a throughput v latency tradeoff setting. On 6/22/06, Charles Anthony wrote: > Hi, > > We use AMQ (4) as the client/server transport in our system. For some of our > clients, we host the application at our site, and though connect remotely > via VPN. Sometimes, we (well, usually they) have trouble setting up the VPN > and setting firewall configs etc - so I am just knocking together a little > noddy diagnostics program - i.e. connect to the AMQ server, create a temp > queue, create a producer, create a consumer, send and receive a load of > messages. > > All well and good. > > I thought I'd go a bit crazy, then, and try and work out message throughput > based on message size (i.e. send & reveive A x byte[B] => bytes sent = A*B, > bytes-per-second= A*B/num-secs) - not as a real measurement, but more as > wavy-hand type uide. > I've turned async send off for this diagnostic thingy, and messages are sent > NON_PERSISTENT. > > Here's the weird thing. > > If send small messages ( < 1300 ish bytes), I am getting roundtrip of approx > 200 ms > If send larger messages ( > 1300 ish bytes - say 2048), I am getting > roundtip of < 15 ms > > > Is there a reasonable explanation for this ? Maybe compression kicking in ? > I'm just a bit befuddled. > > Cheers, > > Charles. > > > ___________________________________________________________ > HPD Software Ltd. - Helping Business Finance Business > Email terms and conditions: www.hpdsoftware.com/disclaimer > > > -- James ------- http://radio.weblogs.com/0112098/