From: John K. <jk...@mo...> - 2012-10-10 17:17:28
|
Thanks Steve! That was indeed the issue. Now I know my code coverage! Much appreciated. John Kramer email: jk...@mo...<mailto:jk...@mo...> mobile: 314.435.2370 skype: kramer.mojiva twitter: @KramerKnowsTech<https://twitter.com/KramerKnowsTech> 0xCAFEBABE00000032 From: John Kramer <jk...@mo...<mailto:jk...@mo...>> Date: Tuesday, October 9, 2012 12:14 PM To: Steve Christou <sch...@gm...<mailto:sch...@gm...>> Cc: "cob...@li...<mailto:cob...@li...>" <cob...@li...<mailto:cob...@li...>> Subject: Re: [Cobertura-devel] Out of memory error Great. Thanks. That's most likely my issue. I got pulled away from that branch onto some critical work, but will let you know when I can try your fix. John Kramer email: jk...@mo...<mailto:jk...@mo...> mobile: 314.435.2370 skype: kramer.mojiva twitter: @KramerKnowsTech<https://twitter.com/KramerKnowsTech> 0xCAFEBABE00000032 From: Steve Christou <sch...@gm...<mailto:sch...@gm...>> Date: Tuesday, October 9, 2012 12:12 PM To: John Kramer <jk...@mo...<mailto:jk...@mo...>> Cc: Daniel Zapata <dz...@gm...<mailto:dz...@gm...>>, "cob...@li...<mailto:cob...@li...>" <cob...@li...<mailto:cob...@li...>> Subject: Re: [Cobertura-devel] Out of memory error Yes, and the argument maxmem is used for instrumentation and reporting, not execution of tests. Sometimes the instrumentation and reporting can eat a lot of memory if there are too many classes to instrument. The documentation on mojo states that the cobertura:cobertura target does the following: Instruments, Tests, and Generates a Cobertura Report. This means it executes the test maven target for you. The reason I say it's an issue with surefire is because if you executed cobertura:instrument or cobertura:report you probably won't see the exception, however only during the execution of the tests will you see the error which indicates it's an issue with the jvm from surefire. On Tue, Oct 9, 2012 at 11:05 AM, John Kramer <jk...@mo...<mailto:jk...@mo...>> wrote: So cobertura uses surefire to run the tests? Then what does the maxmem configuration do for cobertura? John Kramer email: jk...@mo...<mailto:jk...@mo...> mobile: 314.435.2370<tel:314.435.2370> skype: kramer.mojiva twitter: @KramerKnowsTech<https://twitter.com/KramerKnowsTech> 0xCAFEBABE00000032 From: Steve Christou <sch...@gm...<mailto:sch...@gm...>> Date: Tuesday, October 9, 2012 12:03 PM To: Daniel Zapata <dz...@gm...<mailto:dz...@gm...>> Cc: John Kramer <jk...@mo...<mailto:jk...@mo...>>, "cob...@li...<mailto:cob...@li...>" <cob...@li...<mailto:cob...@li...>> Subject: Re: [Cobertura-devel] Out of memory error Since you are using surefire to run your junits, the issue is actually with surefire's jvm and not cobertura. Add this to the surefire section: <argLine>-Xmx2048m</argLine> That hopefully should resolve the issue. Thanks, Steve. On Tue, Oct 9, 2012 at 10:42 AM, Daniel Zapata <dz...@gm...<mailto:dz...@gm...>> wrote: 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...<mailto: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...<mailto:jk...@mo...> mobile: 314.435.2370<tel: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...<mailto:Cob...@li...> https://lists.sourceforge.net/lists/listinfo/cobertura-devel ------------------------------------------------------------------------------ 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...<mailto:Cob...@li...> https://lists.sourceforge.net/lists/listinfo/cobertura-devel |