directory-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Emmanuel Lecharny <elecha...@gmail.com>
Subject Re: How to close the LDAP client connection from ApacheDS
Date Thu, 24 Feb 2011 15:04:09 GMT
On 2/24/11 3:24 PM, Ado Dao wrote:
> Hi,
>
> we have found following exception in the log file. A ware any known problems.
>
>
> NioSocketAcceptor-1 WARN util.DefaultExceptionMonitor| Unexpected exception.
> java.io.IOException: Too many open files
>          at sun.nio.ch.ServerSocketChannelImpl.accept0(Native Method)
>          at sun.nio.ch.ServerSocketChannelImpl.accept(ServerSocketChannelImpl.java:145)
>          at org.apache.mina.transport.socket.nio.NioSocketAcceptor.accept(NioSocketAcceptor.java:217)
>          at org.apache.mina.transport.socket.nio.NioSocketAcceptor.accept(NioSocketAcceptor.java:48)
>          at org.apache.mina.core.polling.AbstractPollingIoAcceptor$Acceptor.processHandles(AbstractPollingIoAcceptor.java:481)
>          at org.apache.mina.core.polling.AbstractPollingIoAcceptor$Acceptor.run(AbstractPollingIoAcceptor.java:412)
>          at org.apache.mina.util.NamePreservingRunnable.run(NamePreservingRunnable.java:64)
>          at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
>          at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
>          at java.lang.Thread.run(Thread.java:662)
>
>
> It looks like some ldap clients keep the connection to the apachds alive.

Where are those log files coming from ? Which version of the application ?

Also not that if you are on linux, the default number of handles you can 
open is 1000, which is far too low for a LDAP server, assuming you might 
have ten of thousands opened connections. Tune your system.


-- 
Regards,
Cordialement,
Emmanuel L├ęcharny
www.iktek.com


Mime
View raw message