Uploaded image for project: 'Directory ApacheDS'
  1. Directory ApacheDS
  2. DIRSERVER-1620

Close Idle Connections after a certain timeframe has passed too prevent "Too many open files" error

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 1.5.7
    • 2.0.0-RC1
    • network
    • None
    • Unix

    Description

      Regarding the following post

      http://mail-archives.apache.org/mod_mbox/directory-users/201102.mbox/%3c4D668DED.6020707@gmail.com%3e

      ApacheDS keeps connections open (im not certain its just idle connections, there might be another issue). After a while the number of open connections will exceed the OS default setting (Too many open files).
      The default is mostly 1024 and can be increased - but it should not be necessary when you have less clients/users than that.

      I have a user base with 500 outlook clients - after a while the Too many open files error occurs. Using netstat i filtered the LDAP connections and saw that they increased per client IP each day (not all) - some had up to 5-10 connections per IP, in total there where however only 100 client IPs.

      I suggest that ApacheDS automatically cleans up idle or open connections after a while (timer task maybe?), it should also be aware of the current amount of open connections - in case a threshold is reached it should start cleaning up connections sooner.

      Attachments

        Activity

          People

            Unassigned Unassigned
            harakiri Steve
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: