Uploaded image for project: 'Dev - Nexus Repo'
  1. Dev - Nexus Repo
  2. NEXUS-4018

Attribute reqPath"+#modified" put but never removed from ServletContextAdapter attributes

Details

    • Bug
    • Resolution: Fixed
    • Major
    • 1.9
    • None
    • REST
    • None

    Description

      Problem lies on line 104 below:

      https://sventon.sonatype.org/repos/spice/show/trunk/plexus-restlet-bridge/src/main/java/org/sonatype/plexus/rest/resource/RestletResource.java?revision=2692#L87

      On every request handled by restlet code (so, REST API or content, both are affected), the HTTP Request's path+"#modified" as key, and new Date() as value is put into context attributes, but no cleanup happens.

      This leads on long running instances, on systems being asked for lot of content to a leak.

      Attachments

        1. 00000160.png
          00000160.png
          84 kB
        2. baseline-heap-with-patch.png
          baseline-heap-with-patch.png
          103 kB
        3. baseline-heap-witouht-patch.png
          baseline-heap-witouht-patch.png
          103 kB
        4. heap-final-nopatch.bin.gz
          11.50 MB
        5. heap-final-patch.bin.gz
          10.65 MB
        6. nexus-1.7.2-without-patch.png
          nexus-1.7.2-without-patch.png
          119 kB
        7. nexus-1.7.2-with-patch.png
          nexus-1.7.2-with-patch.png
          116 kB

        Activity

          People

            velo Marvin Herman Froeder
            cstamas Tamás Cservenák
            Peter Lynch Peter Lynch
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              tigCommentSecurity.panel-title