Uploaded image for project: 'Flume'
  1. Flume
  2. FLUME-2143

Flume build occasionally fails with OutOfMemoryError on Windows.

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Not A Problem
    • Affects Version/s: None
    • Fix Version/s: 1.7.0
    • Component/s: Build, Windows
    • Labels:

      Description

      The build sporadically fails in Flume with the following exception:

      [exec] The system is out of resources.
      [exec] Consult the following stack trace for details.

      [exec] java.lang.OutOfMemoryError: PermGen space

      [exec] at java.lang.ClassLoader.defineClass1(Native Method)

      [exec] at java.lang.ClassLoader.defineClassCond(ClassLoader.java:631)

      [exec] at java.lang.ClassLoader.defineClass(ClassLoader.java:615)

      [exec] at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:141)
      [exec] at java.net.URLClassLoader.defineClass(URLClassLoader.java:283)

      [exec] at java.net.URLClassLoader.access$000(URLClassLoader.java:58)

      [exec] at java.net.URLClassLoader$1.run(URLClassLoader.java:197)
      [exec] at java.security.AccessController.doPrivileged(Native Method)

      [exec] at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
      [exec] at org.codehaus.plexus.compiler.javac.IsolatedClassLoader.loadClass(IsolatedClassLoader.java:56)

      [exec] at com.sun.tools.javac.comp.Lower.mapForEnum(Lower.java:319)
      [exec] at com.sun.tools.javac.comp.Lower.visitEnumSwitch(Lower.java:3075)

      [exec] at com.sun.tools.javac.comp.Lower.visitSwitch(Lower.java:3066)

      [exec] at com.sun.tools.javac.tree.JCTree$JCSwitch.accept(JCTree.java:896)
      [exec] at com.sun.tools.javac.tree.TreeTranslator.translate(TreeTranslator.java:44)
      [exec] at com.sun.tools.javac.comp.Lower.translate(Lower.java:1899)

      [exec] at com.sun.tools.javac.tree.TreeTranslator.translate(TreeTranslator.java:56)

      [exec] at com.sun.tools.javac.tree.TreeTranslator.visitBlock(TreeTranslator.java:146)

      1. FLUME-2143.patch
        0.5 kB
        Roshan Naik

        Issue Links

          Activity

          Hide
          roshan_naik Roshan Naik added a comment -

          adding memory management settings to pom.xml for compiler plugin

          Show
          roshan_naik Roshan Naik added a comment - adding memory management settings to pom.xml for compiler plugin
          Hide
          hshreedharan Hari Shreedharan added a comment -

          Roshan - this is probably because of sphinx that generates the docs. Can you try adding this to your MVN_OPTS:
          -XX:PermSize=256m -XX:MaxPermSize=512m

          Show
          hshreedharan Hari Shreedharan added a comment - Roshan - this is probably because of sphinx that generates the docs. Can you try adding this to your MVN_OPTS: -XX:PermSize=256m -XX:MaxPermSize=512m
          Hide
          roshan_naik Roshan Naik added a comment - - edited

          This issue is not easily reproducible. It happens rarely w/o the patch. Hard to do a quick comparison with alternative fixes... other than trying it wait it out over several builds to go through.

          Show
          roshan_naik Roshan Naik added a comment - - edited This issue is not easily reproducible. It happens rarely w/o the patch. Hard to do a quick comparison with alternative fixes... other than trying it wait it out over several builds to go through.
          Hide
          roshan_naik Roshan Naik added a comment -

          update.. i have not been able to reproduce this issue after exporting MVN_OPTS. So i think thats a good solution.

          It would be better if we can capture this directly in the pom file. But i can find a way to do that at a global scope for maven in the pom file.

          Show
          roshan_naik Roshan Naik added a comment - update.. i have not been able to reproduce this issue after exporting MVN_OPTS. So i think thats a good solution. It would be better if we can capture this directly in the pom file. But i can find a way to do that at a global scope for maven in the pom file.
          Hide
          liorze Lior Zeno added a comment -

          Setting MAVEN_OPTS solves this issue.

          Show
          liorze Lior Zeno added a comment - Setting MAVEN_OPTS solves this issue.

            People

            • Assignee:
              roshan_naik Roshan Naik
              Reporter:
              roshan_naik Roshan Naik
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development