加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 综合聚焦 > 服务器 > Linux > 正文

linux – Activator Active Stocks启动应用程序无法使用java.i

发布时间:2020-12-13 19:07:00 所属栏目:Linux 来源:网络整理
导读:我在Ubuntu 14.04 LTS中获得了最新版本的typesafe激活器.我也有最新版本的Scala / SBT等. 当我启动Active Stocks应用程序时,我收到以下错误java.io.IOException:达到了inotify监视的用户限制.我不知道这是什么 bravegag@zeus:~/code/activestocks$./activat

我在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:

$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运行像往常一样.

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读