I am currently tracing cannot fork()
errors on my Ubuntu Server and I was able to pinpoint it to the pid.max
value of 700
under /sys/fs/cgroup/pids/
.
However, I can only able to set the values /system.slice/pids.max
and /user.slice/pids.max
- not pids.max
. Plus, these reset after reboot to the value max
which again enforces the global pids.max
value.
Is it possible to simply change the it from 700 to something higher? root
+ sudo
were of no help.
Is there another way to override this value?
After a long back and forth with my server hoster, they finally spilled the beans.
I was renting a V-Server with very beefy hardware for very little money. The catch? You can only run 700 concurrent tasks. That's where the pids.max value came from and overruled the TasksMax
and numprocs
values.