openldap server using a lot memory

2 posts / 0 new
Last post
#1 Tue, 2015-10-06 23:04
Noodle
  • Noodle's picture
  • Offline
  • Last seen: 1 year 10 months ago
  • Joined: 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

Wed, 2015-10-07 19:45
Noodle
  • Noodle's picture
  • Offline
  • Last seen: 1 year 10 months ago
  • Joined: 2015-10-06

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

Log in or register to post comments