OSB and Ubuntu 10.04 - Too Many Open Files

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.

Comments:

Any recommendation on what should be the file descriptor limit for Production. We did receive the same error when we have 8192. All the weblogic servers were fine but on OSB we got Too Many Open Files. Still debating whether we need to increase the file descriptor limit or tune the applications. We have observed that when we use best effort for a route node that open non blocking threads that open too many files.

Should be discourage the developers not to use best effort at all ?

The problem is several fold any insight would be helpful.

Thanks,
PM

Posted by Pavan M on October 19, 2011 at 02:25 AM PDT #

As we can see, OSB makes extensive use of file handles. I don't have any guidance for tuning this particular feature in Linux at this time. As for using Best Effort, I think that's a decision that should be driven by the requirements of the application. Use it when necessary. Is there a drawback to increasing the number of file handles?

Posted by Jeff on October 19, 2011 at 05:37 AM PDT #

Post a Comment:
  • HTML Syntax: NOT allowed
About

A site for SOA thought and discussion.

Search

Archives
« April 2014
SunMonTueWedThuFriSat
  
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
   
       
Today