Score:0

Permanently set the maximum number of open file descriptors for a specific user

br flag

I'm trying to set a higher maximum number of open files for the user influxdb on a VPS. These are the defaults:

# su - influxdb
# ulimit -Hn
1048576
# ulimit -Sn
1024

ulimit -n 10123 works, but doesn't persist after reboot.

I've edited /etc/security/limits.conf, added the two lines below, and rebooted.

influxdb soft nofile 10123
influxdb hard nofile 1048576

After reboot and su - influxdb, ulimit -Sn shows the old value, 1024.

This UNIX.SE question mentions a bug with setting this limit when using the graphical interface, but I'm logging into a VPS.

How can I increase that soft file limit, and persist the increase across reboots, or have the limit set after reboot but before services are started?

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.