Tyler,

as the test cases get forked, you might have to set the values on the surefire 
plugin, e.g.:
http://draptik.wordpress.com/2009/05/22/maven2-heap-overflow-in-junit-test-cases-howto-increase-memory/

regards Domi


On 24.02.2014, at 18:23, R. Tyler Croy <[email protected]> wrote:

> 
> I'm trying to test a dependency change with Jenkins core on FreeBSD running
> OpenJDK 7, and I cannot seem to get the full `install` target to complete
> without hitting PermGen space issues.
> 
> In my cursory Google searching, I changed my invocation to:
> 
>    [9:20:39] tyler:jenkins git:(master*) $ MAVEN_OPTS="-Xmx512m 
> -XX:MaxPermSize=512m" mvn -Plight-test install
> 
> 
> Unfortunately even this doesn't fix the issue:
> 
>    Failed tests: 
>    DefaultConfidentialStoreTest.roundtrip:46 assert (new 
> FilePath(tmp).mode()&0777) == 0700 // should be read only
>            |            |    |     |      |
>            |            |    16804 420    false
>            |            
> /usr/home/tyler/source/github/jenkins/core/target/hudson2699586074721172730tmp
>            
> /usr/home/tyler/source/github/jenkins/core/target/hudson2699586074721172730tmp
>    TarArchiverTest.permission:77 expected:<33261> but was:<33188>
> 
>    Tests in error: 
>    ProcessTreeTest.testRemoting » NoSuchElement
>    SuiteResultTest.testSuiteResultPersistence:128->parseOne:56 » OutOfMemory 
> Perm...
>    SuiteResultTest.testSuiteStdioTrimmingSurefire:211->parseOne:56 » 
> OutOfMemory ...
>    SuiteResultTest.testErrorDetails:118->parseOne:56 » OutOfMemory PermGen 
> space
>    SuiteResultTest.testParseNestedTestSuites:240->parseSuites:62 » 
> OutOfMemory Pe...
>    SuiteResultTest.testSuiteStdioTrimming » OutOfMemory PermGen space
>    SuiteResultTest.testErrorInTestInitialization » OutOfMemory PermGen space
>    SuiteResultTest.testIssue1233 » OutOfMemory PermGen space
>    SuiteResultTest.testIssue1463 » OutOfMemory PermGen space
>    SuiteResultTest.testIssue1472 » OutOfMemory PermGen space
>    SuiteResultTest.testIssue2874 » OutOfMemory PermGen space
>    
> ClassResultTest.testFindCorrespondingResultWhereClassResultNameIsLastInCaseResultName
>  » OutOfMemory
>    
> ClassResultTest.testFindCorrespondingResultWhereClassResultNameIsNotSubstring 
> » OutOfMemory
>    ClassResultTest.testFindCorrespondingResult » OutOfMemory PermGen space
>    TestResultTest.initializationError » OutOfMemory PermGen space
>    CaseResultTest.initializationError » OutOfMemory PermGen space
>    SearchTest.initializationError » OutOfMemory PermGen space
> 
>    Tests run: 3309, Failures: 2, Errors: 17, Skipped: 2
> 
>    [INFO] 
> ------------------------------------------------------------------------
>    [INFO] Reactor Summary:
>    [INFO] 
>    [INFO] Jenkins main module ............................... SUCCESS [3.833s]
>    [INFO] Jenkins CLI ....................................... SUCCESS 
> [10.372s]
>    [INFO] Jenkins core ...................................... FAILURE 
> [1:08:54.771s]
>    [INFO] Jenkins war ....................................... SKIPPED
>    [INFO] Test harness for Jenkins and plugins .............. SKIPPED
>    [INFO] Jenkins plugin POM ................................ SKIPPED
>    [INFO] 
> ------------------------------------------------------------------------
>    [INFO] BUILD FAILURE
>    [INFO] 
> ------------------------------------------------------------------------
>    [INFO] Total time: 1:09:13.599s
>    [INFO] Finished at: Sun Feb 23 17:24:32 PST 2014
>    [INFO] Final Memory: 33M/232M
>    [INFO] 
> ------------------------------------------------------------------------
>    [ERROR] Failed to execute goal 
> org.apache.maven.plugins:maven-surefire-plugin:2.16:test (default-test) on 
> project jenkins-core:che.maven.plugins:maven-surefire-plugin:2.16:test 
> failed: The forked VM terminated without saying properly goodbye. VM crash or
>    [ERROR] Command was/bin/sh -c cd 
> /usr/home/tyler/source/github/jenkins/core && 
> /usr/local/openjdk7/jre/bin/java 
> -XX:MaxPermSizeb/jenkins/core/target/surefire/surefirebooter629552637286265440.jar
>  
> /usr/home/tyler/source/github/jenkins/core/target/surefire/e/tyler/source/github/jenkins/core/target/surefire/surefire_0990672825413254055tmp
>    [ERROR] -> [Help 1]
>    [ERROR] 
>    [ERROR] To see the full stack trace of the errors, re-run Maven with the 
> -e switch.
>    [ERROR] Re-run Maven using the -X switch to enable full debug logging.
>    [ERROR] 
>    [ERROR] For more information about the errors and possible solutions, 
> please read the following articles:
>    [ERROR] [Help 1] 
> http://cwiki.apache.org/confluence/display/MAVEN/PluginExecutionException
>    [ERROR] 
>    [ERROR] After correcting the problems, you can resume the build with the 
> command
>    [ERROR]   mvn <goals> -rf :jenkins-core
>    [8:41:06] tyler:jenkins git:(master*) $
> 
> 
> 
> I'm hoping I'm just not setting the right values correctly, any suggestions? 
> :/
> 
> 
> - R. Tyler Croy
> 
> ------------------------------------------------------
>     Code: <https://github.com/rtyler>
>  Chatter: <https://twitter.com/agentdero>
> 
>  % gpg --keyserver keys.gnupg.net --recv-key 3F51E16F
> ------------------------------------------------------

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to