out of memory on ant build - upping Xmx isn't working

Another developer had an ant build script for generating XML beans from an XSD. He can run it fine on his machine, but when I try to run it, I get an OutOfMemoryError. We both have 1 gig of RAM, and similar processors. We're running the ant build via Eclipse 3.1, with JDK 1.4.2.

I have watched the memory and CPU usage as the script is running, and the CPU maxes out, but the memory use never goes above 500k. I have looked in the eclipse.ini file, and I have Xms = 40; Xmx = 256. I have played with the min/max values pushing them all the way up to 1000M, but still no luck. I have also gone into the ant.bin file and through Eclipse to add memory parms directly to the ant script to no avail.

At this point, I'm just kinda miffed I can't figure it out, and every thread I can find on OOME problems suggest adjusting vmargs, but that ain't working.

Please feel free to email me directly - seank100(at)msn.com - (at) used to foil spam sniffers.

[975 byte] By [sckennea] at [2007-10-2 6:48:03]
# 1

I ended up solving this myself. I had to add an extra memory parameter within the ant script; this allowed me to get past the memory error, and I found that I was missing a jar file for the script (it was in the project, but not in the script). Once I added the jar file, I could run the script fine without the added memory parm.

sckennea at 2007-7-16 13:56:46 > top of Java-index,Developer Tools,Debugging and Profiling Tool APIs...