Looking into the article I mentioned below in further detail, a lot of the users recommend actually doubling (200% instead of 40%) the heap size, so you might want to try that if the 40% increase does not work, and assuming you have the memory to do so.
-----Original Message----- From: David Corley (AT/LMI) [mailto:[EMAIL PROTECTED] Sent: 25 August 2006 13:05 To: Ant Users List Subject: RE: OutOfMemoryError when building on x64 Hey Lewis, I found the following http://forum.java.sun.com/thread.jspa?threadID=671184&messageID=3928329 in which they detail a similar situation to yours. I'd check it out. The rough solution to the problem seems to be increasing your heap size by approx 40%: "Remember that 512 MB is 512 MB of space whether it's 32 bit or 64 bit. On 64-bit, Java references (pointers) are twice as large. So pointer-rich objects would be larger, and your memory footprint would be larger. A rough rule of thumb we have found useful over a small universe of Java applications is that a 40% increase in heap size usually suffices to deal with this object size dilation. In other words, -Xmx512M in 32-bit becomes roughly -Xmx720M for 64-bit and so on." Hopefully this will sort you out! As always though, also try grabbing the latest JDK (1.5_08) to see if it makes any difference in the x64 machine. -----Original Message----- From: lfleal [mailto:[EMAIL PROTECTED] Sent: 25 August 2006 12:36 To: user@ant.apache.org Subject: RE: OutOfMemoryError when building on x64 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.ht ml#a5981010 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] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]