2 Replies Latest reply: Nov 29, 2011 4:08 PM by 886549 RSS

    Heap size full Error message displayed when build par file in Eclispe.

      We are getting below error message.

      [plugin-assemble] Java returned: 1
      [plugin-assemble] at org.apache.tools.ant.taskdefs.Java.execute(Java.java:107)
      [plugin-assemble] at com.mslv.oms.j2ee.deploytool.automation.c.a(Unknown Source)
      [plugin-assemble] at com.mslv.oms.deploytool.api.d.a(Unknown Source)
      [plugin-assemble] at com.mslv.oms.deploytool.anttasks.OMSPluginAssemble.execute(Unknown Source)
      [plugin-assemble] at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288)
      [plugin-assemble] at sun.reflect.GeneratedMethodAccessor3.invoke(Unknown Source)
      [plugin-assemble] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      [plugin-assemble] at java.lang.reflect.Method.invoke(Method.java:597)
      [plugin-assemble] at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:105)
      [plugin-assemble] at org.apache.tools.ant.Task.perform(Task.java:348)
      [plugin-assemble] at org.apache.tools.ant.Target.execute(Target.java:357)
      [plugin-assemble] at org.apache.tools.ant.Target.performTasks(Target.java:385)
      [plugin-assemble] at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1329)
      [plugin-assemble] at org.apache.tools.ant.Project.executeTarget(Project.java:1298)
      [plugin-assemble] at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
      [plugin-assemble] at org.eclipse.ant.internal.ui.antsupport.EclipseDefaultExecutor.executeTargets(EclipseDefaultExecutor.java:32)
      [plugin-assemble] at org.apache.tools.ant.Project.executeTargets(Project.java:1181)
      [plugin-assemble] at org.eclipse.ant.internal.ui.antsupport.InternalAntRunner.run(InternalAntRunner.java:423)
      [plugin-assemble] at org.eclipse.ant.internal.ui.antsupport.InternalAntRunner.main(InternalAntRunner.java:137)

      we tried various option to change Xmx & XXMaxPermSize in eclispe ini file.


      Your help is highly appreciated.
        • 1. Re: Heap size full Error message displayed when build par file in Eclispe.
          The solution we got for this problem is that we were using JDK 1.6.16 and we changed it to JDK 1.6.26
          This problem is resolved.
          • 2. Re: Heap size full Error message displayed when build par file in Eclispe.
            I have a couple of recommendations, hopefully they will help:

            1. In the Design Studio installation it mentions that you have to append: -vmargs -Dsun.lang.ClassLoader.allowArraySyntax=true to the shortcut created to launch it. Eclipse won't take both: the configuration on your eclipse.ini and the arguments in the shortcut, I recommend to just use the eclipse.ini
            Make sure that your configuration is what you have specified by going to:
            - In Design Studio open menu: Help ->About Eclipse Platform ->Configuration Details …

            2. When you are using Ant to build, deploy a project you may run into Java Heap problem. You may need to increase the amount of memory Ant is allowed to use for your project, to do that:
            - In Design Studio open menu: Run->External Tools->Open External Tools Dialog…
            - Select the build script you want to change on the left view.
            - Select the JRE tab on the right
            - Set the following as VM arguments: -Xms768m -Xmx1024m -XX:MaxPermSize=512m (this is just an example, adjust the values to your computer specifications)