On 25/08/06, lfleal <[EMAIL PROTECTED]> wrote:
David, The same build script works just fine under 1.5 on a win 32 server, the only difference is that on the new server, the x64 version of the 1.5 JDK is used. The ant options are set to a max heap of 512m (where the old server uses the default). There seems to be more going on here... David Corley (AT/LMI) wrote: > > You should set the -Xms -Xmx properties for your JVM. They control the > minimum and maximum heap size the JVM is allowed to use. There's plenty > of documentation for these two switches online. > > -----Original Message----- > From: lfleal [mailto:[EMAIL PROTECTED] > Sent: 25 August 2006 03:17 > To: user@ant.apache.org > Subject: OutOfMemoryError when building on x64 > > > I have bulds that work fine in 32 bit environments (with Java 1.5), but > will not work in a x64 environment. I am using Ant 1.6.5 and Java 1.5 > 06. Any ideas? > > > Buildfile: build\build.xml > > init: > [taskdef] Could not load definitions from resource > checkstyletask.properties. It could not be found. > > clean: > [delete] Deleting directory > D:\automated_builds\continuum-1.0.3\apps\continuum\working-directory\1\b > uild\stage > > makeClasses: > [mkdir] Created dir: > D:\automated_builds\continuum-1.0.3\apps\continuum\working-directory\1\b > uild\stage > [javac] Compiling 2370 source files to > D:\automated_builds\continuum-1.0.3\apps\continuum\working-directory\1\b > uild\stage > [javac] Exception in thread "main" java.lang.OutOfMemoryError: Java > heap space > > BUILD FAILED > D:\automated_builds\continuum-1.0.3\apps\continuum\working-directory\1\b > uild\build.xml:117: > Compile failed; see the compiler error output for details. > > Total time: 23 seconds > > > > -- > View this message in context: > http://www.nabble.com/OutOfMemoryError-when-building-on-x64-tf2162231.ht > ml#a5975872 > Sent from the Ant - Users forum at Nabble.com. > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > -- View this message in context: http://www.nabble.com/OutOfMemoryError-when-building-on-x64-tf2162231.html#a5981010 Sent from the Ant - Users forum at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
The first thing that come to my mind is: are you using the 32 bit java on your 64 bit computer. If so you shouldn't have any problems. If not then try to increase the heap as David proposed . Also this can be done by setting the environment variable ANT_OPTS environment variable. P.S.What is the available RAM memory on both of your computers? Is there any difference? -- Regards, Petar! Karlovo, Bulgaria. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]