Uploaded image for project: 'Infinispan'
  1. Infinispan
  2. ISPN-1611

Hotrod server memory leak after enable idle timeout

This issue belongs to an archived project. You can view it, but you can't modify it. Learn more

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Blocker Blocker
    • 5.1.0.CR2
    • 5.1.0.CR1
    • Remote Protocols
    • None

      i set --idle_timeout=15 as param, threads count and memory usage always grow, i got a heap dump and found many netty HashedWheelTimer instances cost much memory.
      in HashedWheelTimer javadoc, it says: "Do not create many instances. HashedWheelTimer creates a new thread whenever it is instantiated and started. Therefore, you should make sure to create only one instance and share it across your application. One of the common mistakes, that makes your application unresponsive, is to create a new instance in ChannelPipelineFactory, which results in the creation of a new thread for every connection.". but in infinispan NettyChannelPipelineFactory.scala, there is "timer = new HashedWheelTimer", it's misused.

            [ISPN-1611] Hotrod server memory leak after enable idle timeout

            Tristan Tarrant <ttarrant@redhat.com> changed the Status of bug 768411 from VERIFIED to CLOSED

            RH Bugzilla Integration added a comment - Tristan Tarrant <ttarrant@redhat.com> changed the Status of bug 768411 from VERIFIED to CLOSED

            Michal Linhard <mlinhard@redhat.com> made a comment on bug 768411

            This can no longer be observed in JDG 6.0.0 ER2

            RH Bugzilla Integration added a comment - Michal Linhard <mlinhard@redhat.com> made a comment on bug 768411 This can no longer be observed in JDG 6.0.0 ER2

            Michal Linhard <mlinhard@redhat.com> changed the Status of bug 768411 from ON_QA to VERIFIED

            RH Bugzilla Integration added a comment - Michal Linhard <mlinhard@redhat.com> changed the Status of bug 768411 from ON_QA to VERIFIED

            Tristan Tarrant <ttarrant@redhat.com> changed the Status of bug 768411 from NEW to ON_QA

            RH Bugzilla Integration added a comment - Tristan Tarrant <ttarrant@redhat.com> changed the Status of bug 768411 from NEW to ON_QA

              rh-ee-galder Galder Zamarreño
              zhs_jira Zen Zhong (Inactive)
              Archiver:
              rhn-support-adongare Amol Dongare

                Created:
                Updated:
                Resolved:
                Archived: