Skip to content

openldap-server buckles under load due to file descriptor limit #181

Description

@bahamat

http://www.openldap.org/faq/data/cache/1126.html

OpenLDAP has a hard coded limit limit of 4096 file descriptors. Documentation suggests using the following compile time flag:

env CPPFLAGS="-DOPENLDAP_FD_SETSIZE=8192" ./configure

This should (based on what I'm reading) work at least as far back as 2.2.30. Older versions may need to use the following instead.

env CPPFLAGS="-DFD_SETSIZE=8192" ./configure

Activity

  1. bahamat commented on Mar 16, 2019

    @bahamat
    Author

    I need this back ported to 2017Q4.

  2. jperkin commented on Apr 30, 2019

    @jperkin
    Collaborator

    Can I confirm this is with the x86_64 set? The code appears to be written such that it ignores the operating system default (which in our case would be 64k and plenty), but it's hard to tell as it depends on include ordering.

  3. self-assigned this
    on Apr 30, 2019
  4. jperkin commented on May 2, 2019

    @jperkin
    Collaborator

    Fixed in NetBSD@01a9f8b, will backport to 2017Q4.

  5. jperkin commented on May 3, 2019

    @jperkin
    Collaborator

    openldap-client-2.4.45nb1 is now available for 2017Q4 x86_64.

  6. bahamat commented on May 3, 2019

    @bahamat
    Author

    What about openldap-server?

  7. jperkin commented on May 3, 2019

    @jperkin
    Collaborator

    The client package provides libldap, which the server links against.

  8. bahamat commented on May 3, 2019

    @bahamat
    Author

    OK, great. That should work.

    Thanks!

  9. added a commit that references this issue on Jul 1, 2019
  10. added a commit that references this issue on Aug 26, 2019
  11. added a commit that references this issue on Sep 2, 2019
  12. added a commit that references this issue on Feb 6, 2020
  13. 98 remaining items

  14. added a commit that references this issue on Sep 6, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions