Uploaded image for project: 'CXF'
  1. CXF
  2. CXF-7943

MAPCodec: Memory leak due to growing uncorrelatedExchanges

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 3.2.0
    • None
    • None
    • None
    • CXF 3.2.0, JDK 1.8

    • Unknown

    Description

      When running load tests, my system begin to get memory leak after 4 hours or so. When analyzing the heap dump using VisualVM (please see attachments), I can see that a ConcurrentHashMap is taking up 1.7 GB of space in the heap, as well as being the main "suspect" for this leak. This leads me to believe that it is the uncorrelatedExchanges attribute since this map is being reference from the MAPCodec class.

      I believe that the map, in my case, for whatever reason, does not always remove the Exchange after the synchronous request/responses are done, however I could be wrong.

       

      IF this is indeed a bug, what could the cause of this be, as well as any work around?

      Attachments

        1. fault_req_resp.xml
          7 kB
          Adolfo Volpe
        2. histogram.PNG
          73 kB
          Sean
        3. leak_suspect_1.PNG
          41 kB
          Sean
        4. mapcodec_leak.png
          25 kB
          Adolfo Volpe
        5. mem_dump.png
          16 kB
          Adolfo Volpe
        6. ok_req_resp.xml
          8 kB
          Adolfo Volpe

        Issue Links

          Activity

            People

              Unassigned Unassigned
              JohnCKG Sean
              Votes:
              1 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated: