Uploaded image for project: 'Apache Ozone'
  1. Apache Ozone
  2. HDDS-10385

Memory leak for thread local usages in OMClientRequest

    XMLWordPrintableJSON

Details

    Description

      As part of HDDS-8974. Introduce detailed lock information

      Below omLockDetails is declared which is private to the instance and consume thread local resource of thread. But this resource is never released.

      private final ThreadLocal<OMLockDetails> omLockDetails =
      ThreadLocal.withInitial(OMLockDetails::new);

       

      This will cause memory leak and thread local memory keeps increasing with each new Request object.

       

      Need avoid usages of thread local as instance level; or need use as static or as singleton to reuse same resource.

       

      cc: Symious Sammi 

      Attachments

        Activity

          People

            sumitagrawl Sumit Agrawal
            sumitagrawl Sumit Agrawal
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: