修改_Inotify-Watches-Limit_提高idea性能
官网说明 For an intelligent IDE, it is essential to be in the know about any external changes in files it is working with - e.g. changes made by VCS, or build tools, or code generators etc. For that reaso
目录4 个章节
官网说明
For an intelligent IDE, it is essential to be in the know about any external changes in files it is working with - e.g. changes made by VCS, or build tools, or code generators etc. For that reason, IntelliJ platform spins background process to monitor such changes. The method it uses is platform-specific, and on Linux, it is the Inotify facility.
Inotify requires a "watch handle" to be set for each directory in the project. Unfortunately, the default limit of watch handles may not be enough for reasonably sized projects, and reaching the limit will force IntelliJ platform to fall back to recursive scans of directory trees.
To prevent this situation it is recommended to increase the watches limit (to, say, 512K)
大意就是说idea运行的时候有一个后台进程在不断的扫描项目文件夹里面是否有文件变动,这个技术在Linux系统上是使用 Inotify 特性实现的,但是Linux系统有一个 watch handle limit,简单说就是监视大小限制, 一般来说这个大小限制都比我们的项目所需要的小,所以idea就要经常主动去扫描项目目录,而不能利用系统特性,导致变卡。
解决这个问题的办法就是我们修改一下系统配置,提高这个限制的大小。
解决方法
Add the following line to either /etc/sysctl.conf file or a new *.conf file (e.g. idea.conf) under /etc/sysctl.d/ directory:
fs.inotify.max_user_watches = 524288Then run this command to apply the change:
sudo sysctl -p --system
官网说明
https://confluence.jetbrains.com/display/IDEADEV/Inotify+Watches+Limit
About

Learn more on my WeChat Official Account:DealiAxy Every post was in my blog:blog.deali.cn
_EOF_
修改_Inotify-Watches-Limit_提高idea性能
- 本文作者:
- 程序设计实验室
- 版权声明:
- 本博客所有文章除特别声明外,均采用 BY-NC-SA 许可协议。转载请注明出处!
相关文章
开源博客系统哪家强?到底要自己做还是GitHub见?
国人基于.NetCore + Vue开发的 后端:https://github.com/anjoy8/Blog.Core 前端:https://github.com/anjoy8/Blog.Vue 管理界面:https://github.com/anjoy8/Blog.Admin 外国的 https://github.com/blogifierdotnet/Blogifier
2022-02-04 · 杂七杂八 · 约 1 分钟
鸡哥无界14x的固件折腾
三线品牌的BIOS果然是草台班子,充电限制这种基础功能都能写错,还得靠刷Slimbook的固件来救。开源控制中心倒是不错,不过鸡哥这省钱省得,用户全成测试工程师了。
2026-08-13 · 杂七杂八 · 约 1 分钟
抓住九月小尾巴的小总结,祖国生日快乐~
为期一个月的实训到27号就结束了,我估摸着这夏天也快结束了,到处是秋天的味道。 这个月在广州还是以学习为主,在培训班能学到的很有限,不过我自己倒是折腾了不少东西出来,感觉还蛮好的。 技术学习方面 培训班也不能说没用吧,至少是前端扫盲了,在此基础上我自己又看了一下书,学了布局、动画和一点点js啊,js其实真的挺好用的,收回我之前的成见~(少见多怪) 还用js做了几个好玩的东西,比如说斗鱼、B站刷弹幕
2022-11-05 · 杂七杂八 · 约 1 分钟
苹果竟然给我发这种邮件?这是什么新骗局
今天突然收到一封邮件,说是我的Apple ID被锁了,要我点击链接登录解锁,一开始我是觉得挺烦的,上个月我的美区ID刚被锁了,折腾了很久联系了台湾的客服才给解锁的,现在我国区的ID也被锁了?苹果怕是药丸。 不过看这封邮件总觉得有什么不对劲的地方…… 你这apple单词的e好像不是英文字母吧,如果苹果公司发来的邮件会是这个?而且这发件的邮箱也不对啊,没见过这域名,苹果的难道不是apple.com吗?
2021-12-18 · 杂七杂八 · 约 1 分钟
讨论
共 0 条加载评论中…