I have to run several java program that I can't edit (student programs).
I would like to set a limit on the number of threads such program can create (otherwise, they can fill my server with lot of threads). I didn't find a solution so far.
ulimit -T
seems not implemented on debian.
I'm also OK if there is a solution to limit the number of threads of a specific user.
Looks like prlimit -u
is what I was looking for.