redhat 9 max number of open files

From: jan terje tønnessen (jt-toenn_at_online.no)
Date: 05/28/05

  • Next message: Lew Bloch: "Re: Which Kernel to use, .EL or .ELsmp"
    To: redhat-list@redhat.com
    Date: 28 May 2005 23:37:09 +0200
    
    

    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@redhat.com?subject=unsubscribe
    https://www.redhat.com/mailman/listinfo/redhat-list
    

  • Next message: Lew Bloch: "Re: Which Kernel to use, .EL or .ELsmp"

    Relevant Pages

    • Re: [SLE] Permission Problem
      ... The problem was the number of open files limit. ... installed as root. ... >> running the installer as root one time, ... > Linux, have limits on the number of open files. ...
      (SuSE)
    • Re: [opensuse] Re: su problem/question
      ... It is not the typical behaviour of ls: if you have access to a directory, you can list it, and the symlinks and what the symlinks point to - I think. ... What you may not be able to do is to open files in that directory. ... it seems to mean the root directory of the filesystem... ...
      (SuSE)
    • kernel option to increase max open files
      ... like these in the sendmail log: ... So I figure I need to increase the max number of open files available. ... sendmail runs as). ... a login.conf class setting assigned to root. ...
      (freebsd-questions)
    • Re: Increasing the maximum number of open files
      ... J.L. Coenders wrote: ... > I have a program which tells me it needs more open files than the system can ... [root@asp5 root]# su - notes ... Rainer ...
      (Fedora)
    • Re: exiting chroot()
      ... > as root inside a chroot, it will escape and run a shell in the real ... It relies on the common property that open files outside the ... > new root remain open after a chroot call. ...
      (comp.unix.programmer)