Skip to content
This repository has been archived by the owner on Apr 29, 2021. It is now read-only.

EMFILE open error when executing grunt #168

Closed
hermwong opened this issue Aug 26, 2014 · 6 comments
Closed

EMFILE open error when executing grunt #168

hermwong opened this issue Aug 26, 2014 · 6 comments
Assignees
Labels

Comments

@hermwong
Copy link
Collaborator

screen shot 2014-08-26 at 1 33 27 pm

@hermwong
Copy link
Collaborator Author

Issue seems to be caused by the grunt or node js having too many files open.

Some possible solutions are:
gruntjs/grunt#788
http://blog.izs.me/post/56827866110/wtf-is-emfile-and-why-does-it-happen-to-me

@mwbrooks
Copy link
Collaborator

Have you tried restarting your system or increasing the number of file descriptors?

http://stackoverflow.com/questions/8965606/node-and-error-emfile-too-many-open-files

@hermwong
Copy link
Collaborator Author

@mwbrooks I tried restarting & also increasing the number file descriptors but encountered the same issue.

Going to see if modifying my .bash_profile with a higher ulimit will resolve the issue.

@hermwong
Copy link
Collaborator Author

by adding this ulimit -n 10240 to my .bash_profile seemed to do the trick.

@hermwong
Copy link
Collaborator Author

If your computer doesn't have a .bash_profile in your home folder follow these instructions:

  1. Open Terminal
  2. Type cd ~/ to go to your home folder
  3. Type touch .bash_profile to create your new file.
  4. Edit .bash_profile with your favorite editor (I used TextEdit).
  5. Add the following into your .bash_profile, ulimit -n 10240.
  6. Type . ~/.bash_profile to reload your updated.bash_profile

@Baozi926
Copy link

Baozi926 commented Jan 4, 2019

I hava the same problom on windows, is there a solution?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Development

No branches or pull requests

3 participants