Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.1
    • Fix Version/s: 2.0
    • Labels:
      None
    • Environment:

      Operating System: other
      Platform: Other

    • Bugzilla Id:
      36559

      Description

      When I reload my webapp, and I profile, I see Method objects in
      IntrospectionUtils grow and grow (to the thousands of instances), and none of
      my class Objects (or static references) get collected.

      This is in the objectsMethods HashTable.

      One suggestion: remove the caching
      or
      Another suggestion: add a method that clears it (or clears it for a certain
      classloader), and make sure this method gets called from Tomcat when it
      unloads a webapp (since I dont know how a webapp could call this method if
      this class is loaded from the system classloader)

      More info:

      http://opensource2.atlassian.com/confluence/spring/pages/viewpage.action?
      pageId=2669

      Thanks!
      Chris

        Activity

        Hide
        billbarker Bill Barker added a comment -

        A method has been added to IntrospectionUtils to clear the cached methods (similar to the one in the Tomcat class that this was stolen from . Of course, it won't have any effect until the next release of Modeler, and after that when the Tomcat team decides to upgrade to it.

        However, this has already been fixed for Tomcat 6.x with an independent patch.

        Show
        billbarker Bill Barker added a comment - A method has been added to IntrospectionUtils to clear the cached methods (similar to the one in the Tomcat class that this was stolen from . Of course, it won't have any effect until the next release of Modeler, and after that when the Tomcat team decides to upgrade to it. However, this has already been fixed for Tomcat 6.x with an independent patch.
        Hide
        bayard Henri Yandell added a comment -

        Bill - is this issue resolvable, or something more has to happen before a modeler release can go ahead?

        Show
        bayard Henri Yandell added a comment - Bill - is this issue resolvable, or something more has to happen before a modeler release can go ahead?
        Hide
        billbarker Bill Barker added a comment -

        It's resolved as far as Modeler is concerned. There needs to be some minor changes in Tomcat for it to have any effect.

        Show
        billbarker Bill Barker added a comment - It's resolved as far as Modeler is concerned. There needs to be some minor changes in Tomcat for it to have any effect.
        Hide
        bayard Henri Yandell added a comment -

        Is there any issue to that effect within Tomcat's bugzilla that I can point to when I resolve this one?

        Show
        bayard Henri Yandell added a comment - Is there any issue to that effect within Tomcat's bugzilla that I can point to when I resolve this one?
        Hide
        billbarker Bill Barker added a comment -

        A quick search of BZ doesn't show any (and I don't remember seeing one come through dev@tomcat). I think that Chris actually knew what he was doing, and posted to the correct list .

        Show
        billbarker Bill Barker added a comment - A quick search of BZ doesn't show any (and I don't remember seeing one come through dev@tomcat). I think that Chris actually knew what he was doing, and posted to the correct list .

          People

          • Assignee:
            Unassigned
            Reporter:
            mchyzer@yahoo.com Chris
          • Votes:
            2 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development