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 Well-Known Member

    2,836
    254
    83
    May 31, 2014
    Ratings:
    +450
    Local Time:
    10:48 AM
    Nginx-1.13.x
    MariaDB 10.1.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

    31,022
    6,925
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,431
    Local Time:
    6:48 PM
    Nginx 1.13.x
    MariaDB 5.5
    • Like Like x 1
  3. RoldanLT

    RoldanLT Well-Known Member

    3,981
    966
    113
    May 25, 2014
    Phillipines
    Ratings:
    +1,331
    Local Time:
    4:48 PM
    1.11
    10.2
    How to display maximum number of open file descriptors for user "nginx" ?
     
  4. eva2000

    eva2000 Administrator Staff Member

    31,022
    6,925
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,431
    Local Time:
    6:48 PM
    Nginx 1.13.x
    MariaDB 5.5
    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
     
    • Informative Informative x 1