Uploaded image for project: 'mod_cluster'
  1. mod_cluster
  2. MODCLUSTER-522

Memory leak in processing MCMP, wrong apr pool used for allocation

    Details

    • Type: Bug
    • Status: Resolved (View Workflow)
    • Priority: Critical
    • Resolution: Done
    • Affects Version/s: 1.3.1.Final, 2.0.0.Alpha1
    • Fix Version/s: 1.3.5.Final
    • Component/s: Native (httpd modules)
    • Labels:
      None
    • Environment:

      Solaris 10 x86_64, RHEL 6, Fedora 24, httpd 2.4.6, httpd 2.4.20

      Description

      There seems to be a wrong apr pool used for processing certain MCMP commands. We should use short life span pools for immediate processing and server-lifetime pools only for really persistent configuration. In the current state, with 20+ tomcat workers (1 alias and 1 context each) and virtually no client requests, we could see slow, but steady growth of heap allocated memory.

      TODO: Investigate the offending logic, make sure we ain't using long-lived pools for immediate processing.

      Originally discovered by: Jan Sykora and José Marcelo Santuci

      Illustrative memory overview - with constant number of Tomcats:

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  jfclere Jean-Frederic Clere
                  Reporter:
                  mbabacek Michal Karm Babacek
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  7 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: