From 3b0d843e599db95854e12d2d211405350f0c0399 Mon Sep 17 00:00:00 2001 From: Trustin Lee Date: Thu, 18 Feb 2010 02:47:09 +0000 Subject: [PATCH] Increased the default preallocation size for higher out of the box throughput --- .../org/jboss/netty/channel/socket/nio/DirectBufferPool.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/org/jboss/netty/channel/socket/nio/DirectBufferPool.java b/src/main/java/org/jboss/netty/channel/socket/nio/DirectBufferPool.java index b75c01f41e..f13866c569 100644 --- a/src/main/java/org/jboss/netty/channel/socket/nio/DirectBufferPool.java +++ b/src/main/java/org/jboss/netty/channel/socket/nio/DirectBufferPool.java @@ -40,7 +40,7 @@ final class DirectBufferPool { 0); if (val <= 0) { - val = 128 * 1024; + val = 1048576; } else { logger.debug( "Setting the preallocated buffer capacity to: " + val);