Uploaded image for project: 'PUBLIC - Liferay Portal Community Edition'
  1. PUBLIC - Liferay Portal Community Edition
  2. LPS-100348

Hystrix threads keep hanging in the JVM which causes memory leak messages when shutting down server

    Details

      Description

      Steps to reproduce:

      1. Add a deliberately broken data provider:
        1. Name: Broken data provider;
        2. URL: http://localhost:9999/;
        3. Output Parameter: 
          1. Label: Name;
          2. Path: $..name;
          3. Type: List;
      2. Create a form:
        1. Title: Test form;
        2. Add a Select from List field:
          1. Label: Select;
          2. Create List: From Data Provider;
          3. Choose a Data Provider: Broken data provider;
          4. Choose an Output Parameter: Name;
      3. Publish the form;
      4. Enter the form's URL;
      5. Gracefully shutdown the server.

      Expected behavior:
      The server shuts down without error.

      Actual behavior:
      After the server stops, "severe" warning messages about possible memory leaks are thrown in the server's console:

      SEVERE [Thread-18] org.apache.catalina.loader.WebappClassLoaderBase.checkThreadLocalMapForLeaks The web application [ROOT] created a ThreadLocal with key of type [com.netflix.hystrix.Hystrix$1] (value [com.netflix.hystrix.Hystrix$1@59412386]) and a value of type [com.netflix.hystrix.Hystrix.ConcurrentStack] (value [com.netflix.hystrix.Hystrix$ConcurrentStack@12dba25f]) but failed to remove it when the web application was stopped. Threads are going to be renewed over time to try and avoid a probable memory leak
      

        Attachments

          Activity

            People

            Assignee:
            harry.chai Harry Chai
            Reporter:
            rodrigo.paulino Rodrigo Paulino
            Participants of an Issue:
            Recent user:
            Jason Pince
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Days since last comment:
              1 year, 46 weeks, 4 days ago

                Packages

                Version Package
                7.1.10 DXP FP14
                7.1.X
                7.2.10 DXP FP2
                7.2.10.1 DXP SP1
                7.2.1 CE GA2
                7.2.X
                7.3.10 DXP GA1
                Master