OSB and Ubuntu 10.04 - Too Many Open Files

Posted by jeff.x.davies on Oracle Blogs See other posts from Oracle Blogs or by jeff.x.davies
Published on Wed, 09 Feb 2011 16:19:43 -0800 Indexed on 2011/02/10 7:30 UTC
Read the original article Hit count: 319

Filed under:
|

When installing the latest Oracle Service Bus (11gR1PS3) onto my Ubuntu 10.04 system, the Eclipse IDE was complaining about there being too many open files. The Oracle Service Bus and the Oracle Enterprise Pack for Eclipse (aka OEPE) do make use of ALOT of files. By default, Ubuntu will restrict each user to 1024 open files. A much more realistic number for OSB development is 4096.

Changing the file limit in Ubuntu is fairly simple (if arcane). You will need to modify two different files and then restart your server. First, you need to modify the limits.conf file as the root user. Open a terminal window and enter the following command:

sudo gedit /etc/security/limits.conf

Add the following 2 lines to the file. The asterisk simply means that the rule will apply to all users.

* soft nofile 4096
* hard nofile 4096

Save your changes and close gedit.

The second file to change is the common-session file. Use the following command:

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

Add the following line:

session required pam_limits.so

Save the file and exit gedit. Restart your machine. You shouldn't have any more problems with too many open files anymore.

© Oracle Blogs or respective owner

Related posts about Developer

Related posts about Ubuntu file OSB