I’m having a hard time figuring out why slapd is using so much memory (around 800 MB) in an LXC container.
I’m relying on Ubuntu 17.10 :
I tried installing slapd on the following images :
The problem is present in both Ubuntu images but only in the Stretch one.
Indeed in the Jessie image slapd is consuming around 45 MB of memory, which sounds correct.
All i’m doing is just launching the image and then “apt install slapd”, then look at memory consumption.
There was the exact same bug on Docker : https://github.com/moby/moby/issues/8231
and https://github.com/dinkel/docker-openldap/blob/master/entrypoint.sh (look at the 3 first lines)
So i tried playing with the umits but this changes nothing, as the ulimit -n is already set at 1024.
Does anyone have an idea how i can have a workaround for this ?
Installing slapd in Jessie container now is not really “future-proof”.