RE: redhat 9 max number of open files

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



There are two limits: max open files per system [file-max] and max open files per process [nofile configured via limits.conf. In fact, there are two limits - soft and hard. As far as I remember, each user can increase his limit up to hard limit.]. As far as I remember, limits.conf doesn't limit root user.

Links:
http://www-106.ibm.com/developerworks/linux/library/l-adfly.html?ca=den-wud  Administer Linux on the fly (Use the /proc filesystem to get a handle on your system


Rgds,
Vitaly
 

> -----Original Message-----
> From: redhat-list-bounces@xxxxxxxxxx 
> [mailto:redhat-list-bounces@xxxxxxxxxx] On Behalf Of jan 
> terje tønnessen
> Sent: Sunday, May 29, 2005 12:37 AM
> To: redhat-list@xxxxxxxxxx
> Subject: redhat 9 max number of open files
> 
> Hi !
> I am running redhat 9 (2.4.20-8) and I have a problem with 
> max number of open files. I am running a database (mnesia) 
> which manages to open approx 1024 files. 
> I have tried different approaches to increase the limit of 
> open files but it does not work. I have tried changing:
> 
> /proc/sys/fs/file-max
> /etc/security/limits.conf
> ulimit -n
> 
> Today I run my process as root (but have also tested with 
> another user).
> Are 'root' treated special regarding the open-files limits ? 
> 
> cat /proc/sys/fs/file-max
> 131072
> 
> /etc/security/limits.conf
> *                soft    nofile          2048
> *                hard    nofile          63536
> 
> ulimit -a
> open files                    (-n) 2048
> 
> ls /proc/<mnesia-pid>/fd/ | wc -l    # gives approx 1024 
> 
> 
> 
> --
> redhat-list mailing list
> unsubscribe mailto:redhat-list-request@xxxxxxxxxx?subject=unsubscribe
> https://www.redhat.com/mailman/listinfo/redhat-list
> 
***********************************************************************************
Information contained in this email message is intended only for use of the individual or entity named above. If the reader of this message is not the intended recipient, or the employee or agent responsible to deliver it to the intended recipient, you are hereby notified that any dissemination, distribution or copying of this communication is strictly prohibited. If you have received this communication in error, please immediately notify the postmaster@xxxxxxx and destroy the original message.
***********************************************************************************

-- 
redhat-list mailing list
unsubscribe mailto:redhat-list-request@xxxxxxxxxx?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/redhat-list

[Index of Archives]     [CentOS]     [Kernel Development]     [PAM]     [Fedora Users]     [Red Hat Development]     [Big List of Linux Books]     [Linux Admin]     [Gimp]     [Asterisk PBX]     [Yosemite News]     [Red Hat Crash Utility]


  Powered by Linux