So I'm trying to set the limit for nproc to 192276. This is the first time i've dealt with limits so i quickly found i thought you should change it in /etc/security/limits.conf. So i added the following to my conf file:
@group - nproc 192276
That didn't work so I tried to use soft
and hard
rather than -
and that didn't work either. I tried to set the user rather than a group. That didn't work either. I thought maybe I hit some of high limit so i tried 400 and that didn't work either.
I found the following post:
https://tecadmin.net/increase-open-files-limit-ubuntu/
which says you should change /etc/pam.d/common-session
to include session required pam_limits.so
which of course didn't work either.
I found another post:
https://superuser.com/questions/1200539/cannot-increase-open-file-limit-past-4096-ubuntu
There are a couple of threads that contradict one another. One talks about having to set both systemd & limits.conf because systemd is used for GUI & limits.conf is used for Non-GUI...well i'm not running a gui then there is another post in the thread that says limits.conf is never used and systemd. I hope thats not the case because id rather be more granular and set it at a group/user level rather than globally (assuming user.conf sets the soft limit & system.conf systems the hard limit).
Anyways I tried to set it to 192276 in the user.conf & system.conf files and it didn't work. So I tried to set it to 400 again which finally worked. Guys what the real story here. There is somewhat recent posts which talk about using limits.conf so I assume it should still be working.
What is going on here and what is the real story? I would prefer to set it at the user/group level than system wide.