-
Bug
-
Resolution: Fixed
-
P3
-
5.0
-
b01
-
generic
-
generic
-
Not verified
Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-2147269 | 7 | Michael McMahon | P4 | Closed | Fixed | b10 |
JDK-2147324 | 6u2 | Michael McMahon | P3 | Resolved | Fixed | b01 |
HttpURLConnection.getOutputStream() returns ChunkedOutputStream when setChunkedStreamingMode(4k) is called. But ChunkedOutputStream copies when write(byte[], off, len) is called. When ChunkedOutputStream.write(buf[20MB], off, len) is called, it keeps a copy of 20 MB. Thus, applications run of memory. There is no need to keep 20 MB in buf field since the chunk size 4k. This limits severly some of the JAX-WS applications and forces JAX-WS to do chunking before writing to ChunkedOutputStream. The fact that we are using chunking to avoid buffering doesn't help.
- backported by
-
JDK-2147324 sun.net.www.http.ChunkedOutputStream buffers
- Resolved
-
JDK-2147269 sun.net.www.http.ChunkedOutputStream buffers
- Closed
- relates to
-
JDK-6631048 Problem when writing on output stream of HttpURLConnection
- Closed