OpenJPA
  1. OpenJPA
  2. OPENJPA-1148

Build failures with 64bit Sun JDK6 on Linux due to PermGen space

    Details

    • Type: Test Test
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 2.0.0-M1, 2.0.0-M2
    • Fix Version/s: 2.0.0-M3
    • Component/s: build / infrastructure
    • Labels:
      None

      Description

      We're seeing builds fail with OOM PermGen space when using 64bit Sun JDK6 (but not IBM SDK 6) on Linux (but not MacOSX.)
      This will involve 2 parts:
      1) updating the test.jvm.arguments and surefire.jvm.args in the pom.xml files
      2) users and automated build servers will need to update their MAVEN_OPTS if they want to build with a 64bit JVM

        Activity

        Donald Woods created issue -
        Donald Woods made changes -
        Field Original Value New Value
        Assignee Donald Woods [ drwoods ]
        Hide
        Donald Woods added a comment -

        patch that cleans up the jvm arguments

        Show
        Donald Woods added a comment - patch that cleans up the jvm arguments
        Donald Woods made changes -
        Attachment OPENJPA-1148.patch [ 12412094 ]
        Hide
        Donald Woods added a comment -

        Removing the test.jvm.arguments in openjpa-slice and validation fixed the problems for me on Linux.
        Note: You will need to supply MAVEN_OPTS for your 64bit Java 6 builds, like the following (which resolved the automated build failures we were seeing):
        MacOSX and Windows - MAVEN_OPTS="-Xmx1024m -XX:MaxPermSize=256m"
        Linux - MAVEN_OPTS="-Xmx1024m -XX:MaxPermSize=512m"

        Show
        Donald Woods added a comment - Removing the test.jvm.arguments in openjpa-slice and validation fixed the problems for me on Linux. Note: You will need to supply MAVEN_OPTS for your 64bit Java 6 builds, like the following (which resolved the automated build failures we were seeing): MacOSX and Windows - MAVEN_OPTS="-Xmx1024m -XX:MaxPermSize=256m" Linux - MAVEN_OPTS="-Xmx1024m -XX:MaxPermSize=512m"
        Donald Woods made changes -
        Status Open [ 1 ] Resolved [ 5 ]
        Resolution Fixed [ 1 ]
        Donald Woods made changes -
        Fix Version/s 2.0.0-M3 [ 12314148 ]
        Fix Version/s 2.0.0 [ 12314019 ]
        Affects Version/s 2.0.0-M2 [ 12313483 ]
        Affects Version/s 2.0.0-M1 [ 12313624 ]
        Affects Version/s 2.0.0 [ 12314019 ]
        Donald Woods made changes -
        Status Resolved [ 5 ] Closed [ 6 ]

          People

          • Assignee:
            Donald Woods
            Reporter:
            Donald Woods
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development