3 Replies Latest reply on Nov 24, 2015 3:04 AM by Fabian Chanton

    Undertow Subsystem Memory Leak upon WAR Redeployments

    catandgrep Newbie

      Wildfly doesn't seem not to release "io.undertow.servlet.spec.ServletContextImpl" properly after undeployment of a web application. This results in memory leak after contiuous redeployments of a single application - see Eclipse Memory Analyzer:

      6 instances of "io.undertow.servlet.spec.ServletContextImpl", loaded by "org.jboss.modules.ModuleClassLoader @ 0xe0226c10" occupy 5,051,528 (14.46%) bytes.

       

      Biggest instances:

      io.undertow.servlet.spec.ServletContextImpl @ 0xe1b64db8 - 1,039,080 (2.97%) bytes.

      io.undertow.servlet.spec.ServletContextImpl @ 0xe1e7bfe8 - 1,038,960 (2.97%) bytes.

      io.undertow.servlet.spec.ServletContextImpl @ 0xe16e23f8 - 1,038,536 (2.97%) bytes.

      io.undertow.servlet.spec.ServletContextImpl @ 0xe1a745d0 - 1,038,488 (2.97%) bytes.

      io.undertow.servlet.spec.ServletContextImpl @ 0xe1696090 - 893,456 (2.56%) bytes.

       

      I've created a simple Test for reproducing this issue:
      https://github.com/catandgrep/wildfly-undertow-mem-leak

       

      Is this already known, or should I file a bug.