[jboss-jira] [JBoss JIRA] (AS7-6776) Memory leak with ServletContainerInitializer

Stan Silvert (JIRA) jira-events at lists.jboss.org
Fri Mar 22 12:21:41 EDT 2013


    [ https://issues.jboss.org/browse/AS7-6776?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12762656#comment-12762656 ] 

Stan Silvert commented on AS7-6776:
-----------------------------------

Looks like I have a fix.  I just remove the attachment in ServletContainerInitializerDeploymentProcessor and the problem goes away.

public void undeploy(final DeploymentUnit context) {
   context.removeAttachment(ScisMetaData.ATTACHMENT_KEY);
}

I don't know if this is really fixing the root problem though.  What do you think?
                
> Memory leak with ServletContainerInitializer
> --------------------------------------------
>
>                 Key: AS7-6776
>                 URL: https://issues.jboss.org/browse/AS7-6776
>             Project: Application Server 7
>          Issue Type: Feature Request
>          Components: Web
>    Affects Versions: 8.0.0.Alpha1
>            Reporter: Stan Silvert
>            Assignee: Remy Maucherat
>         Attachments: mysci.zip, PlainWebApp.zip
>
>
> 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.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


More information about the jboss-jira mailing list