LXD-Container eating up many pids

I’m running a vserver and it limits me to 1300 pids. Now I want to run my services in LXD-Containers to get additional layer of security. What are ways to circumvent creating many pids? I already found out that using Debian image instead of Ubuntu saves some. Does anyone have more ideas on how to save pids? Thank you a lot!

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

Hello cemzafer,

I don’t want to limit the containers. My problem is that my host is limited by my provider. So on my host I have (which I cannot change even with root)

cat /sys/fs/cgroup/pids/pids.max

Now what I want to do is setting up containers that are very lightweight so as to not reach the global limit.