Archive for the ‘LDAP’ Category

Errno 24: Too many open files

Sunday, August 19th, 2007

During a load test one day, we started getting the error “Too many open files” in our logs. Well, to be exact, we received a lot of errors that seemed unrelated, however, just before the spew of errors there was one slapd error that stated “Too many open files.” Turns out that each shell has a limited number of filehandles available to applications running within that session. To resolve it, we used the “ulimit” command within *NIX to increase the number of handles, and restarted slapd.

  1. Stopped LDAP (slapd)
  2. Executed “ulimit -a” to view current limit
  3. Executed “ulimit -n <number>” to increase the limit
  4. Restarted LDAP (slapd)

After doing that, our load tests ran smoothly.