Uploaded image for project: 'Log4j 2'
  1. Log4j 2
  2. LOG4J2-2354

log4j-jcl cause memery leak in TomCat 8.5.24

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Critical
    • Resolution: Unresolved
    • 2.11.0
    • None
    • JCL Bridge

    Description

      I build a skeleton Spring MVC project to test this.

      here is my whole dependencies in pom.xml:

      <dependencies>
      <dependency>
      <groupId>org.springframework</groupId>
      <artifactId>spring-context</artifactId>
      <version>5.0.7.RELEASE</version>
      </dependency>
      <dependency>
      <groupId>org.springframework</groupId>
      <artifactId>spring-webmvc</artifactId>
      <version>5.0.7.RELEASE</version>
      </dependency>
      <dependency>
      <groupId>org.apache.logging.log4j</groupId>
      <artifactId>log4j-jcl</artifactId>
      <version>2.11.0</version>
      </dependency>
      <dependency>
      <groupId>org.apache.logging.log4j</groupId>
      <artifactId>log4j-web</artifactId>
      <version>2.11.0</version>
      </dependency>
      </dependencies>
      
      

      when undeploy or stop of the Application in TomCat,I got this:

      The following web applications were stopped (reloaded, undeployed), but their
      classes from previous runs are still loaded in memory, thus causing a memory
      leak (use a profiler to confirm):
      /myapp
      

      I also test this in Spring 4.2.0 . It's the same result.

       

      I am a beginner in log4j2, Is there something I missed? or it's indeed a bug?

      Attachments

        Activity

          People

            Unassigned Unassigned
            brradish brradish
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated: