openldap server using a lot memory
#1
Tue, 2015-10-06 23:04
Noodle
-
- Offline
- 1 year 10 months ago
- 2015-10-06
Hi Forum,
I'm using Alpine linux as base image for docker containers. So I create an alpine based openldap server container. Everything looks fine. However, slapd process used a lot memory.
The original openldap server on my centos 7 use about 5M during startup. slapd in alpine container use over 250M. If I set "-m 75m" on container for example, slapd killed because of oom.
So, I tried to install openldap and launch it without any modification, it still need a lot memory.
What could be the problem?
Thanks
Noodle
Found solution, it's docker and openldap issue. Same issue with centos or ubuntu based openldap server.
The fix is: when run container, give option: --ulimit nofile=1024:1024