[ http://jira.codehaus.org/browse/MAVEN-1728?page=comments#action_51692 ] 

Tigran Antonyan commented on MAVEN-1728:
----------------------------------------

I've tried that too(from command line only, %MAVEN_HOME%/bin/maven file still 
has MAVEN_OPTS=" -Xmx1024m -Xms1024m"),
here is the part of output

this happens when jcoverage is trying to run (after junit-report, which goes 
quite well)

    [copy] Copying 52 files to C:\project\javasrc\media\target\j

java:jar-resources:

test:prepare-filesystem:

test:test-resources:

test:compile:

test:test:
    [junit] Running media.client.ClientCommandTest
    [junit] Tests run: 1, Failures: 0, Errors: 1, Time elapsed: 0 sec
    [junit] Exception in thread "Thread-2" java.lang.StackOverflowError
    [junit]     at 
com.jcoverage.coverage.InstrumentationFactory.newInstrumentation(InstrumentationFactory.java:88)
    [junit]     at 
com.ge.security.media.server.webservices.GenesisAppender.append(GenesisAppender.java:65)
    [junit]     at 
org.apache.log4j.AppenderSkeleton.doAppend(AppenderSkeleton.java:221)
    [junit]     at 
org.apache.log4j.helpers.AppenderAttachableImpl.appendLoopOnAppenders(AppenderAttachableImpl.java:57)
    [junit]     at org.apache.log4j.Category.callAppenders(Category.java:187)
    [junit]     at org.apache.log4j.Category.forcedLog(Category.java:372)
    [junit]     at org.apache.log4j.Category.debug(Category.java:241)
    [junit]     at 
com.jcoverage.coverage.InstrumentationFactory.newInstrumentation(InstrumentationFactory.java:89)
 ................................
very long ...........
...................................

    [junit]     at 
com.jcoverage.coverage.InstrumentationFactory.newInstrumentation(InstrumentationFactory.java:89)
    [junit]     at 
com.ge.security.media.server.webservices.GenesisAppender.append(GenesisAppender.java:65)
    [junit]     at 
org.apache.log4j.AppenderSkeleton.doAppend(AppenderSkeleton.java:221)
    [junit]     at 
org.apache.log4j.helpers.AppenderAttachableImpl.appendLoopOnAppenders(AppenderAttachableImpl.java:57)
    [junit]     at org.apache.log4j.Category.callAppenders(Category.java:187)
    [junit]     at org.apache.log4j.Category.forcedLog(Category.java:372)
    [junit]     at org.apache.log4j.Category.debug(Category.java:241)
    [junit]     at 
com.jcoverage.coverage.InstrumentationFactory.newInstrumentation(InstrumentationFactory.java:89)
    [junit]     at 
com.ge.security.media.server.webservices.GenesisAppender.append(GenesisAppender.java:65)
    [junit] [ERROR] Test media.client.ClientCommandTest FAILED
    [junit] Running media.client.ClientHandlerTest (this is the next test case)
..................................
.........................................
and all of them generate the same kind of output...

the JVM memory useage is just under 209m
however, if I remove the maven-junit-report-plugin from reports the build is 
successful(jcoverage is still in the list)

-Tigran

> MAVEN_OPTS is not being set correctly
> -------------------------------------
>
>          Key: MAVEN-1728
>          URL: http://jira.codehaus.org/browse/MAVEN-1728
>      Project: Maven
>         Type: Bug
>     Versions: 1.1-beta-2
>  Environment: windows xp
>     Reporter: Tigran Antonyan
>     Priority: Blocker

>
>
> I set the MAVEN_OPTS to -Xmx1024m (tried from command line and 
> %MAVEN_HOME%/bin/maven) and it still fail the build when JVM memory use gets 
> up to 220m with either outOfMemory or java heap size exception
> here is a part of the output:
> Root cause
> java.lang.OutOfMemoryError: PermGen space
> Thanks Tigran

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to