-
-
Notifications
You must be signed in to change notification settings - Fork 9.5k
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
Memory leak and high cpu when using symlinks #4788
Comments
I suspect it might be related to my require.context:
since i will have a node_modules folder under |
Can we help in some way? It's not directly related to Storybook, but if you have some reproduction I will try to take a look. |
Hi, Awesome to hear. I will get something setup 22th of this month! It doesn't look like to be caused by the fact that the modules are symlinked but rather that node_modules gets scanned even though they are a part of the regex ignore |
Sorry for the delay - https://github.com/RuneKR/bad-performance I did come up with a solution, but i am keen to hear your thoughts! |
Will check this soon |
Thank you! |
Hi everyone! Seems like there hasn't been much going on in this issue lately. If there are still questions, comments, or bugs, please feel free to continue the discussion. Unfortunately, we don't have time to get to every issue. We are always open to contributions so please send us a pull request if you would like to help. Inactive issues will be closed after 30 days. Thanks! |
Hey there, it's me again! I am going close this issue to help our maintainers focus on the current development roadmap instead. If the issue mentioned is still a concern, please open a new ticket and mention this old one. Cheers and thanks for using Storybook! |
I am facing the same issue when using pnpm, pnpm uses symlinks for every dependency I think storybook recompiles the same package more than once because it is using the symlinked path to identify a module, it should instead use the real resolved path |
Or maybe the issue is |
@remorses there are a few possibly related PRs that just got merged into 6.1. does this fix the problem? https://github.com/storybookjs/storybook/pulls?q=is%3Apr+author%3Amerceyz+is%3Aclosed |
I found my issue to be related to webpack watch and babel transpile. I had to ignore the node module folders in the symlinked paths manually:
|
I resolved my issue by making Compiled modules went from 20k to 6k |
Describe the bug
Memory leak and high cpu when using symlinks
To Reproduce
I am using storybook v3.4.11. I can provide an example repo on request.
I have a monorepo setup:
Expected behavior
When i use symlinks the CPU goes to 99% and uses more than 2 GB of memory! Removing the symlinks and running start-storybook will result in normal behavior of 30 % cpu and 500 MB of memory.
System:
The text was updated successfully, but these errors were encountered: