directory-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ado Dao <ado...@hotmail.de>
Subject RE: How to close the LDAP client connection from ApacheDS
Date Thu, 24 Feb 2011 16:32:27 GMT

Hi,

thanks for the quick reply. 


> Date: Thu, 24 Feb 2011 16:04:09 +0100
> From: elecharny@gmail.com
> To: users@directory.apache.org
> Subject: Re: How to close the LDAP client connection from ApacheDS
> 
> 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 ?


We use 
the ApacheDS
  1.5.7 in an embedded version with
 a custom partition. 
The log 
files are from the log
 framework of ApacheDS.





> 
> 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.


I also agree you. But I
 suspect that the number of 
open connections is steadily increasing, because
 the error occurred after several days. After a
 restart the ldap server it was OK.

It looks like some
 clients do not terminate
 the connection. Therefore, the
 question whether there is
 an option for the
 server, which terminates such
 open connections after a timeout.



--
Ado

 
 		 	   		  
Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message