Return-Path: Delivered-To: apmail-directory-commits-archive@www.apache.org Received: (qmail 46398 invoked from network); 15 Feb 2007 23:55:49 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 15 Feb 2007 23:55:48 -0000 Received: (qmail 43853 invoked by uid 500); 15 Feb 2007 23:55:56 -0000 Delivered-To: apmail-directory-commits-archive@directory.apache.org Received: (qmail 43796 invoked by uid 500); 15 Feb 2007 23:55:56 -0000 Mailing-List: contact commits-help@directory.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@directory.apache.org Delivered-To: mailing list commits@directory.apache.org Received: (qmail 43785 invoked by uid 500); 15 Feb 2007 23:55:56 -0000 Delivered-To: apmail-incubator-directory-cvs@incubator.apache.org Received: (qmail 43782 invoked by uid 99); 15 Feb 2007 23:55:56 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 15 Feb 2007 15:55:56 -0800 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_HELO_PASS X-Spam-Check-By: apache.org Received: from [140.211.11.130] (HELO eos.apache.org) (140.211.11.130) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 15 Feb 2007 15:55:48 -0800 Received: from eos.apache.osuosl.org (localhost [127.0.0.1]) by eos.apache.org (Postfix) with ESMTP id 4286059F71 for ; Thu, 15 Feb 2007 23:55:28 +0000 (GMT) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: Apache Wiki To: directory-cvs@incubator.apache.org Date: Thu, 15 Feb 2007 23:55:28 -0000 Message-ID: <20070215235528.11579.39108@eos.apache.osuosl.org> Subject: [Directory Wiki] Update of "MinaPerformance" by CKoppelt X-Virus-Checked: Checked by ClamAV on apache.org Dear Wiki user, You have subscribed to a wiki page or wiki category on "Directory Wiki" for change notification. The following page has been changed by CKoppelt: http://wiki.apache.org/directory/MinaPerformance ------------------------------------------------------------------------------ - == Performance Tips == + deleted - Strangely, some modern JVMs seem to perform better with heap buffers than with direct buffers. Try to set the buffers to be allocated as heap buffers by default: - - {{{ - ByteBuffer.setUseDirectBuffers( false ); - }}} - - - If you decided to use heap buffers by default, you'd better change the default {{{ByteBufferAllocator}}} to {{{SimpleByteBufferAllocator}}} for even higher performance. The default allocator, {{{PooledByteBufferAllocator}}}, was created because allocating a direct buffer takes a lot of time comparing to the case of a heap buffer. - - {{{ - ByteBuffer.setAllocator(new SimpleByteBufferAllocator()); - }}} - - Additionally, you can adjust the size of the eden (the heap area for young objects in a JVM). It is known that about 30% of the maximum heap size will be OK in general. For example: - - {{{ - java -Xmx1024m -XX:NewSize=300m - }}} - - == Impressive Performance Stories == - - Please post your success story on performance. We'll move your testimonials here to [http://directory.apache.org/subprojects/mina/testimonials.html our web site] periodically. -