Get the most out of your Centmin Mod LEMP stack
Become a Member

fs.file-max limited by nginx soft nofile

Discussion in 'Centmin Mod Insights' started by pamamolf, Oct 12, 2014.

Tags:
  1. pamamolf

    pamamolf Premium Member Premium Member

    4,068
    427
    83
    May 31, 2014
    Ratings:
    +832
    Local Time:
    3:56 PM
    Nginx-1.25.x
    MariaDB 10.3.x
    Hi


    If i am not wrong the fs.file-max=1600000 is limited by nginx soft nofile 262144 or not?

    Can you please provide more info as all values on the net that i found is about 65000 for both...

    Thanks
     
  2. eva2000

    eva2000 Administrator Staff Member

    53,178
    12,112
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,647
    Local Time:
    10:56 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
  3. rdan

    rdan Well-Known Member

    5,439
    1,397
    113
    May 25, 2014
    Ratings:
    +2,186
    Local Time:
    8:56 PM
    Mainline
    10.2
    How to display maximum number of open file descriptors for user "nginx" ?
     
  4. eva2000

    eva2000 Administrator Staff Member

    53,178
    12,112
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,647
    Local Time:
    10:56 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    Code:
    su - nginx -s /bin/bash -c "ulimit -aH"
    
    core file size          (blocks, -c) unlimited
    data seg size           (kbytes, -d) unlimited
    scheduling priority             (-e) 0
    file size               (blocks, -f) unlimited
    pending signals                 (-i) 255971
    max locked memory       (kbytes, -l) 64
    max memory size         (kbytes, -m) unlimited
    open files                      (-n) 262144
    pipe size            (512 bytes, -p) 8
    POSIX message queues     (bytes, -q) 819200
    real-time priority              (-r) 0
    stack size              (kbytes, -s) unlimited
    cpu time               (seconds, -t) unlimited
    max user processes              (-u) 16384
    virtual memory          (kbytes, -v) unlimited
    file locks                      (-x) unlimited