how to increase the max open files of nginx master process
Hi All,
I know there is a config called: worker_rlimit_nofile which could change the max open files of nginx worker, but how to increase the master's ?
# ulimit -a
core file size (blocks, -c) 0
data seg size (kbytes, -d) unlimited
scheduling priority (-e) 0
file size (blocks, -f) unlimited
pending signals (-i) 773092
max locked memory (kbytes, -l) 64
max memory size (kbytes, -m) unlimited
open files (-n) 65535
pipe size (512 bytes, -p) 8
POSIX message queues (bytes, -q) 819200
real-time priority (-r) 0
stack size (kbytes, -s) 8192
cpu time (seconds, -t) unlimited
max user processes (-u) 773092
virtual memory (kbytes, -v) unlimited
file locks (-x) unlimited
nginx version:
/usr/local/nginx/sbin/nginx -v
nginx version: nginx/1.4.4
OS:
14.04.3 LTS, Trusty Tahr
worker config:
worker_rlimit_nofile 20480;
/proc/8389/limits:
Max open files 1024 4096 files
8389 is the master process id.
Nginx is not managed by Systemd, systemV instead.
Thank you in advance
|