There are already answers to get the current maximum value. I would like to add that you can set this limit by making changes to /etc/security/limits.conf
sudo vi /etc/security/limits.conf
Then add this line to the end of this file
hard nproc 1000
You can raise this to any number you want -
nproc is the maximum number of processes that can exist simultaneously on a machine.
source share