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

Memory leak with ServletContainerInitializer

XMLWordPrintable

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

      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.

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

                Created:
                Updated:
                Resolved: