Find the answer to your Linux question:
Results 1 to 2 of 2
default limitation umber 1024 set to all users following Code: [root@localhost ~]# tail /etc/security/limits.conf #* hard rss 10000 #@student hard nproc 20 #@faculty soft nproc 20 #@faculty hard nproc 50 ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined! ibelieveme's Avatar
    Join Date
    Apr 2011
    Posts
    30

    Linux increase the maximum number of open files question.


    default limitation umber 1024 set to all users following
    Code:
    [root@localhost ~]# tail /etc/security/limits.conf 
    #*               hard    rss             10000
    #@student        hard    nproc           20
    #@faculty        soft    nproc           20
    #@faculty        hard    nproc           50
    #ftp             hard    nproc           0
    #@student        -       maxlogins       4
    
    # End of file
    * soft nofile 1024
    * hard nofile 1024
    
    [root@localhost ~]# ulimit -n
    1024
    System-wide File Descriptors
    Code:
    [root@localhost ~]# cat /proc/sys/fs/file-max 
    228182
    Question: i checked the open files of php process to output 17541,i thin the limitation of ulimit.conf is per unique user,but it was failure ,i don't know where the issue .need you help Thanks.
    Code:
    [root@localhost ~]# lsof -n|awk '{s+=gsub(/php-fpm/,"a")}END{print s}'
    17541

  2. #2
    Linux Enthusiast Mudgen's Avatar
    Join Date
    Feb 2007
    Location
    Virginia
    Posts
    664
    I've read this several times, and I really can't understand what you're asking.

    It sounds as though you may be construing limits.conf to set aggregate limits per user. This file is taken into account by pam_limits. Per the pam_limits manpage, it sets limits per user _session_:

    The pam_limits PAM module sets limits on the system resources that can
    be obtained in a user-session.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •