Olf
Olf

Reputation: 374

Limit the number of threads for one java command

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.

Upvotes: 1

Views: 1154

Answers (1)

Olf
Olf

Reputation: 374

Looks like prlimit -u is what I was looking for.

Upvotes: 2

Related Questions