title: Netty-4.0.0.CR6 throws OutOfMemoryError
body: <p>I am trying my application with latest build of Netty-4 CR6. At the server end of my application, I get the following error at a load of around 200 requests / sec:</p>
  
  <pre><code>io.netty.handler.codec.DecoderException: java.lang.OutOfMemoryError: Direct buffer memory
          at io.netty.handler.codec.ReplayingDecoder.callDecode(ReplayingDecoder.java:393)
          at io.netty.handler.codec.ByteToMessageDecoder.messageReceived(ByteToMessageDecoder.java:129)
          at io.netty.channel.DefaultChannelHandlerContext.invokeMessageReceived(DefaultChannelHandlerContext.java:379)
          at io.netty.channel.DefaultChannelHandlerContext.fireMessageReceived(DefaultChannelHandlerContext.java:364)
          at io.netty.channel.DefaultChannelHandlerContext.fireMessageReceived(DefaultChannelHandlerContext.java:347)
          at io.netty.channel.DefaultChannelPipeline.fireMessageReceived(DefaultChannelPipeline.java:780)
          at io.netty.channel.nio.AbstractNioByteChannel$NioByteUnsafe.read(AbstractNioByteChannel.java:92)
          at io.netty.channel.nio.NioEventLoop.processSelectedKey(NioEventLoop.java:489)
          at io.netty.channel.nio.NioEventLoop.processSelectedKeysOptimized(NioEventLoop.java:464)
          at io.netty.channel.nio.NioEventLoop.run(NioEventL
  </code></pre>
  
  <p>It is a file transfer application. I am using client and server build with Netty-4 CR6 jar. In every request the client creates a WebSocket connection, transfer a file of around 850KB and finally closes the connection by sending CloseWebSocketFrame.</p>