-
-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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
Error: EMFILE: too many open files (ulimit does not work on Windows 10) #2090
Comments
Same error, anyone can fix it? |
Hey @yangg, I just keep running Obviously this is not ideal as the issue still persists. Would be nice if someone could suggest a solution! |
@8ctopotamus I'm running hexo on Windows 7 (this PC has a bad performance) |
I have same problem under windows bash which I described here microsoft/WSL#1126 Is there any workaround or fix? |
Same problem on Windows 10 :( |
Any update on this? I still have to run |
Same here. Tried I fixed it by removing my own |
updates? this is really annoying.. |
This happens because hexo is watching ALL files in sub folders. If you're using grunt, gulp in your theme there are thousands of files and hexo doesn't ignore then. The only workaround is currently to keep your node_modules outside the hexo root and create a gulp task which copy the files to theme folder. |
Agree with you. This was the first thing I did when I saw this error. Anyway. I couldn't make my theme work without node_modules because it required some files. Probably there's an issue with the theme itself (tranquilpeak) but shouldn't hexo avoid to check folders like node_modules, bower_components, etc? maybe making this configurable. |
I seem to find out how to exclude some directories from the targets of watch(). Could you please try following patch?
Please check Of course, I will make targets configurable when I make a pull request. Thank you in advance for your cooperation. |
Sure! I have hexo 3.2.0 I applied the .2 patch, but unfortunately, it still not works.
|
Could you taste my new patch? The patch which I wrote in above comment is not enough. I make new patch to turn-off readdir()/watch() for specified directories. And also you can configure which directores are ignored.
At this time, you can not use glob expressions, My repository is: The branch is: Please checkout the p.s. When you execute |
In addition, if you are not familiar with
These links point my commit For example,
And also you can recover these files:
|
I'm ok with git ;) Anyway, with the 2 files patched, seems to be working, and hexo serves also much much faster this way. |
@seaoak I would love to see this solved in official hexo, can you try to make a pull request? |
Thanks for your request! Before I make a pull request, I should make test cases for the patch. I'm sorry for the delay, but I'll make a pull request. 😉 |
@seaoak thanks for your active contribution. I have invited you to join Hexo as a collaborator. 😃 |
@seaoak Sorry for my bad memory, did this issue fix? |
Closing as resolved: #3797 |
In the Hexo troubleshooting guide they say to try
...but this does not work on Windows.
Environment Info
Node version
My site
_config.yml
My theme
_config.yml
Plugin version(
npm ls --depth 0
)For BUG
This is what happens when I do "hexo serve --debug"
The text was updated successfully, but these errors were encountered: