United StatesChange Country, Oracle Worldwide Web Sites Communities I am a... I want to...
JDK-4953311 : Buffer size in BufferedInputStream and BufferedOutputStream is too small

Details
Type:
Enhancement
Submit Date:
2003-11-12
Status:
Resolved
Updated Date:
2003-12-19
Project Name:
JDK
Resolved Date:
2003-12-19
Component:
core-libs
OS:
windows_nt
Sub-Component:
java.io
CPU:
x86
Priority:
P2
Resolution:
Fixed
Affected Versions:
5.0
Fixed Versions:
5.0 (b32)

Related Reports
Relates:

Sub Tasks

Description
In java.io package, BufferedInputStream uses a default buffer size of 2048 bytes, and BufferedOutputStream uses a default buffer size of 512 bytes. These buffer sizes are too small and they cause significant performance penalty to the system because of the extra reads and writes. The small buffer size also causes significant performance bottleneck in socket read/write on high speed network. This bug is on all platforms.

Most OSes that we support uses a buffer size of 8192 (8K) bytes for their IO buffering, and this is also the buffer size used by Microsoft VM on Win32. We should change the default buffer size in these two classes to 8K.

                                    

Comments
CONVERTED DATA

BugTraq+ Release Management Values

COMMIT TO FIX:
tiger-beta

FIXED IN:
tiger-beta

INTEGRATED IN:
tiger-b32
tiger-beta


                                     
2004-06-14
EVALUATION

Sounds reasonable. There is a spec change involved which has been approved by the CCC.
###@###.### 2003-11-13
                                     
2003-11-13



Hardware and Software, Engineered to Work Together