From: Daniel Z. <dz...@gm...> - 2012-10-09 15:42:34
|
Are you sure it's an OOM error and not a permgen error? Can you paste the stack trace? On Mon, Oct 8, 2012 at 8:55 PM, John Kramer <jk...@mo...> wrote: > Hello to all, > > I am getting a java.lang.OutOfMemoryError when using cobertura (with > Maven) to try to find coverage. > > The test do use a significant amount of memory. When I run them on > there own (using Maven and the surefire plugin), I they require > approximately 2 GB to run (i.e. No memory issues occur if I use > –DargLine="-Xmx2048"). I set up the maxmem property in an active profile > my settings.xml like so: > > > <profiles> > <profile> > … > <properties> > > <cobertura.maxmem>2048M</cobertura.maxmem> > </properties> > </profile> > </profiles> > > > And would expect my tests to pass when I do this: > > mvn cobertura:cobertura > > But I get an out of memory error. > > Even if I set the max memory usage to 8 GB, I get that error. > > I am guessing that this has something to do with the way that cobertura > manages memory, but know so little about it. > > Can anyone provide some guidance? > > Thanks! > > > John Kramer > email: jk...@mo... > mobile: 314.435.2370 > skype: kramer.mojiva > twitter: @KramerKnowsTech <https://twitter.com/KramerKnowsTech> > 0xCAFEBABE00000032 > > > > ------------------------------------------------------------------------------ > Don't let slow site performance ruin your business. Deploy New Relic APM > Deploy New Relic app performance management and know exactly > what is happening inside your Ruby, Python, PHP, Java, and .NET app > Try New Relic at no cost today and get our sweet Data Nerd shirt too! > http://p.sf.net/sfu/newrelic-dev2dev > _______________________________________________ > Cobertura-devel mailing list > Cob...@li... > https://lists.sourceforge.net/lists/listinfo/cobertura-devel > > |