Close Idle Connections after a certain timeframe has passed too prevent "Too
many open files" error
---------------------------------------------------------------------------------------------------
Key: DIRSERVER-1620
URL: https://issues.apache.org/jira/browse/DIRSERVER-1620
Project: Directory ApacheDS
Issue Type: Bug
Components: ldap
Affects Versions: 1.5.7
Environment: Unix
Reporter: Steve
Regarding the following post
http://mail-archives.apache.org/mod_mbox/directory-users/201102.mbox/%[email protected]%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.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira