Uploaded image for project: 'Application Server 7'
  1. Application Server 7
  2. AS7-6776

Memory leak with ServletContainerInitializer

    XMLWordPrintable

Details

    • Feature Request
    • Resolution: Duplicate
    • Major
    • None
    • No Release
    • Web
    • None

    Description

      ServletContainerInitializers are not cleaned up on undeploy. This causes a memory leak.

      I'm attaching a couple of maven projects to reproduce the problem. The first project creates a jar with an SCI that allocates 50MB. The second project is a plain war that packages the SCI's jar.

      Redeploy the WAR several times and you will get an OOME.

      Attachments

        1. mysci.zip
          5 kB
        2. PlainWebApp.zip
          2 kB

        Activity

          People

            tomazcerar Tomaž Cerar (Inactive)
            ssilvert@redhat.com Stan Silvert
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: