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.
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 { \