Return-Path: X-Original-To: apmail-mina-users-archive@www.apache.org Delivered-To: apmail-mina-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 216A1DEE0 for ; Thu, 9 Aug 2012 10:55:57 +0000 (UTC) Received: (qmail 7692 invoked by uid 500); 9 Aug 2012 10:55:56 -0000 Delivered-To: apmail-mina-users-archive@mina.apache.org Received: (qmail 7099 invoked by uid 500); 9 Aug 2012 10:55:49 -0000 Mailing-List: contact users-help@mina.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@mina.apache.org Delivered-To: mailing list users@mina.apache.org Received: (qmail 7054 invoked by uid 99); 9 Aug 2012 10:55:47 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 09 Aug 2012 10:55:47 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of antonio.rrz@gmail.com designates 209.85.214.171 as permitted sender) Received: from [209.85.214.171] (HELO mail-ob0-f171.google.com) (209.85.214.171) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 09 Aug 2012 10:55:40 +0000 Received: by obqv19 with SMTP id v19so462683obq.2 for ; Thu, 09 Aug 2012 03:55:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=zu4VQ3wdG7bn8OxsVzfICAutEndqjQxJSS5WKIjeIJ8=; b=WebZK04ZG8xPlDUI2eLgqxb+4+gm+1OECIBeYlkmEHnfBZcRkcx/aaiXWAb+cA+QkI 2o8UODXCPuhacHrefOJo69Bx+uV7VxpLYAIPPgrOHrP9QMHhB2Q99uKBQfedFL0EmH93 vPWForXtso8sxSo/C2acu0nlx7jH/OhBWkWHIQU89+lhtZ6qEN2GSHN5+ZDpDg+dT6lq cPdpKLhsIjYkaH3hMBLRHA/6xJ2KaJsWyUuq/jJsWLmtRxwvGkx9fKaQs/utaR5G1WL9 QJhoIZMyNz0LMuWFZGB75RJAXhggmSHqmeuWljE6+z8Ju43Noks30D3i3zhpbe4nJdP3 NmJw== MIME-Version: 1.0 Received: by 10.60.31.165 with SMTP id b5mr34679122oei.58.1344509718909; Thu, 09 Aug 2012 03:55:18 -0700 (PDT) Received: by 10.60.58.200 with HTTP; Thu, 9 Aug 2012 03:55:18 -0700 (PDT) Date: Thu, 9 Aug 2012 13:55:18 +0300 Message-ID: Subject: Too slow network IO From: Antonio Rodriges To: users@mina.apache.org Content-Type: text/plain; charset=ISO-8859-1 Hello, We have Mina 2.0.4 - based server runnig on Ununtu 64 bit 10.04 on 1Gbit network On request it reads a portion of data from disk and transfers it to client. While runing test client for that server we have too slow network communication speed of up to 8 secs for approx. 1MB between server-client We tuned Mina the following: org.apache.mina.core.buffer.IoBuffer.setUseDirectBuffer(false); acceptor.getSessionConfig().setTcpNoDelay(true); acceptor.getSessionConfig().setMinReadBufferSize(65000); acceptor.setReuseAddress(true); acceptor.getSessionConfig().setReadBufferSize(65000); acceptor.getSessionConfig().setReceiveBufferSize(65000); acceptor.getSessionConfig().setIdleTime(IdleStatus.BOTH_IDLE, iddle_time); The number of Mina acceptors is 32. Are there any ideas of the reason of too slow performance of network transfer?