Uploaded image for project: 'JBoss Logging'
  1. JBoss Logging
  2. JBLOGGING-118

Subclass of java.util.logging.Level creates PermGen memory leak

    Details

    • Type: Bug
    • Status: Open (View Workflow)
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 3.3.0.Beta1
    • Fix Version/s: None
    • Component/s: jboss-logging-jdk
    • Labels:
      None
    • Environment:

      JDK7, Tomcat 7, OpenJPA-2.4.1, ValidationAPI-1.x, hibernate-validator-5.2.1, jboss-logging (fresh from github).

    • Steps to Reproduce:
      Hide

      Create a webapp and provide jboss-logging.jar inside a webapp archive file.

      Show
      Create a webapp and provide jboss-logging.jar inside a webapp archive file.
    • Workaround Description:
      Hide

      Use a fork project murmur/jboss-logging from Github.

      Show
      Use a fork project murmur/jboss-logging from Github.

      Description

      Subclass of java.util.logging.Level creates PermGen memory leak if webapp provides jboss-logging.jar inside a webapp. This happen most likely in Tomcat and hot-redeployment stops working after few times out of PermGen memory.

      It's a commonly known side effect of JDK logging library, projects should not inherit Level class.

      See this discussion and github pull request where I have fixed this problem.
      http://stackoverflow.com/a/32412984/185565
      https://github.com/jboss-logging/jboss-logging/pull/21

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                jamezp James Perkins
                Reporter:
                murmur001 Murmur Murmur
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated: