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

JGroups memory leak on shutdown of a clustered Tomcat environment

    Details

    • Fix Priority:
      3

      Description

      The following memory leak occurs on shutdown of a clustered Tomcat environment:

      1. Setup two Liferay bundles for clustering
        • Modify the server configuration port of the second bundle to 9080
        • Modify the portal ext to point to the same database and include the following for both bundles
          cluster.link.enabled=true
          
          cluster.link.channel.system.properties=\
          	#
          	# Common
          	#
          	\
          	jgroups.bind_addr:${cluster.link.bind.addr["cluster-link-udp"]},\
          	jgroups.bind_interface:127.0.0.1,\
          	\
          	#
          	# Multicast
          	#
          	\
          	jgroups.mping.mcast_addr:${multicast.group.address["cluster-link-mping"]},\
          	jgroups.mping.mcast_port:${multicast.group.port["cluster-link-mping"]},\
          	jgroups.mping.ip_ttl:8
          
          web.server.display.node=true
          
      2. Assert Portal starts up and is clustered.
      3. Shutdown both portal and assert the following in the console:
        [exec] SEVERE: The web application [] created a ThreadLocal with key of type [org.jgroups.protocols.FlowControl$1] (value [org.jgroups.protocols.FlowControl$1@1c68757b]) and a value of type [java.lang.Boolean] (value [false]) 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.
        [exec] Jun 18, 2015 10:59:39 PM org.apache.catalina.loader.WebappClassLoader checkThreadLocalMapForLeaks
        

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                albert.lee Albert Lee
                Reporter:
                albert.lee Albert Lee
                Participants of an Issue:
                Recent user:
                Esther Sanz
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Days since last comment:
                  4 years, 9 weeks, 6 days ago

                  Packages

                  Version Package
                  7.0.0 M7