Uploaded image for project: 'Wicket'
  1. Wicket
  2. WICKET-1959

PropertyResolver causes memory leaks with proxies

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.3.5
    • Fix Version/s: 1.3.6, 1.4-RC2
    • Component/s: wicket
    • Labels:
      None
    • Environment:
      All Platforms

      Description

      When using proxies for properties, a memory leak occurs.
      The ConcurrentHashMap classesToGetAndSetters doesn't have an eviction policy and fills up with proxies who do not get
      garbage collected.

      Build a page which uses proxies as properties, every time a new session is initiated, a new proxy (a new proxy is a new class) of the same property is created and added to the map.
      if the proxy is create by a remote jvm you also get a classloader leak.

        Attachments

          Activity

            People

            • Assignee:
              jcompagner Johan Compagner
              Reporter:
              giladgaron Gilad Garon
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: