openjpa-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jeremy Bauer (JIRA)" <j...@apache.org>
Subject [jira] Commented: (OPENJPA-737) Unit tests fail with OutOfMemoryException during build on Playstation 3
Date Mon, 06 Oct 2008 13:21:44 GMT

    [ https://issues.apache.org/jira/browse/OPENJPA-737?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12637094#action_12637094
] 

Jeremy Bauer commented on OPENJPA-737:
--------------------------------------

I no longer get the core dump, but the build still fails with an OutOfMemoryException.  Here
is the failure:

org.apache.maven.surefire.booter.SurefireExecutionException: org.apache.openjpa.persistence.kernel.TestTransition2;
nested exception is java.lang.OutOfMemoryError: null; nested exception is org.apache.maven.surefire.testset.TestSetFailedException:
org.apache.openjpa.persistence.kernel.TestTransition2; nested exception is java.lang.OutOfMemoryError:
null
org.apache.maven.surefire.testset.TestSetFailedException: org.apache.openjpa.persistence.kernel.TestTransition2;
nested exception is java.lang.OutOfMemoryError: null
java.lang.OutOfMemoryError
        at java.io.BufferedWriter.<init>(BufferedWriter.java:108)
        at java.io.BufferedWriter.<init>(BufferedWriter.java:91)
        at java.io.PrintStream.init(PrintStream.java:117)
        at java.io.PrintStream.<init>(PrintStream.java:134)
        at java.io.PrintStream.<init>(PrintStream.java:96)
        at org.apache.maven.surefire.util.TeeStream.<init>(TeeStream.java:35)
        at org.apache.maven.surefire.report.ReporterManager.testStarting(ReporterManager.java:278)
        at org.apache.maven.surefire.junit.TestListenerInvocationHandler.handleStartTest(TestListenerInvocationHandler.java:156)
        at org.apache.maven.surefire.junit.TestListenerInvocationHandler.invoke(TestListenerInvocationHandler.java:133)
        at $Proxy0.startTest(Unknown Source)
        at junit.framework.TestResult.startTest(TestResult.java:151)
        at junit.framework.TestResult.run(TestResult.java:103)
        at junit.framework.TestCase.run(TestCase.java:118)
        at org.apache.openjpa.persistence.test.PersistenceTestCase.run(PersistenceTestCase.java:143)
        at junit.framework.TestSuite.runTest(TestSuite.java:208)
        at junit.framework.TestSuite.run(TestSuite.java:203)
        at sun.reflect.GeneratedMethodAccessor276.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:618)
        at org.apache.maven.surefire.junit.JUnitTestSet.execute(JUnitTestSet.java:213)
        at org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.executeTestSet(AbstractDirectoryTestSuite.java:140)
        at org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.execute(AbstractDirectoryTestSuite.java:127)
        at org.apache.maven.surefire.Surefire.run(Surefire.java:177)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:79)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:618)
        at org.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess(SurefireBooter.java:334)
        at org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:980)
[INFO] ------------------------------------------------------------------------
[ERROR] BUILD FAILURE
[INFO] ------------------------------------------------------------------------

Based on the build result, the OOME is not expected, but the test may be working with a very
large data set.  
I'll take a look at the failing test to see if the OOME makes sense for this test in this
type of environment.   I may also try the 32-bit SDK to see if that helps bring down memory
usage (32-bit vs. 64-bit addresses).


> Unit tests fail with OutOfMemoryException during build on Playstation 3
> -----------------------------------------------------------------------
>
>                 Key: OPENJPA-737
>                 URL: https://issues.apache.org/jira/browse/OPENJPA-737
>             Project: OpenJPA
>          Issue Type: Bug
>          Components: build / infrastructure
>    Affects Versions: 1.3.0
>         Environment: Playstation 3, Yellow Dog Linux 6.0, IBM Java SDK 5.0 SR8a ppc64,
768mb swap space
>            Reporter: Jeremy Bauer
>            Priority: Minor
>
> The OpenJPA build fails with an OutOfMemoryException on Playstation 3 while running unit
tests.   I end up with a large core dump and other debug files.   The build is successful
when I disable the unit tests.  Is there a way to run the build+unit tests on machines with
limited memory (256mb core)?  
> BTW, I have yet to get an OutOfMemoryException or javacore from Metal Gear Solid.  An
OpenJPA build should be a piece of cake.  :-) :-)

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message