I have long running process at Debian. At some point in throw an error "Too many open files".
open files (-n) 1024
I wish to increase number of open files in 2 times. After execution
ulimit -n 2048
the limit is active until end of my session, which is not applicable for the task.
How can I permanently increase number of open files?