java - IntelliJ too many files open error -
java - IntelliJ too many files open error -
in intellij thought 13.1.5 on ubuntu 14.04 lts see occasional error in big projects says "too many files open". interestingly, refuses go away , freezes ide completely. i've tried next things prepare it.
1) modify /etc/sysctl.conf have line shown in article here. made error less frequent:
fs.inotify.max_user_watches = 524288 fs.file-max = 380180
2) raise ulimit -n setting on intellij process 64k. don't notice difference in performance this, article mentioned above claims help.
3) add together idea64.vmoptions file (helps speed of indexing, not problem)
-xms128m -xmx8192m -xx:maxpermsize=1024m
has else seen error , have other suggestions of can prepare it?
i've considering asking intellij support, i've found need go , forth them few times before helpful answer. advice community on appreciated.
i spoke intellij support. suggested part 2 mentioned not taking effect. tried these steps:
1) sudo vi /etc/security/limits.conf , add together these lines (take backup too):
* soft nofile 380180 * hard nofile 380180
2) sudo vi /etc/pam.d/common-session add together line (take backup too):
session required pam_limits.so
3) sudo vi /etc/pam.d/common-session-noninteractive add together line (take backup too):
session required pam_limits.so
4) reboot machine
5) confirm took effect running command, should see result
~$ ulimit -n 380180
i reopened big project after , haven't seen "too many files open" message since then.
java performance ubuntu intellij-idea ide
Comments
Post a Comment