Return-Path: Delivered-To: apmail-ant-user-archive@www.apache.org Received: (qmail 74079 invoked from network); 12 Jan 2005 11:50:14 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 12 Jan 2005 11:50:14 -0000 Received: (qmail 96260 invoked by uid 500); 12 Jan 2005 11:50:04 -0000 Delivered-To: apmail-ant-user-archive@ant.apache.org Received: (qmail 96202 invoked by uid 500); 12 Jan 2005 11:50:04 -0000 Mailing-List: contact user-help@ant.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Ant Users List" Reply-To: "Ant Users List" Delivered-To: mailing list user@ant.apache.org Received: (qmail 96187 invoked by uid 99); 12 Jan 2005 11:50:04 -0000 X-ASF-Spam-Status: No, hits=0.1 required=10.0 tests=FORGED_RCVD_HELO X-Spam-Check-By: apache.org Received-SPF: pass (hermes.apache.org: local policy) Received: from mail.elca.ch (HELO mail.elca.ch) (193.72.144.2) by apache.org (qpsmtpd/0.28) with ESMTP; Wed, 12 Jan 2005 03:50:03 -0800 Received: from exchange.elca.ch (unverified) by mail.elca.ch (Content Technologies SMTPRS 4.3.17) with ESMTP id for ; Wed, 12 Jan 2005 12:49:58 +0100 Received: from pcyma.elca.ch.elca.ch (pcyma.elca.ch [10.10.10.112]) by exchange.elca.ch with SMTP (Microsoft Exchange Internet Mail Service Version 5.5.2653.13) id 4P3HWLGJ; Wed, 12 Jan 2005 12:48:51 +0100 From: Yves Martin To: user@ant.apache.org Subject: 'Java' fork information Organization: ELCA Informatique Date: Wed, 12 Jan 2005 12:50:34 +0100 Message-ID: User-Agent: Gnus/5.1006 (Gnus v5.10.6) Emacs/21.3 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N Hello, You may already know that the process command line is limited according to the OS. And that limit on Windows with the Win32 API CreateProcess is 32 Kb. If the limit is exceeded, you get a java.io.IOException. I just discovered that there is another limit: an argument of a command line must not exceed a specific length. On my Linux 2.6, that limit is 4075 - reasonnable I would say. With jdk 1.4.1_05 on Windows 2000, that limit is 392... It seems to be a JVM bug, as far as Win32 CreateProcess method works if an argument is longer that 392. What is really annoying: when the limit is exceeded, the Runtime.exec method never returns: the JVM process sleeps for ever and no child comes up ?!? Hope this helps on day -- Yves Martin --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@ant.apache.org For additional commands, e-mail: user-help@ant.apache.org