Uploaded image for project: 'Artifactory Binary Repository'
  1. Artifactory Binary Repository
  2. RTFACT-26825

Memory Leak and timeouts when using DevExpress NuGet Feed

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Done
    • Resolution: Done
    • Affects Version/s: 7.29.7, 7.31.10, 7.33.6
    • Fix Version/s: None
    • Component/s: NuGet
    • Labels:
      None
    • Severity:
      High
    • Location:
      External

      Description

      Problem description:

      Using a DevExpress NuGet feed as a remote repository in Artifactory can result in a memory leak.

       

      Steps to reproduce:

      1. Run Artifactory with low -Xmx value, e.g.: 4g (to reproduce the issue quickly)
      2. Add DevExpress Nuget Feed as a remote repository in Artifactory
      3. Execute GET api/nuget/nuget-remote/FindPackagesById()?id=%27DevExpress.Win%27&semVerLevel=2.0.0

       

      The observed behavior:

      1. Outgoing requests to the remote repo will be executed in an infinite loop by Artifactory, for example:

      2022-02-22T16:10:41.771Z|2b8b5e9897bc27d9|nuget-remote||GET|https://nuget.devexpress.com/xxx/api/FindPackagesById()?includePrerelease=false&$skip=1020630&id='DevExpress.Win'&includeAllVersions=false&semVerLevel=2.0.0|200|0|471613|257 

       

      2. One or more threads handling Nuget metadata sync will consume more and more Heap Memory until Artifactory JPD goes down.

       

      3. The installation of NuGet packages from this remote repository may fail due to timeouts.

       

      The expected behavior:

      1. Fix Memory Leak issue.
      2. Fix package resolution from a remote repository pointing to DevExpress Nuget Feed.

       

      Possible workaround:

      Add the system property below to $JFROG_HOME/artifactory/var/etc/artifactory/artifactory.system.properties file and restart Artifactory for changes to take effect:

       artifactory.nuget.v2.search.page.size=1000 

       

        Attachments

          Activity

              People

              Assignee:
              Unassigned
              Reporter:
              valeriyp Valeriy Petrov
              Votes:
              3 Vote for this issue
              Watchers:
              6 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:

                  Sync Status

                  Connection: RTFACT Sync
                  RTMID-26835 -
                  SYNCHRONIZED
                  • Last Sync Date: