Uploaded image for project: 'PUBLIC - Liferay Portal Community Edition'
  1. PUBLIC - Liferay Portal Community Edition
  2. LPS-95916

OutOfMemoryError appeared during the building for 7.1.x-private

    Details

    • Type: Bug
    • Status: Open
    • Resolution: Unresolved
    • Affects Version/s: 7.1.X
    • Fix Version/s: None
    • Labels:
      None

      Description

      java.lang.OutOfMemoryError appeared on building 7.1.x-private, eventhough have setted 8GB heap for ant by ANT_OPTS="-Xmx8192m -XX:MaxMetaspaceSize=512m"
      7.1.x-private:0846919e195c7e36791c2029e4a54c9d06fd2087+7.1.x:aec27d5b6d078db430225f2813654b4e4a77d6f9

      NOTE: 3GB heap for ant worked well with this version:
      7.1.x-private:1e9eb4b418fa9ac52ef7c7653a2677c32e89588f + 7.1.x:3b6ac375257822aacade01233f447913facd2069

           [exec] 
           [exec] > Task :apps:portal-workflow:portal-workflow-kaleo-runtime-impl:compileJava
           [exec] 
           [exec] 
           [exec] The system is out of resources.
           [exec] Consult the following stack trace for details.
           [exec] java.lang.OutOfMemoryError: Java heap space
           [exec] 	at com.sun.tools.javac.file.ZipFileIndex$ZipDirectory.findCENRecord(ZipFileIndex.java:551)
           [exec] 	at com.sun.tools.javac.file.ZipFileIndex$ZipDirectory.<init>(ZipFileIndex.java:496)
           [exec] 	at com.sun.tools.javac.file.ZipFileIndex.checkIndex(ZipFileIndex.java:190)
           [exec] 	at com.sun.tools.javac.file.ZipFileIndex.<init>(ZipFileIndex.java:136)
           [exec] 	at com.sun.tools.javac.file.ZipFileIndexCache.getZipFileIndex(ZipFileIndexCache.java:100)
           [exec] 	at com.sun.tools.javac.file.JavacFileManager.openArchive(JavacFileManager.java:540)
           [exec] 	at com.sun.tools.javac.file.JavacFileManager.openArchive(JavacFileManager.java:462)
           [exec] 	at com.sun.tools.javac.file.JavacFileManager.listContainer(JavacFileManager.java:348)
           [exec] 	at com.sun.tools.javac.file.JavacFileManager.list(JavacFileManager.java:624)
           [exec] 	at com.sun.tools.javac.jvm.ClassReader.fillIn(ClassReader.java:2750)
           [exec] 	at com.sun.tools.javac.jvm.ClassReader.complete(ClassReader.java:2446)
           [exec] 	at com.sun.tools.javac.jvm.ClassReader.access$000(ClassReader.java:76)
           [exec] 	at com.sun.tools.javac.jvm.ClassReader$1.complete(ClassReader.java:240)
           [exec] 	at com.sun.tools.javac.code.Symbol.complete(Symbol.java:574)
           [exec] 	at com.sun.tools.javac.comp.Enter.visitTopLevel(Enter.java:300)
           [exec] 	at com.sun.tools.javac.tree.JCTree$JCCompilationUnit.accept(JCTree.java:518)
           [exec] 	at com.sun.tools.javac.comp.Enter.classEnter(Enter.java:258)
           [exec] 	at com.sun.tools.javac.comp.Enter.classEnter(Enter.java:272)
           [exec] 	at com.sun.tools.javac.comp.Enter.complete(Enter.java:486)
           [exec] 	at com.sun.tools.javac.comp.Enter.main(Enter.java:471)
           [exec] 	at com.sun.tools.javac.main.JavaCompiler.enterTrees(JavaCompiler.java:982)
           [exec] 	at com.sun.tools.javac.main.JavaCompiler.compile(JavaCompiler.java:857)
           [exec] 	at com.sun.tools.javac.main.Main.compile(Main.java:523)
           [exec] 	at com.sun.tools.javac.api.JavacTaskImpl.doCall(JavacTaskImpl.java:129)
           [exec] 	at com.sun.tools.javac.api.JavacTaskImpl.call(JavacTaskImpl.java:138)
           [exec] 	at org.gradle.api.internal.tasks.compile.AnnotationProcessingCompileTask.call(AnnotationProcessingCompileTask.java:89)
           [exec] 	at org.gradle.api.internal.tasks.compile.ResourceCleaningCompilationTask.call(ResourceCleaningCompilationTask.java:57)
           [exec] 	at org.gradle.api.internal.tasks.compile.JdkJavaCompiler.execute(JdkJavaCompiler.java:50)
           [exec] 	at org.gradle.api.internal.tasks.compile.JdkJavaCompiler.execute(JdkJavaCompiler.java:36)
           [exec] 	at org.gradle.api.internal.tasks.compile.NormalizingJavaCompiler.delegateAndHandleErrors(NormalizingJavaCompiler.java:100)
           [exec] 	at org.gradle.api.internal.tasks.compile.NormalizingJavaCompiler.execute(NormalizingJavaCompiler.java:52)
           [exec] 	at org.gradle.api.internal.tasks.compile.NormalizingJavaCompiler.execute(NormalizingJavaCompiler.java:38)
           [exec] 
           [exec] > Task :apps:portal-workflow:portal-workflow-kaleo-runtime-impl:compileJava FAILED
      
      

       

        Attachments

          Activity

            People

            • Assignee:
              support-lep@liferay.com SE Support
              Reporter:
              lily.chi Lily Chi
              Participants of an Issue:
              Recent user:
              Lily Chi
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Days since last comment:
                24 weeks, 4 days ago

                Packages

                Version Package