intellij-idea - 如何在 Ubuntu 的 IntelliJ 项目中修复这些警告 "External file changes sync may be slow"和 "The current inotify(7) watch limit is too low"

标签 intellij-idea jetbrains-ide intellij-14

当我打开我的项目时,我在 IntelliJ IDEA 中收到两条警告消息。

1. IntelliJ IDEA cannot receive filesystem event notifications
for the project. Is it on a network drive?

2. The current inotify(7) watch limit is too low.
注意:我使用的是 UBUNTU 20.04 LTS
Warnings Screenshot

最佳答案

正如在 this link 中分享的那样:
添加新的conf文件..

$ sudo touch /etc/sysctl.d/60-jetbrains.conf
打开文件并添加这些行
# Set inotify watch limit high enough for IntelliJ IDEA (PhpStorm, PyCharm, RubyMine, WebStorm).
# Create this file as /etc/sysctl.d/60-jetbrains.conf (Debian, Ubuntu), and
# run `sudo service procps start` or reboot.
# Source: https://confluence.jetbrains.com/display/IDEADEV/Inotify+Watches+Limit
# 
# More information resources:
# -$ man inotify # manpage
# -$ man sysctl.conf # manpage
# -$ cat /proc/sys/fs/inotify/max_user_watches # print current value in use

fs.inotify.max_user_watches = 524288
让我们重新启动系统
$ sudo sysctl -p --system

关于intellij-idea - 如何在 Ubuntu 的 IntelliJ 项目中修复这些警告 "External file changes sync may be slow"和 "The current inotify(7) watch limit is too low",我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/67927480/

相关文章:

intellij-idea - 如何查看项目中的所有错误

intellij-idea - 禁用所有意向灯泡 intellij 2016.1

python - PyCharm 5.0.1 不解析内置模块/方法

css - PyCharm CSS 编辑 : Disable auto-completion

intellij-idea - 导入 Maven 项目时 IntelliJ 14.1 太慢

jsp - 带有 Tomcat 的 Intellij IDEA HotSwap 适用于类,但不适用于 JSP

intellij-idea - IntelliJ IDE Spark 项目中的 Java.lang.ClassNotFoundException : oracle. jdbc.driver.OracleDriver

intellij-idea - IntelliJ 中的 "watches"是什么以及如何使用它们?

android - 设置 IntelliJ 以在 Galaxy S4 上测试 Android 应用程序

intellij-idea - 如何在 Kotlin 代码中使用 IntelliJ "Extract Parameter Object"?