Return-Path: Delivered-To: apmail-abdera-dev-archive@www.apache.org Received: (qmail 65278 invoked from network); 16 Jun 2009 04:09:08 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 16 Jun 2009 04:09:08 -0000 Received: (qmail 46352 invoked by uid 500); 16 Jun 2009 04:09:19 -0000 Delivered-To: apmail-abdera-dev-archive@abdera.apache.org Received: (qmail 46280 invoked by uid 500); 16 Jun 2009 04:09:18 -0000 Mailing-List: contact dev-help@abdera.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@abdera.apache.org Delivered-To: mailing list dev@abdera.apache.org Received: (qmail 46270 invoked by uid 99); 16 Jun 2009 04:09:18 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 16 Jun 2009 04:09:18 +0000 X-ASF-Spam-Status: No, hits=2.2 required=10.0 tests=HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of kalanir@gmail.com designates 74.125.92.25 as permitted sender) Received: from [74.125.92.25] (HELO qw-out-2122.google.com) (74.125.92.25) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 16 Jun 2009 04:09:10 +0000 Received: by qw-out-2122.google.com with SMTP id 9so2254706qwb.51 for ; Mon, 15 Jun 2009 21:08:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:content-type; bh=I+Xw2Aituu2UaiSlmBAMhwZFV5Vv6KYJfGV7PS950Xg=; b=G1FYufcFFKaa/yZN7KdenVEluw6VyvNwJevTvEgk7gdKoguXrV7YeBvuhcG6hSZt5d buBeChV/RbtnEMdbwPTP+JOLmJAdLPI1/7XiIF5eJlf9rLFLOHIocNmRzRUO8Djk/l66 LMgvFxeUUI1JZLwYIHQYqdLnpRDlt0t6wlJ6U= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; b=EB0309LNI33iStQZSqlnr3/1fMCLTIQ8PBZJxB2v27EyttgY1Mc3BfCoCJ/qsJjQf1 XCQBYCP7a9c+jmX329SIkoQuhr2AFAQWF+CDlofzgck2eWi8vzGFckgHW6PGtuVekV0g G+1NrQ+49PDnzG7JDlF1uS46MwEYoVddaH8tc= MIME-Version: 1.0 Received: by 10.229.99.146 with SMTP id u18mr1478146qcn.97.1245125329746; Mon, 15 Jun 2009 21:08:49 -0700 (PDT) In-Reply-To: <58e502250906151237k20557978s46e205151bdadb83@mail.gmail.com> References: <5816fbdd0906150446y169e82bcn133c13e27c84a569@mail.gmail.com> <58e502250906151237k20557978s46e205151bdadb83@mail.gmail.com> Date: Tue, 16 Jun 2009 09:38:49 +0530 Message-ID: <5816fbdd0906152108y5b8c246fy64e0c9def78082aa@mail.gmail.com> Subject: Re: Error when running Abdera client concurrently From: Kalani Ruwanpathirana To: dev@abdera.apache.org Content-Type: multipart/alternative; boundary=0016364eed74faf9eb046c6f5446 X-Virus-Checked: Checked by ClamAV on apache.org --0016364eed74faf9eb046c6f5446 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Hi Deepal, Thanks for the reply. No I am running it on Linux. I doubt whether I am using Abdera client in the correct way. I have tried several routes but the same error occurs. Thanks, Kalani. On Tue, Jun 16, 2009 at 1:07 AM, Deepal Jayasinghe wrote: > I believe you are running this on windows? can it start all threads or > is it stop while it is starting few threads? > In windows you have this problem, even if you close the socket, it > takes few seconds to release the connection. One thing you could do is > try with Linux and see what happen. This is not just Abdera specific > issue, as I know most of the Java on Windows has this. > > Deepal > > On Mon, Jun 15, 2009 at 7:46 AM, Kalani Ruwanpathirana > wrote: > > Hi, > > > > I use Abdera client to make several requests to the back end and I am > > running the program concurrently using 100 threads. Then I get the > following > > error after completing the execution of several threads. > > > > java.net.SocketException: Too many open files > > at java.net.PlainSocketImpl.socketAccept(Native Method) > > at java.net.PlainSocketImpl.accept(PlainSocketImpl.java:384) > > at java.net.ServerSocket.implAccept(ServerSocket.java:450) > > at > > > com.sun.net.ssl.internal.ssl.SSLServerSocketImpl.accept(SSLServerSocketImpl.java:259) > > at > > > org.apache.tomcat.util.net.jsse.JSSESocketFactory.acceptSocket(JSSESocketFactory.java:111) > > at > > > org.apache.tomcat.util.net.PoolTcpEndpoint.acceptSocket(PoolTcpEndpoint.java:408) > > at > > > org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:71) > > at > > > org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:685) > > at java.lang.Thread.run(Thread.java:595) > > > > I tried using a new AbderaClient instance per each request with > teardown() > > and sharing only one AbderaClient instance among all requests too. Still > > getting the same error. Can someone give an idea on this please? > > > > Thanks, > > Kalani. > > > > -- > > Kalani Ruwanpathirana > > Department of Computer Science & Engineering > > University of Moratuwa > > > -- Kalani Ruwanpathirana Department of Computer Science & Engineering University of Moratuwa --0016364eed74faf9eb046c6f5446--