Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-6518816

Reduce the memory foot print for HttpURLConnection

    XMLWordPrintable

    Details

    • Subcomponent:
    • Resolved In Build:
      b01
    • CPU:
      generic
    • OS:
      generic

      Backports

        Description

        Some of the JAX-WS applications send a lot of data in web service requests. JAX-WS uses HttpURLConnection to send the web service request. All this data is buffered in sun.net.www.http.PosterOuputStream and it remains until URLConnection is GCed. JAX-WS keeps a referece to URLConnection (even after it reads the response) to compute cerain things(for e.g: HTTP headers) lazily using URLConnection. There is no use to keep this PosterOuputStream once the request is sent. We would want the reference to PosterOuputStream to be set null at an appropriate place and thus it will reduce the memory footprint.

          Attachments

            Issue Links

              Activity

                People

                Assignee:
                asaha Abhijit Saha
                Reporter:
                jkotamra Jitendra Kotamraju (Inactive)
                Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                  Dates

                  Created:
                  Updated:
                  Resolved:
                  Imported:
                  Indexed: