I spoke with IntelliJ support. They suggested that part 2, which I mentioned, did not enter into force. I have done the following steps:
1) sudo vi / etc / security / limits.conf and add these lines (take a backup too):
* soft nofile 380180 * hard nofile 380180
2) sudo vi / etc / pam.d / common-session add this line (take a backup too):
session required pam_limits.so
3) sudo vi / etc / pam.d / common-session-noninteractive add this line (take a backup too):
session required pam_limits.so
4) Restart your computer
5) Confirm this by running this command, you should see this result
~$ ulimit -n 380180
After that, I re-opened my large project, and since then I have not seen the message "too many files."
source share