-
Notifications
You must be signed in to change notification settings - Fork 3.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[BUG] Too many parallel network connections open while installation #7272
Comments
Update:
It seems this was increased from Node 18 |
It seems maxsockets is also not being respected, setting this to a lower value like 10 or 1 didn't have any effect. |
I'm not sure if this is related, but we've seen some teams running into problems moving between versions of Node.js with npm 9 versus 10 and running out of file handles which sounds like it could be related. |
Thanks for the report, I will take a look at this. |
@lukekarrys check out #7072 which has been open since December. It might have some more insights. |
Thank you for the prompt response, let me know if I can do some help, even in testing and all. |
That would be much appreciated, I'm using Node LTS (v20.11.1), which is using NPM v10.2.4. Where this problem is still present, and causing a lot of issues during CI/CD pipelines. |
Imho, it's definitely related to |
@neelance commented something interesting in #7072
|
I added a workaround to #7072. |
Can we close this duplicate issue in favor of #7072? |
Duplicate of #7072 |
Is there an existing issue for this?
This issue exists in the latest npm version
Current Behavior
Hi,
For a project npm install opens nearly ~2100 connections in parallel, the same project installed via pnpm only takes about 18 concurrent connection.
This causes a huge bandwidth issue for our internal CI/CD pipelines.
Expected Behavior
Please provide a way to limit concurrent connection.
Steps To Reproduce
npm i
/pnpm i
in any project containing package.jsonwatch -n 0.2 "ss -tunap | wc -l"
- to monitor open connectionsEnvironment
10.2.4
v20.11.1
MacOS Sonoma 14.2.1 (23C71)
Macbook Pro
The text was updated successfully, but these errors were encountered: