From: Mark D. <Mar...@sa...> - 2005-03-16 20:28:56
|
You could try passing -Xmx512m to ant. I have a feeling this won't = work, but it's worth a shot. The ant tasks start a new JVM to do the = instrumentating, and I don't think we have a way to set the max memory = size for that JVM (but there is a chance this max memory size is = inherited from the ant JVM). If the above does not work, you could try calling the instrument class = directly, with something like java -Xms512m -cp cobertura.jar net.sourceforge.cobertura.coverage.Main = -d C:\output\directory C:\compiled\classes\directory At least, I think that's right... -Mark > -----Original Message----- > From: cob...@li...=20 > [mailto:cob...@li...] On=20 > Behalf Of Allan Caplan > Sent: Monday, March 14, 2005 2:18 PM > To: cob...@li... > Subject: [Cobertura-devel] Out of Memory Exception >=20 > When running instrument on a LARGE codebase (6700 classes), I get an > out of memory exception. >=20 > I re-ran with verbose output, and this was all I could get: >=20 > [cobertura-instrument] java.lang.OutOfMemoryError > [cobertura-instrument] java.lang.OutOfMemoryError > [cobertura-instrument] Exception in thread "main" >=20 >=20 > BUILD FAILED > C:\Java\build2\personal.xml:220: null > at=20 > net.sourceforge.cobertura.ant.InstrumentTask.coverage(Instrume > ntTask.java:116) > at=20 > net.sourceforge.cobertura.ant.InstrumentTask.execute(Instrumen > tTask.java:149) > at=20 > org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:269) > at org.apache.tools.ant.Task.perform(Task.java:364) > at org.apache.tools.ant.Target.execute(Target.java:301) > at org.apache.tools.ant.Target.performTasks(Target.java:328) > at=20 > org.apache.tools.ant.Project.executeTarget(Project.java:1215) > at=20 > org.apache.tools.ant.Project.executeTargets(Project.java:1063) > at org.apache.tools.ant.Main.runBuild(Main.java:632) > at org.apache.tools.ant.Main.startAnt(Main.java:183) > at org.apache.tools.ant.launch.Launcher.run(Launcher.java:197) > at org.apache.tools.ant.launch.Launcher.main(Launcher.java:56) >=20 > Any help would be appreciated > Thx >=20 >=20 > ------------------------------------------------------- > SF email is sponsored by - The IT Product Guide > Read honest & candid reviews on hundreds of IT Products from=20 > real users. > Discover which products truly live up to the hype. Start reading now. > http://ads.osdn.com/?ad_id=3D6595&alloc_id=3D14396&op=3Dclick > _______________________________________________ > Cobertura-devel mailing list > Cob...@li... > https://lists.sourceforge.net/lists/listinfo/cobertura-devel >=20 |