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

PathAddress leaked on reload

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • Major
    • None
    • None
    • Management
    • None

    Description

      Boot server, connect CLI and reload.
      On a complex standalone.xml configuration, I can see 150+ PathAddress being leaked.

      As an example, the PathAddress [("core-service" => "management"),("management-interface" => "http-interface")] is leaked after the first reload (and only the first one, additional reloads don't create leak).

      Attached heapdump, server.log and configuration used (reduced standalone.xml).

      server.log contains traces of Instrumented PathAddress. Each created instance has an ID to track finalization.
      server.log contains stacktrace of PathAddress allocation.
      You will notice:
      0) Server starts and allocates 9 PathAddress for the management-interface=http-interface.
      1) GC occurs (forced from remote), 7 PathAddress are finalized. Instance 149 and 338 are not finalized.
      2) Reload occurs and allocates 9 new PathAddress for the management-interface=http-interface.
      3) GC occurs (forced from remote), 8 PathAddress are finalized. Instance 338 is Finalized but NOT instance 149.
      4) We have 3 remaining PathAddress 149, 600 and 789
      5) Reload occurs and allocates 9 new PathAddress for the management-interface=http-interface.
      6) GC occurs (forced from remote), 9 PathAddress are finalized, we still have 149, new ones being 1029 and 1218.

      So we have a leak of 1 PathAddress instance, instance 149.

      Attachments

        1. after-reload.hprof
          16.81 MB
        2. nominal.hprof
          15.56 MB
        3. server.log
          112 kB
        4. standalone-minimal2.xml
          3 kB

        Activity

          People

            jmesnil1@redhat.com Jeff Mesnil
            jdenise@redhat.com Jean Francois Denise
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: