我在Ubuntu 14.04 LTS中获得了最新版本的typesafe激活器.我也有最新版本的Scala / SBT等.
当我启动Active Stocks应用程序时,我收到以下错误java.io.IOException:达到了inotify监视的用户限制.我不知道这是什么……
bravegag@zeus:~/code/activestocks$./activator
[info] Loading project definition from /home/bravegag/code/activestocks/project
[info] Set current project to reactive-stocks (in build file:/home/bravegag/code/activestocks/)
[reactive-stocks] $~run
java.io.IOException: User limit of inotify watches reached
at sun.nio.fs.LinuxWatchService$Poller.implRegister(LinuxWatchService.java:261)
at sun.nio.fs.AbstractPoller.processRequests(AbstractPoller.java:260)
at sun.nio.fs.LinuxWatchService$Poller.run(LinuxWatchService.java:326)
at java.lang.Thread.run(Thread.java:745)
[trace] Stack trace suppressed: run last compile:run for the full output.
[error] (compile:run) java.lang.reflect.InvocationTargetException
[error] Total time: 0 s,completed Nov 29,2014 4:57:15 PM
1. Waiting for source changes... (press enter to interrupt)
检查操作系统限制我看到:
bravegag@zeus:~$cat /proc/sys/fs/inotify/max_user_instances
128
bravegag@zeus:~$cat /proc/sys/fs/inotify/max_user_watches
8192
最佳答案
不是我的解决方案,但它总是很好地拥有它所属的anwser:
原文链接:https://www.f2er.com/linux/440385.html$sudo sysctl fs.inotify.max_user_watches=30000
将立即解决问题.
否则在/etc/sysctl.conf中设置值
只需添加fs.inotify.max_user_watches = 30000即可
(别忘了换行)
有关实际情况的参考资料可在此处找到:http://www.la-samhna.de/samhain/manual/finotify.html
之后,$activator运行像往常一样.