Uploaded image for project: 'JBoss Enterprise Application Platform'
  1. JBoss Enterprise Application Platform
  2. JBEAP-11845

(7.0.z) UNDERTOW-1112 Potential memory leak with DeflatingStreamSinkConduit

    XMLWordPrintable

Details

    • EAP 7.0.8

    Description

      We've noticed unusual memory consumption pattern with one of our services based on Undertow. After a lengthy investigation with native memory profiling, the issue boiled down to the fact that we use gzip compression for output and GzipEncodingProvider respectively. Deflater releases memory either when end() function is called explicitly or when it's garbage-collected which is not particularly reliable. Our fix is to wrap existing gzip conduit into FinishableStreamSinkConduit and use deflater.end() as finish operation. I assume it would be a proper way for DeflatingStreamSinkConduit to handle this out of the box.

      Attachments

        Issue Links

          Activity

            People

              sdouglas1@redhat.com Stuart Douglas
              thofman Tomas Hofman
              Michael Cada Michael Cada
              Michael Cada Michael Cada
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: