-
Notifications
You must be signed in to change notification settings - Fork 253
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
dotnet-restore Too many open files on Mac #2004
Comments
Repro steps:
|
I hit this with basic HelloWeb sample on OS X 10.10.5 |
@muratg the temp work around helps (for now) .. ulimit -n 512 (found here: https://github.com/dotnet/cli/issues/809) |
Even on mono, I have to limit the number of threads per CPU or else the memory balloons up very quickly and uses up all 4GB of virtual memory my PC gives to each process. Does nuget keep files open for no reason? |
@julielerman Yup, thanks! I've been using the workaround. |
Confirms that ulimit -n 512 works as a workaround |
@zhili1208 checked in a fix and verified it |
@zhili1208 I am seeing this issue again on Mac. I am using the dotnet CLI version |
@zhili1208 Could you have a look? This was OK for a while, so not sure what the regression is. Perhaps CLI picked up an older build of nuget? |
went through all stream in NuGet, Did not find any leak, set the concurrency request number to 64, but it still doesn't work. need to look into this issue deeply.
The text was updated successfully, but these errors were encountered: