JDK-6807602 : Increase MAX_BUFFER_LEN and MAX_HEAP_BUFFER_LEN on 64-bit Solaris and Linux
  • Type: Bug
  • Component: core-libs
  • Sub-Component: java.net
  • Affected Version: 7
  • Priority: P3
  • Status: Resolved
  • Resolution: Fixed
  • OS: generic
  • CPU: generic
  • Submitted: 2009-02-19
  • Updated: 2010-12-08
  • Resolved: 2009-06-22
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 6 JDK 7
6u14Fixed 7 b62Fixed
Related Reports
Relates :  
Relates :  
Relates :  
Description
As per synopsis.

Comments
EVALUATION Changeset: http://hg.openjdk.java.net/jdk7/tl/jdk/rev/928e0f1043e6
29-05-2009

EVALUATION Webrev: http://cr.openjdk.java.net/~chegar/6807602/webrev.00/webrev/ Code Review: http://mail.openjdk.java.net/pipermail/net-dev/2009-May/000868.html
29-05-2009

EVALUATION This change increases the stack allocated buffer, MAX_BUFFER_LEN, from 8k to 64k, and the c heap allocated buffer, MAX_HEAP_BUFFER_LEN, from 64k to 128k, for 64bit Solaris and Linux.
20-02-2009

EVALUATION Increase MAX_HEAP_BUFFER_LEN to 128k on 64-bit Solaris.
19-02-2009

SUGGESTED FIX *************** *** 112,123 **** --- 112,128 ---- /* * Its safe to increase the buffer to 8K, this gives a 5-20% * performance boost on volano and overall socket performance. */ + #ifdef _LP64 + #define MAX_BUFFER_LEN 65536 + #define MAX_HEAP_BUFFER_LEN 131072 + #else #define MAX_BUFFER_LEN 8192 #define MAX_HEAP_BUFFER_LEN 65536 + #endif #ifdef AF_INET6 #ifdef __linux__ #define SOCKADDR union { \
19-02-2009