Uploaded image for project: 'Archiva (Retired)'
  1. Archiva (Retired)
  2. MRM-1785

Little memory leak detected

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Critical
    • Resolution: Fixed
    • 1.4-M4
    • 2.1.0
    • Problem Reporting
    • None
    • Linux SLES 11 86_64

    Description

      Perhaps some duplicate of MRM-1741 (but no activity since 6 months => openend a new)


      We are using Archiva 1.4-M4 for our company, and we found some memory problem usage on this version.

      It seems not to be a "big problem", because there is not directly a OutOfMemory, the Jetty server becomes very slow before. Symptom from CI platorm (for exemple) :

      Server returned HTTP response code: 502 for URL: http://[url]/repository/[repoName]/[grouId]/[artifactId]/[version]/maven-metadata.xml


      Informations about volumetry :

      Requests by day (wc -l request-XXX.log) : 430000 (average)

      Company repositories (Total File Count from Stats in Repositories menu) :

      • company-releases : 574771
      • company-snapshots : 118905
      • proxied-releases : 232626
      • proxied-snapshots : 2136
      • extra-libs : 9232
      • commercial-libs : 4587
      • Total : 950000

      Note : Option "Skip Packed Index creation" activated on each repositories.


      Analysis :

      The GC grow up during the week :

      The invocation to GC grow up when memory is short :

      Before the problem, we can see the impact (difficulty to garbage memory) :

      After a application restart, the common usage is less than 2Go :

      => So the supposition is a little memory leak.


      A solution could be some cache time reduction or SoftReference/WeakReference usage.

      Today I have not more information about problem, restart was urgent, and analysis a 4Go HeapDump a little difficult.
      I will take HeapDumps the next week to give some detail about memory usage.

      Attachments

        1. 20131105-091005-dump.png
          46 kB
          Alix Lourme
        2. 20131105-091005-ProblemSuspect-1-1-description.png
          18 kB
          Alix Lourme
        3. 20131105-091005-ProblemSuspect-1-2-ShortestPaths.png
          46 kB
          Alix Lourme
        4. 20131105-091005-ProblemSuspect-1-3-AccumulatedObjects.png
          84 kB
          Alix Lourme
        5. 20131105-091005-ProblemSuspect-1-4-AccumulatedObjectsByClass.png
          20 kB
          Alix Lourme
        6. 20131105-091005-ProblemSuspect-2-1-description.png
          18 kB
          Alix Lourme
        7. 20131105-091005-ProblemSuspect-2-2-CommonPathToTheAccumulationPoint.png
          65 kB
          Alix Lourme
        8. GC-HeapUsage-AfterProblem.png
          26 kB
          Alix Lourme
        9. GC-HeapUsage-BeforeProblem.png
          22 kB
          Alix Lourme
        10. GC-HeapUsage-OneWeek.png
          19 kB
          Alix Lourme
        11. GC-InvocationCountOneWeek.png
          19 kB
          Alix Lourme

        Issue Links

          Activity

            People

              olamy Olivier Lamy
              axel3rd Alix Lourme
              Votes:
              1 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: