Return-Path: X-Original-To: apmail-ant-user-archive@www.apache.org Delivered-To: apmail-ant-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 62536103FD for ; Tue, 10 Dec 2013 10:44:11 +0000 (UTC) Received: (qmail 13753 invoked by uid 500); 10 Dec 2013 10:44:10 -0000 Delivered-To: apmail-ant-user-archive@ant.apache.org Received: (qmail 13683 invoked by uid 500); 10 Dec 2013 10:44:03 -0000 Mailing-List: contact user-help@ant.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Ant Users List" Reply-To: "Ant Users List" Delivered-To: mailing list user@ant.apache.org Received: (qmail 13674 invoked by uid 99); 10 Dec 2013 10:44:01 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 10 Dec 2013 10:44:01 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of jotpe.osm@gmail.com designates 209.85.216.175 as permitted sender) Received: from [209.85.216.175] (HELO mail-qc0-f175.google.com) (209.85.216.175) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 10 Dec 2013 10:43:54 +0000 Received: by mail-qc0-f175.google.com with SMTP id e9so3806973qcy.34 for ; Tue, 10 Dec 2013 02:43:34 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=tIU05xWOGV4d7BEtCniafD8RCSrozS1KQZ72qfeNzRk=; b=TukcOZEMOQJyAmX81AaJf8p2TAkzgxE8/zYPS/mRCyvCrDtu3N1NYZMjk2H/Wk6Ilw Ius/m+MkmXYcxTViNN7inWr++n+gT9Xf947MV3/RqnkBRHdlpESwCuxLE2yCsWK5Ndml jtp2BW07HOvfxn3drJST8tYx/dF1NjyGu84neUgaowTXG9HEBisSOY/0RZVSm0gkx7Cd 72KOhrZOJl1zRp6GIKw+Zd5QS+r269TMf5lmEeXYmWlEIyeUvaxEf0f3OdWeuZA7/RYI /w/MQv4z9waZhqAAB1k4c4hFB7LcYfAOj+zCAVflXWHmvxtUMU04cY1ZOxVxpWerXuxW YuMQ== MIME-Version: 1.0 X-Received: by 10.224.157.19 with SMTP id z19mr42942636qaw.102.1386672214037; Tue, 10 Dec 2013 02:43:34 -0800 (PST) Received: by 10.140.42.6 with HTTP; Tue, 10 Dec 2013 02:43:33 -0800 (PST) In-Reply-To: References: Date: Tue, 10 Dec 2013 11:43:33 +0100 Message-ID: Subject: Re: Slow connection operations with java fork=false From: jotpe To: user@ant.apache.org Content-Type: multipart/alternative; boundary=089e0149bfe4bcf85504ed2bc89d X-Virus-Checked: Checked by ClamAV on apache.org --089e0149bfe4bcf85504ed2bc89d Content-Type: text/plain; charset=ISO-8859-1 Nobody with same experience? 2013/12/3 jotpe > Hello list, > > at first my values: > Apache Ant(TM) version 1.9.2 compiled on July 8 2013 > java.runtime.version : 1.7.0_45-b18 > java.vm.name : Java HotSpot(TM) Client VM > os.name : Windows XP > > > I've written a Java utility class, that executes some import jobs. If > executed via commandline only OR by ant task with fork="true" parameter, it > runs as it schould: fast and without blocking. > > The bottlenecks are retrieving websites > new URL("xyz").openConnection().getInputStream() > and establishing a database connections > DriverManager.getConnection(url, props) > > > With fork="true" OR direct commandline both takes ~ 50 ms +- 25 ms > With fork="false" it takes always 9047 ms +- 13 ms > > > The ant target looks normal, i think: > > > > > > > > > > > > > > > > > > > > > Is there somewhere an internal timeout which is reached after 9 seconds > without throwing an exception? Does anyone know this problem, is it a bug? > > Best Regards Johannes > --089e0149bfe4bcf85504ed2bc89d--