Uploaded image for project: 'WildFly'
  1. WildFly
  2. WFLY-17418 Remove static references to ResourceDefinition instances
  3. WFLY-17372

Eliminate static references to Undertow ResourceDefinition instances

XMLWordPrintable

    • ---
    • ---

      ResourceDefinition instances are only used during subsystem registration. Unfortunately, the Undertow subsystem references each ResourceDefinition instance in a static reference, which prevents their garbage collection once subsystem registration is complete.
      AFAICT, these static references are only used by the PersistentResourceXMLParser implementations to obtain the PathElement of a given ResourceDefinition - even though static references to all PathElement instances already exist.
      Eliminating these static references will reduce the metaspace overhead of this subsystem by allowing all ResourceDefinition instances to be garbage collected after the initial subsystem registration.

              pferraro@redhat.com Paul Ferraro
              pferraro@redhat.com Paul Ferraro
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: