Uploaded image for project: 'WildFly Core'
  1. WildFly Core
  2. WFCORE-5

controller client has a small memory leak as it's not cleaning up the ThreadGroup object

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Minor
    • 1.0.0.Alpha4
    • 1.0.0.Alpha2
    • Management
    • None
    • Hide

      Start an out of the box build. I used a wildfly-9.0.0.Alpha1-SNAPSHOT build of July 9th.

      Run the attached standalone program. It will do a loop creating a connection, and destroying it (try-with-resources)

      When it display 240.000 take a heap dump. The dump will contain an equal amount of ThreadGroup objects as connections have been made.

      The program will show memory calculations. These are not very precise of course, but the heap dump is very clear.

      Show
      Start an out of the box build. I used a wildfly-9.0.0.Alpha1-SNAPSHOT build of July 9th. Run the attached standalone program. It will do a loop creating a connection, and destroying it (try-with-resources) When it display 240.000 take a heap dump. The dump will contain an equal amount of ThreadGroup objects as connections have been made. The program will show memory calculations. These are not very precise of course, but the heap dump is very clear.

    Description

      org.jboss.as.controller.client.impl.ClientConfigurationImpl

      052 static ExecutorService createDefaultExecutor() {
      053 final ThreadGroup group = new ThreadGroup("management-client-thread");

      The ThreadGroup is never cleaned up and creates a memory leak

      Attachments

        Activity

          People

            bstansbe@redhat.com Brian Stansberry
            tfonteyn Tom Fonteyne (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: