Skip to content
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

A %temp% directory full of node_module garbage slows down the Windows User Profile service on logon #92

Open
luchsamapparat opened this issue Jun 9, 2021 · 3 comments
Assignees

Comments

@luchsamapparat
Copy link

Windows Build Number

Microsoft Windows NT 10.0.19043.0

Processor Architecture

AMD64

Memory

31.8 GB

Storage Type, free / capacity

804 / 952 GB

Relevant apps installed

NodeJS v14.16.1

Traces collected via Feedback Hub

Sorry, but I already spent enough time investigating this issue. See issue description

Isssue description

Some npm package created 547,852 files in my user profile temp directory, amounting to 2.81 GB in total. This caused the Windows login to slow down from a few seconds to several minutes. Investigating the issue revealed, that the user profile service is causing the delay by somehow working through all these files in the temp directory:

image

image

A detailed description of the issues can be found in this bug report: nrwl/nx#5947

Steps to reproduce

  • have NodeJS installed
  • create an outdated Nx Workspace: npx create-nx-workspace@10 my-workspace
  • run ./node_modules/.bin/nx migrate latest in that workspace

this pollutes the temp directory with a lot of folders named tmp-{something}

Expected Behavior

Having a temp directory full of garbage should not slow down the windows login.

Actual Behavior

547,852 files amounting to 2.81 GB in total slows down the login process from seconds to minutes

@AvriMSFT AvriMSFT self-assigned this Jun 17, 2021
@AvriMSFT
Copy link
Contributor

Thanks for reporting the issue!
This is quite an interesting bug. Good news though- The filesystem and performance teams are investigating issues related to npm. I'll share this issue with the team and update the thread with any news.

@AdditionAddict
Copy link

Any news on this?

@spyro2000
Copy link

LOL, one year of silence after the "Good news". MS keeping on doing MS things. Developing on Windows is more and more getting from many minor issues to a real nightmare. I am the only Dev left using Windows in my team and will migrate to Linux/OSX on my next machine, too.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants