Ubuntu Hardy Eclipse too many open files

Followed this post and raised limits

To check maximum # fd in system

cat /proc/sys/fs/file-max

To count open fd for a process

lsof -p 460 | wc -l

460 is PID

To check shell level fd

ulimit -n

To change it

sudo gedit /etc/security/limits.conf

add

* soft nofile 65536
* hard nofile 65536
troy - nofile unlimited

sudo gedit /etc/pam.d/common-session

Then add the line:
session required pam_limits.so
Save the file logout and login to take affect

http://posidev.com/blog/2009/06/04/set-ulimit-parameters-on-ubuntu/

Comments

Popular posts from this blog

Sites, Newsletters, and Blogs

Oracle JDBC ReadTimeout QueryTimeout