Derby
  1. Derby
  2. DERBY-5642

OutOfMemoryError in OCRecoveryTest on phoneME

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 10.9.1.0
    • Fix Version/s: 10.9.1.0
    • Component/s: Test
    • Labels:
      None
    • Bug behavior facts:
      Regression Test Failure

      Description

      http://dbtg.foundry.sun.com/derby/test/Daily/javaME/testing/Limited/testSummary-1298470.html

      There was 1 failure:
      1) testOCRecovery(org.apache.derbyTesting.functionTests.tests.store.OCRecoveryTest)junit.framework.AssertionFailedError: expectedExitValue:0 does not match exitValue:1
      expected output strings:
      [0]OK (1 test)
      actual output:<STDOUT>.E
      Time: 4.432
      There was 1 error:
      1) launchOCRecovery_1(org.apache.derbyTesting.functionTests.tests.store.OCRecoveryTest)<END STDOUT>
      <STDERR>java.lang.OutOfMemoryError: [C
      at java.io.BufferedReader.<init>(Unknown Source)
      at java.io.BufferedReader.<init>(Unknown Source)
      at junit.runner.BaseTestRunner.getFilteredTrace(Unknown Source)
      at junit.textui.ResultPrinter.printDefectTrace(Unknown Source)
      at junit.textui.ResultPrinter.printDefect(Unknown Source)
      at junit.textui.ResultPrinter.printDefects(Unknown Source)
      at junit.textui.ResultPrinter.printErrors(Unknown Source)
      at junit.textui.ResultPrinter.print(Unknown Source)
      at sun.misc.CVM.runMain(Unknown Source)
      <END STDERR>
      expected:<0> but was:<1>
      at org.apache.derbyTesting.junit.BaseTestCase.assertExecJavaCmdAsExpected(Unknown Source)
      at org.apache.derbyTesting.junit.BaseTestCase.assertLaunchedJUnitTestMethod(Unknown Source)
      at org.apache.derbyTesting.functionTests.tests.store.OCRecoveryTest.testOCRecovery(Unknown Source)
      at org.apache.derbyTesting.junit.BaseTestCase.runBare(Unknown Source)
      at junit.extensions.TestDecorator.basicRun(Unknown Source)
      at junit.extensions.TestSetup$1.protect(Unknown Source)
      at junit.extensions.TestSetup.run(Unknown Source)
      at org.apache.derbyTesting.junit.BaseTestSetup.run(Unknown Source)
      at junit.extensions.TestDecorator.basicRun(Unknown Source)
      at junit.extensions.TestSetup$1.protect(Unknown Source)
      at junit.extensions.TestSetup.run(Unknown Source)
      at sun.misc.CVM.runMain(Unknown Source)

      1. d5642.diff
        2 kB
        Knut Anders Hatlen

        Activity

        Transition Time In Source Status Execution Times Last Executer Last Execution Date
        Open Open In Progress In Progress
        7m 11s 1 Knut Anders Hatlen 09/Mar/12 06:46
        In Progress In Progress Closed Closed
        2h 42m 1 Knut Anders Hatlen 09/Mar/12 09:28
        Gavin made changes -
        Workflow jira [ 12657227 ] Default workflow, editable Closed status [ 12796813 ]
        Knut Anders Hatlen made changes -
        Fix Version/s 10.9.0.0 [ 12316344 ]
        Resolution Fixed [ 1 ]
        Status In Progress [ 3 ] Closed [ 6 ]
        Hide
        Knut Anders Hatlen added a comment -

        suites.All passed on phoneME with the patch.
        Committed revision 1298765.

        Show
        Knut Anders Hatlen added a comment - suites.All passed on phoneME with the patch. Committed revision 1298765.
        Knut Anders Hatlen made changes -
        Attachment d5642.diff [ 12517687 ]
        Hide
        Knut Anders Hatlen added a comment -

        The attached patch makes BaseTestCase.execJavaCmd() pass -Xmx32M to the forked process on CVM-based VMs. This makes OCRecoveryTest pass on phoneME and OJEC in my environment.

        Show
        Knut Anders Hatlen added a comment - The attached patch makes BaseTestCase.execJavaCmd() pass -Xmx32M to the forked process on CVM-based VMs. This makes OCRecoveryTest pass on phoneME and OJEC in my environment.
        Knut Anders Hatlen made changes -
        Field Original Value New Value
        Status Open [ 1 ] In Progress [ 3 ]
        Hide
        Knut Anders Hatlen added a comment -

        OCRecoveryTest forks a new process that runs with default memory settings. The default memory settings are very low on phoneME (default max heap size is 5 MB) and the forked process runs out of memory while populating the test table. We should probably pass a flag to increase the heap size of the forked JVM.

        Show
        Knut Anders Hatlen added a comment - OCRecoveryTest forks a new process that runs with default memory settings. The default memory settings are very low on phoneME (default max heap size is 5 MB) and the forked process runs out of memory while populating the test table. We should probably pass a flag to increase the heap size of the forked JVM.
        Knut Anders Hatlen created issue -

          People

          • Assignee:
            Knut Anders Hatlen
            Reporter:
            Knut Anders Hatlen
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development