我在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] $~runjava.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 PM1. Waiting for source changes... (press enter to interrupt)
检查 *** 作系统限制我看到:
bravegag@zeus:~$cat /proc/sys/fs/inotify/max_user_instances128bravegag@zeus:~$cat /proc/sys/fs/inotify/max_user_watches8192
最佳答案不是我的解决方案,但它总是很好地拥有它所属的anwser:$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运行像往常一样.
总结以上是内存溢出为你收集整理的linux – Activator Active Stocks启动应用程序无法使用java.io.IOException运行?全部内容,希望文章能够帮你解决linux – Activator Active Stocks启动应用程序无法使用java.io.IOException运行?所遇到的程序开发问题。
如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)