ubuntu eclipse "too many open files"
ubuntuでeclipseをアップデートさせたら、"too many open files"って言われて起動しなくなりました。
いろいろ調べてみたけどいい方法が見つからない。
メッセージどおり、ファイルの同時オープンが多すぎってことなんだろうけど。
どうやらbashからは、ulimit -nで変更できるらしい。
dink@vaio-tz:~$ ulimit -n 1024 dink@vaio-tz:~$ ulimit -n 10240 bash: ulimit: open files: cannot modify limit: Operation not permitted dink@vaio-tz:~$
うーむ。
セキュリティー的に制限がかかってるらしく、/etc/security/limits.confを直したりしなきゃならないみたい。
https://bugs.launchpad.net/ubuntu/+source/pam/+bug/293573
* soft nofile 10240 * hard nofile 10240
ひとまず /etc/security/limits.conf に上記を記述、再起動したら動くようになりましたとさ。
具体的な数字は思いつかなかったんで適当。