exec: sysctl fs.file-max +

Useful when you compare the number of worker connections in #nginx with the number of file descriptors in Redhat/CentOS.

# sysctl fs.file-max
fs.file-max = 203548 (default value on a 64bits OS)

The nginx worker connections consume only about 200 bytes of memory per connection, so setting something like 16384 isn’t a big deal.

Related Entries

Leave a Reply