If you are running on Linux and Sun's 1.5.0_10 or later VM, try adding the following to your startup:
-Djava.nio.channels.spi.SelectorProvider=sun.nio.ch.EPollSelectorProvider We've found that kernel polling greatly improves latency, especially when you have a lot of socket connections (10,000+). Dawie -----Original Message----- From: peter royal [mailto:[EMAIL PROTECTED] Sent: 02 July 2007 12:39 AM To: [email protected] Subject: Re: 40 ms intermittent latency - large volume, small messages have you tried toggling tcp_nodelay? -pete -- peter royal - (on the go) On Jul 1, 2007, at 2:25 PM, "Colin Koeck" <[EMAIL PROTECTED]> wrote: > Hi, I've been experiencing intermittent latency with mina, generally > causing 37-40 millisecond delays. > > This occurs when I said large amounts of small messages (usually in > 5 - 20 count bursts, each message no more than 500 bytes) across a > 100Mbit ethernet network. I'm using Linux running on dual-core 2.2 > GHz AMD Opteron machines. > > I've found users having similiar problems with other software (39 ms > delays), in this case ActiveMQ > http://www.nabble.com/High-latency-for-small-messages-problem-t3159901.html > , which leads me to believe this is not directly related to mina. > > I have mina setup with SimpleByteBuffer allocating non-direct > memory. I'm pretty sure this isn't a direct problem with mina, but > I'm curious if anyone has experienced this problem with mina, and if > there is anyway to resolve this issue. I would appreciate any help, > thanks! > > - Colin Koeck > <mailto:[EMAIL PROTECTED]> ******************************************************************* Click here to view our e-mail legal notice: http://www.mxit.co.za/pdfs/mxit_legal.pdf or call: +27 21 888 7000 *******************************************************************
