Nginx

nginx core module: worker_rlimit_nofile

Configuration file:	nginx.conf
Block:  		main
Value type:		number
Default:		none - system determined (see notes section below)
What it does: 		sets the value for the maximum file descriptors 
			that can be opened by a single worker process
Example: 		worker_rlimit_nofile 1024;

NOTES:

When any program opens a file, the operating system (OS) returns a file descriptor (FD) that corresponds to that file. The program will refer to that FD in order to process the file. The limit for the maximum FDs on the server is usually set by the OS. To determine what the FD limits are on your server use the commands ‘ulimit -Hn’ and ‘ulimit -Sn’ which will give you the per user hard and soft file limits. To determine the maximum number of FDs available, use the command ‘sysctl fs.file-max’ or ‘cat /proc/sys/fs/file-max’.