Derby
  1. Derby
  2. DERBY-4740

On Mac OSX 10.6 suites.All fails with Exception in thread "main" java.lang.OutOfMemoryError: PermGen space even with -XX:MaxPermSize=128M

    Details

    • Type: Bug Bug
    • Status: Open
    • Priority: Major Major
    • Resolution: Unresolved
    • Affects Version/s: 10.7.1.1
    • Fix Version/s: None
    • Component/s: Test
    • Environment:
      Mac OS X 10.6

      java version "1.6.0_20"
      Java(TM) SE Runtime Environment (build 1.6.0_20-b02-279-10M3065)
      Java HotSpot(TM) 64-Bit Server VM (build 16.3-b01-279, mixed mode)
    • Urgency:
      Low
    • Issue & fix info:
      Newcomer, Workaround attached
    • Bug behavior facts:
      Regression Test Failure

      Description

      On Mac OS X 10.6 I ran suites.All with:

      java -Dderby.tests.trace=true -XX:MaxPermSize=128M -Xmx1024M -Xms512M -DderbyTesting.oldReleasePath=/Users/kmarsden/Derby/svn/svnreleases/jars junit.textui.TestRunner org.apache.derbyTesting.functionTests.suites.All 2>&1 | tee rjall.out

      It failed in the upgrade tests with:
      testDMDconnClosed used 9 ms Test upgrade done.
      Test upgrade from: 10.2.2.0, phase: POST UPGRADE
      .
      noConnectionAfterHardUpgrade used 4 ms Test upgrade done.
      Test upgrade from: 10.3.1.4, phase: CREATE
      Exception in thread "main" java.lang.OutOfMemoryError: PermGen space

      I was able to work around the issue by setting -XX:MaxPermSize=256M but think perhaps the upgrade tests may be leaking class loaders.
      PhaseChanger.teardown() is careful to shutdown each database but not the Derby system, so it could be the class loaders are not getting garbage collected.

        Issue Links

          Activity

          Gavin made changes -
          Workflow jira [ 12515323 ] Default workflow, editable Closed status [ 12802007 ]
          Kathey Marsden made changes -
          Issue & fix info High Value Fix,Newcomer,Workaround attached [ 10422, 10423, 10427 ] Newcomer,Workaround attached [ 10423, 10427 ]
          Hide
          Kathey Marsden added a comment -

          Taking off HVF. I think this is likely fixed but need to verify.

          Show
          Kathey Marsden added a comment - Taking off HVF. I think this is likely fixed but need to verify.
          Knut Anders Hatlen made changes -
          Link This issue relates to DERBY-5316 [ DERBY-5316 ]
          Hide
          Knut Anders Hatlen added a comment -

          Do you still see this problem on trunk after DERBY-5316?

          Show
          Knut Anders Hatlen added a comment - Do you still see this problem on trunk after DERBY-5316 ?
          Myrna van Lunteren made changes -
          Urgency Low
          Labels derby_triage10_8
          Rick Hillegas made changes -
          Affects Version/s 10.7.1.1 [ 12315564 ]
          Affects Version/s 10.7.1.0 [ 12314971 ]
          Kathey Marsden made changes -
          Field Original Value New Value
          Affects Version/s 10.7.0.0 [ 12314971 ]
          Component/s Test [ 11413 ]
          Kathey Marsden created issue -

            People

            • Assignee:
              Unassigned
              Reporter:
              Kathey Marsden
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:

                Development