Welcome to the Inedo Forums! Check out the Forums Guide for help getting started.

If you are experiencing any issues with the forum software, please visit the Contact Form on our website and let us know!

NPM - RAM consumption 5GB



  • Hi,
    I'm hosting ProGet server on IIS 7. I created NPM feed called dev_vpm and attached official NPM connector to it (https://registry.npmjs.org). If I open my NPM feed URL in browser. For example http://mydomain.com/npm/dev_npm immediatelly after that RAM consumption on server goes up to 5GB.

    Image Text

    I have to recycle application pool to go to normal RAM consumption which is around 600MB.

    Could you pls look at it if there is any kind of memory leak or so?

    Thanks a lot.

    Best regards,
    Tomas

    Product: ProGet
    Version: 4.3.1



  • We haven't heard any reports of this in the field, nor does this happen in our test labs.

    If you had a lot of expensive queries simultaneously hitting your ProGet server, then a high RAM usage is expected.

    Otherwise, if you could gather more information, using procmon or other perf monitoring tools, that would help to isolate what might be causing this on your setup.



  • There is almost no queries on ProGet server because there is only me who configure it so far. I will try to gather some details about it later.



  • I checked procmon but there is nothing strange in it. We are going to reinstall our server from Windows 2008 SP2 to Windows 2012 R2 so I will check it after.

    But now I would like to ask if ProGet IIS pool must run under Classic Managed Pipeline Mode. Becuase if I switch to Integrated I get HTTP 403 status.



  • Integrated Pipeline mode is not supported, and moreover, there are no advantages to running ProGet under this mode. It has no impact on memory, resource, etc.



  • So after reinstalling to Windows Server 2012 R2 problem still persists :( Only difference is that it does not address 5GB in RAM but only 1.5GB



  • I see that you are using NPM now (I must have missed that in the first question).

    High resource usage is routine with NPM because ProGet has to process a 1.5GB+ JSON file from npmjs.org, so, this will consume as many resources as Windows deems appropriate during this time. It's not a memory leak, it just consumes a ton of resources during process, and the resources will eventually be freed by the operating system.

    Note that this is a scheduled task, so you can adjust it as desired under Admin, but by default it’s scheduled overnight. It will also run the first time you add a connector.



  • Ok, thaks for info ;) I can confirm that after some time RAM consumption goes down again.



  • we experience mem usage on fresh filling of cache (20gb) with npm connector attached to a feed. once the cache is filled with all the dependencies usage is down to 2gb.



Inedo Website HomeSupport HomeCode of ConductForums GuideDocumentation