Return-Path: Delivered-To: apmail-directory-users-archive@www.apache.org Received: (qmail 15878 invoked from network); 24 Feb 2011 16:33:04 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 24 Feb 2011 16:33:04 -0000 Received: (qmail 15600 invoked by uid 500); 24 Feb 2011 16:33:04 -0000 Delivered-To: apmail-directory-users-archive@directory.apache.org Received: (qmail 15388 invoked by uid 500); 24 Feb 2011 16:33:00 -0000 Mailing-List: contact users-help@directory.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@directory.apache.org Delivered-To: mailing list users@directory.apache.org Received: (qmail 15375 invoked by uid 99); 24 Feb 2011 16:32:59 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 24 Feb 2011 16:32:59 +0000 X-ASF-Spam-Status: No, hits=4.7 required=5.0 tests=FREEMAIL_FROM,FREEMAIL_REPLY,HTML_MESSAGE,RCVD_IN_DNSWL_NONE,RFC_ABUSE_POST,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of adodao@hotmail.de designates 65.54.190.149 as permitted sender) Received: from [65.54.190.149] (HELO bay0-omc3-s11.bay0.hotmail.com) (65.54.190.149) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 24 Feb 2011 16:32:49 +0000 Received: from BAY148-W13 ([65.54.190.189]) by bay0-omc3-s11.bay0.hotmail.com with Microsoft SMTPSVC(6.0.3790.4675); Thu, 24 Feb 2011 08:32:28 -0800 Message-ID: Content-Type: multipart/alternative; boundary="_aa2dc238-3011-403e-a1af-8884639da96b_" X-Originating-IP: [85.214.119.73] From: Ado Dao To: Subject: RE: How to close the LDAP client connection from ApacheDS Date: Thu, 24 Feb 2011 16:32:27 +0000 Importance: Normal In-Reply-To: <4D667369.5000007@gmail.com> References: ,<4D667369.5000007@gmail.com> MIME-Version: 1.0 X-OriginalArrivalTime: 24 Feb 2011 16:32:28.0034 (UTC) FILETIME=[6CE82620:01CBD440] X-Virus-Checked: Checked by ClamAV on apache.org --_aa2dc238-3011-403e-a1af-8884639da96b_ Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Hi=2C thanks for the quick reply.=20 > Date: Thu=2C 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 >=20 > On 2/24/11 3:24 PM=2C Ado Dao wrote: > > Hi=2C > > > > we have found following exception in the log file. A ware any known pro= blems. > > > > > > NioSocketAcceptor-1 WARN util.DefaultExceptionMonitor| Unexpected excep= tion. > > java.io.IOException: Too many open files > > at sun.nio.ch.ServerSocketChannelImpl.accept0(Native Method) > > at sun.nio.ch.ServerSocketChannelImpl.accept(ServerSocketChann= elImpl.java:145) > > at org.apache.mina.transport.socket.nio.NioSocketAcceptor.acce= pt(NioSocketAcceptor.java:217) > > at org.apache.mina.transport.socket.nio.NioSocketAcceptor.acce= pt(NioSocketAcceptor.java:48) > > at org.apache.mina.core.polling.AbstractPollingIoAcceptor$Acce= ptor.processHandles(AbstractPollingIoAcceptor.java:481) > > at org.apache.mina.core.polling.AbstractPollingIoAcceptor$Acce= ptor.run(AbstractPollingIoAcceptor.java:412) > > at org.apache.mina.util.NamePreservingRunnable.run(NamePreserv= ingRunnable.java:64) > > at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Thre= adPoolExecutor.java:886) > > at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPo= olExecutor.java:908) > > at java.lang.Thread.run(Thread.java:662) > > > > > > It looks like some ldap clients keep the connection to the apachds aliv= e. >=20 > Where are those log files coming from ? Which version of the application = ? We use=20 the ApacheDS 1.5.7 in an embedded version with a custom partition.=20 The log=20 files are from the log framework of ApacheDS. >=20 > Also not that if you are on linux=2C the default number of handles you ca= n=20 > open is 1000=2C which is far too low for a LDAP server=2C assuming you mi= ght=20 > have ten of thousands opened connections. Tune your system. I also agree you. But I suspect that the number of=20 open connections is steadily increasing=2C 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=2C the question whether there is an option for the server=2C which terminates such open connections after a timeout. -- Ado =20 = --_aa2dc238-3011-403e-a1af-8884639da96b_--