Return-Path: Delivered-To: apmail-ant-user-archive@www.apache.org Received: (qmail 15363 invoked from network); 5 May 2004 13:56:21 -0000 Received: from daedalus.apache.org (HELO mail.apache.org) (208.185.179.12) by minotaur-2.apache.org with SMTP; 5 May 2004 13:56:21 -0000 Received: (qmail 38066 invoked by uid 500); 5 May 2004 13:56:06 -0000 Delivered-To: apmail-ant-user-archive@ant.apache.org Received: (qmail 38034 invoked by uid 500); 5 May 2004 13:56:05 -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 37999 invoked from network); 5 May 2004 13:56:04 -0000 Received: from unknown (HELO elitecore.com) (203.88.135.194) by daedalus.apache.org with SMTP; 5 May 2004 13:56:04 -0000 Received: (qmail 5648 invoked by uid 11188); 5 May 2004 13:58:05 -0000 Received: from pawanraj@elitecore.com by mailhost.elitecore.com by uid 503 with qmail-scanner-1.20 (iscan: v3.1/v7.000-1011/857/62001. spamassassin: 2.63. Clear:RC:1(192.168.1.136):. Processed in 0.018505 secs); 05 May 2004 13:58:05 -0000 Received: from unknown (HELO elitecore86) ([192.168.1.136]) (envelope-sender ) by elitecore.com (qmail-ldap-1.03) with SMTP for ; 5 May 2004 13:58:04 -0000 Reply-To: From: "Pawanraj Sadhwani" To: "'Ant Users List'" Subject: RE: out of memory with javac Date: Wed, 5 May 2004 19:25:44 +0530 Message-ID: <001301c432a8$a98ad8c0$8801a8c0@elitecore86> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook CWS, Build 9.0.2416 (9.0.2911.0) X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106 In-Reply-To: Importance: Normal X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N hi chandra is compilation the only task in the build file? it is possible that you are using quite a few antcalls in the other task before this, causing this to happen. it has happened with me. try running only the compile target from the command line. does it still fail? PAwan -----Original Message----- From: chandrasekar.ravoori@polaris.co.in [mailto:chandrasekar.ravoori@polaris.co.in] Sent: Wednesday, May 05, 2004 7:20 PM To: Ant Users List Subject: RE: out of memory with javac Pawan, I did try that option, as already mentioned. It does not work. Thanks, CR "Pawanraj Sadhwani" To: "'Ant Users List'" Subject: RE: out of memory with javac 05/05/2004 07:15 PM Please respond to "Ant Users List" hi chandra how many files are you compiling? try increasing the Memory size of ant process by using -Xmx in the ant.sh file. HTH Pawan -----Original Message----- From: chandrasekar.ravoori@polaris.co.in [mailto:chandrasekar.ravoori@polaris.co.in] Sent: Wednesday, May 05, 2004 7:09 PM To: user@ant.apache.org Subject: out of memory with javac Hi, The following is a code snippet from my build file This task fails with an out-of-memory exception. However, the equivalent command on the shell prompt works without a hitch - javac -J-mx1000000000 -d $TEMP_SOURCE *.java. I have even tried the following alternatives 1. Running javac within the Ant JVM ( fork = "false" ) and setting the maximum heap size via ANT_OPTS. 2. Running javac using the exec task and specifying the heap size as the argument(-J-mx2000000000). Nothing works; I am frankly at my wits' end. Is forking the problem here? Any help would be much appreciated. Regards, CR --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@ant.apache.org For additional commands, e-mail: user-help@ant.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@ant.apache.org For additional commands, e-mail: user-help@ant.apache.org