LXD-Container eating up many pids

Hi Philipp,
If I understand you correctly, you are going to limit the user process, i suppose.
So please look at that link.
process limit
Regards.