RSS2.0

Number of open files per process in RHEL4 redhat Linux

Tuesday, April 04, 2006

In RHEL4 (redhat hat enterprise Linux 4 AS ) running kernel 2.6 the number of open files per process is still limited to 1024. you can do ulimit -a to see number of open files per user :

[root@firefox] /# ulimit -a

core file size (blocks) 1000000
data seg size (kbytes) unlimited
file size (blocks) unlimited
max memory size (kbytes) unlimited
stack size (kbytes) 8192
cpu time (seconds) unlimited
max user processes unlimited (1)
pipe size (512 bytes) 8
open files 1024
virtual memory (kbytes) 2105343


To Increases the system limit on open files for instance a process on change the number of open files for Oracle , IB DB2 databases in redhat enterprise Linux (RHEL4) :

#ulimit -n 90000

To make changes permanent add soft and hard limits in /etc/security/limits.conf file :

* soft nofile 90000
* hard nofile 90000

0 comments: