We have rewritten Web Server with JDK1.4, NIO saves 3 Direct Buffer cache in each Thread, but there is a problem in allocation strategies. See JDK BUG4863423, there is really a user, we have this problem. New Products 4.0 There is always an OutofMemoryError when using the user. They use the applet to have a lot of things under the server. I have changed my code my own management DirectBuffer without this problem. There is no problem with the experiment JDK1.5.