Is it possible to change the: - soft limit and - hard limit of a SPECIFIC process? In my case, my process is mongod and a lot of web resources tell me to simply write: ulimit -n in my Terminal.
But how will the terminal know that I want to modify only the limits for the mongod process? Do I need to write the command somewhere in particular?
Also, once the above question is solved, is it possible to increase the hard limit since I am assuming that the above command works for the soft limit only.
Thank you very much!