gravityblast/fresh

too many open files issue

Closed this issue ยท 7 comments

i always face this issue when i run this command

"inotify_init: too many open files"

any suggestions ?

Your OS is limiting the number of files you can watch at the same time. How you increase that limit depends on your OS.

@dev-ahmed how many files do you have? this commit fixed it with a number up to 10000 f6e0ef3

@c2h5oh am using Ubuntu 15.10 , what are the procedures to increase this limit ?

I run in similar issue

What I did

I increased fs.inotify.max_user_instances = 1024 in /etc/sysctl.conf, my value was 128

If option fs.inotify.max_user_instances is not defined in /etc/sysctl.conf you simply add it

after you change your /etc/sysctl.conf

run commands:

$ sudo sysctl -p
$ sudo sysctl -a

this should fix your problem

use runner.conf to ignore some fold

@pilu @aaudis The solution for increasing the fs.inotify.max_user_instances = 1024 in /etc/sysctl.conf.
Only works for temporary, this will happen again after several changes I have made with the file.

In my cases I change the _examples/traffic/main.go for several times and the error | 10:23:35 app | inotify_init: too many open files shows again.

it seems that we need to limit the file watcher, but I'm not sure. I'm using Ubuntu 16.04

for me just creating a fresh.conf in root folder:

root:              ./
tmp_path:          ./tmp
build_name:        api
valid_ext:         .go, .tpl, .tmpl, .html
no_rebuild_ext:    .tpl, .tmpl, .html
ignored:           ./vendor, tmp
build_delay:       600
colors:            1