Hi,
please check "MaxPermSize" in frontend/webadmin/modules/pom.xml, it should look
like this:
<gwt-plugin.extraJvmArgs>-Xms1024M -Xmx2048M -XX:PermSize=256M
-XX:MaxPermSize=512M</gwt-plugin.extraJvmArgs>
[Note the "MaxPermSize=512M" setting.]
To speed up the build, you can try:
$ mvn clean install -Pdep,gwt-admin -Dgwt.compiler.localWorkers=4
-Dgwt.userAgent=gecko1_8 -Dmaven.test.skip
* gwt.compiler.localWorkers should match the number of processors available, its used to
parallelize GWT compilation task, e.g. in Java world something like
Runtime.availableProcessors()
* gwt.userAgent=gecko1_8 means "compile for Firefox browser only"
Regards,
Vojtech
----- Original Message -----
From: "Alon Bar-Lev" <alonbl(a)redhat.com>
To: "bigclouds" <bigclouds(a)163.com>
Cc: users(a)ovirt.org
Sent: Wednesday, March 27, 2013 12:30:09 PM
Subject: Re: [Users] make engine rpm error
Hm... so you need more memory... :(
----- Original Message -----
From: "bigclouds" <bigclouds(a)163.com>
To: "Alon Bar-Lev" <alonbl(a)redhat.com>
Cc: users(a)ovirt.org
Sent: Wednesday, March 27, 2013 1:07:29 PM
Subject: Re:Re: [Users] make engine rpm error
hi, alonbl
error remain. even i use Dgwt.compiler.localWorkers=1.
more error messages i copy here. it show the call stacks.
please have a look.
command i use: mvn clean install -e -Pgwt-admin,dep -DskipTests=true
-Dgwt.user.agent=gecko -Duser.agent=gecko -Dgwt.userAgent=gecko
-Dgwt.compiler.localWorkers=1
many thinks
[INFO] oVirt GWT UI common infrastructure ................ SUCCESS
[26.364s]
[INFO] WebAdmin .......................................... FAILURE
[29.023s]
[INFO] UserPortal ........................................ SKIPPED
[INFO] oVirt Server EAR .................................. SKIPPED
[INFO]
------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO]
------------------------------------------------------------------------
[INFO] Total time: 4:30.293s
[INFO] Finished at: Wed Mar 27 19:00:58 CST 2013
[INFO] Final Memory: 148M/355M
[INFO]
-------------------------------------------------------------------!
-----
[ERROR] Failed to execute goal org.codehaus.mojo:gwt-!
maven-plugin:2.3.0:compile (gwtcompile) on project webadmin: Command
[[
]] failed with status 1
at
org.codehaus.mojo.gwt.shell.AbstractGwtShellMojo$JavaCommand.execute(AbstractGwtShellMojo.java:422)
at
org.codehaus.mojo.gwt.shell.CompileMojo.compile(CompileMojo.java:301)
at
org.codehaus.mojo.gwt.shell.CompileMojo.doExecute(CompileMojo.java:224)
at
org.codehaus.mojo.gwt.shell.AbstractGwtShellMojo.execute(AbstractGwtShellMojo.java:134)
at
org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:101)
at
org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:209)
[ERROR] ]] failed with status 1
[ERROR] -> [Hel! p 1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to
execute goal org.codehaus.mojo:gwt-maven-plugin:2.3.0:compile
(gwtcompile) on project webadmin: Command
gLevel INFO -style OBF -war
/mnt/ovirt-engine/frontend/webadmin/modules/webadmin/target/webadmin-3.3.0-SNAPSHOT
-localWorkers 1 org.ovirt.engine.ui.webadmin.WebAdmin
]] failed with status 1
at
org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:217)
at
org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
at
org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
at
org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:84)
at org.apache.ma!
ven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleMod!
uleBuilder.java:59)
at
org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(LifecycleStarter.java:183)
at
org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:161)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:320)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156)
at org.apache.maven.cli.MavenCli.execute(MavenCli.java:537)
at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:196)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:141)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
&nbs! p; at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:601)
at
org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:290)
at
org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:230)
at
org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:409)
at
org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:352)
Caused by:
org.codehaus.mojo.gwt.shell.ForkedProcessExecutionException: Command
[[
----------------------------------------------------!
------------------------------------------------------------
!
At 2013-03-27 15:58:38,"Alon Bar-Lev" <alonbl@redhat.com> wrote:
>Try to add -Dgwt-plugin.localWorkers=1 to gwt-plugin.extraJvmArgs or
> RPMBUILD_EXTRA_ARGS="-D..." at make command.
>
>----- Original Message -----
>> From: "bigclouds" <bigclouds@163.com>
>> To: users@ovirt.org
>> Sent: Wednesday, March 27, 2013 4:57:31 AM
>> Subject: [Users] make engine rpm error
>>
>>
>>
>>
>> command 'make rpm' , this error is reported before, i follow steps
>> to
>> fix it ,but do not work .
>> centos 6.3, 2G memory.
>> thanks
>>
>> -----------------------fix---- <gwt-plugin.extraJvmArgs>-Xms1024M
>> -Xmx1024M -XX:PermSize=256M -XX:MaxPermS
>> + <gwt-plugin.extraJvmArgs>-Xmx1024M -XX:PermSize=256M
>> -XX:MaxPermSize=256M</
>>
>> ------------------
>> [INFO] WebAdmin .......................................... FAILURE
>> [28.994s]
>> [INFO] UserPortal ........................................ SKIPPED
>> [INFO] oVirt Server EAR .................................. SKIPPED
>> [INFO]
>> ------------------------------------------------------------------------
>> [INFO] BUILD FAILURE
>> [INFO]
>> ------------------------------------------------------------------------
>> [INFO] Total time: 4:58.903s
>> [INFO] Finished at: Tue Mar 26 23:29:09 CST 2013
>> [INFO] Final Memory: 149M/357M
>> [INFO]
>> ------------------------------------------------------------------------
>> [ERROR] Failed to execute goal
>> org.codehaus.mojo:gwt-maven-plugin:2.3.0:compile (gwtcompile) on
>> project webadmin: Command [[
>> [ERROR] /bin/sh -c
>> /usr/lib/jvm/java-1.7.0-openjdk-1.7.0.9.x86_64/jre/bin/java
>> -javaagent:/root/.m2
>> /repository/org/aspectj/aspectjweaver/1.6.11/aspectjweaver-1.6.11.jar
>> -Xms1024M -Xmx2048M -XX:PermSize=256M -XX:MaxPermSize=512M
>> '-Dgwt.dontPrune=org\.ovirt\.engine\.core\.(common|compat)\..*'
>> -classpath
>> /mnt/ovirt-engine/tmp.rpmbuild/BUILD/ovirt-engine-3.3.0/frontend/webadmin/modules/webadmin/src/main/java:/mnt/ovirt-engine/tmp.rpmbuild/BUILD/ovirt-engine-3.3.0/frontend/webadmin/modules/webadmin/target/generated-sources/annotations:/mnt/ovirt-engine/tmp.rpmbuild/BUILD/ovirt-engine-3.3.0/frontend/webadmin/modules/webadmin/target/generated-sources/gwt:/mnt/ovirt-engine/tmp.rpmbuild/BUILD/ovirt-engine-3.3.0/frontend/webadmin/modules/webadmin/src/main/resources:/mnt/ovirt-engine/tmp.rpmbuild/BUILD/ovirt-engine-3.3.0/frontend/webadmin/modules/webadmin/target/webadmin-3.3.0-SNAPSHOT/WEB-INF/classes:/root/.m2/repository/com/google/gwt/gwt-user/2.3.0/gwt-user-2.3.0.jar:/root/.m2/repository/com/google/gwt/gwt-dev/2.3.0/gwt-dev-2.3.0.jar:/root/.m2/repository/com/gwtplatform/gwtp-mvp-
>> client/0.6/gwtp-mvp-client-0.6.jar:/root/.m2/repository/com/gwtplatform/gwtp-clients-common/0.6/gwtp-clients-common-0.6.jar:/root/.m2/repository/com/gwtplatform/gwtp-processors/0.6/gwtp-processors-0.6.jar:/root/.m2/repository/com/google/inject/guice/3.0/guice-3.0.jar:/root/.m2/repository/javax/inject/javax.inject/1/javax.inject-1.jar:/root/.m2/repository/aopalliance/aopalliance/1.0/aopalliance-1.0.jar:/root/.m2/repository/com/google/inject/extensions/guice-assistedinject/3.0/guice-assistedinject-3.0.jar:/root/.m2/repository/com/google/gwt/inject/gin/1.5.0/gin-1.5.0.jar:/mnt/ovirt-engine/tmp.rpmbuild/BUILD/ovirt-engine-3.3.0/frontend/webadmin/modules/uicommonweb/target/uicommonweb-3.3.0-SNAPSHOT.jar:/mnt/ovirt-engine/tmp.rpmbuild/BUILD/ovirt-engine-3.3.0/backend/manager/modules/searchbackend/target/searchbackend-3.3.0-SNAPSHOT.jar:/mnt/ovirt-engine/tmp.rpmbuild/BUILD/ovirt-engine-3.3.0/frontend/webadmin/modules/uicompat/target/uicompat-3.3.0-SNAPSHOT.jar:/mnt/ov!
irt-engine/tmp
>> .rpmbuild/BUILD/ovirt-engine-3.3.0/backend/manager/modules/common/target/common-3.3.0-SNAPSHOT-sources.jar:/mnt/ovirt-engine/tmp.rpmbuild/BUILD/ovirt-engine-3.3.0/backend/manager/modules/compat/target/compat-3.3.0-SNAPSHOT-sources.jar:/mnt/ovirt-engine/tmp.rpmbuild/BUILD/ovirt-engine-3.3.0/backend/manager/modules/searchbackend/target/searchbackend-3.3.0-SNAPSHOT-sources.jar:/mnt/ovirt-engine/tmp.rpmbuild/BUILD/ovirt-engine-3.3.0/frontend/webadmin/modules/gwt-common/target/gwt-common-3.3.0-SNAPSHOT.jar:/mnt/ovirt-engine/tmp.rpmbuild/BUILD/ovirt-engine-3.3.0/frontend/webadmin/modules/frontend/target/frontend-3.3.0-SNAPSHOT.jar:/mnt/ovirt-engine/tmp.rpmbuild/BUILD/ovirt-engine-3.3.0/frontend/webadmin/modules/gwt-extension/target/gwt-extension-3.3.0-SNAPSHOT.jar:/root/.m2/repository/javax/xml/bind/jaxb-api/2.1/jaxb-api-2.1.jar:/root/.m2/repository/javax/xml/stream/stax-api/1.0-2/stax-api-1.0-2.jar:/root/.m2/repository/javax/activation/activation/1.1/activation-1.1.!
jar:/root/.m2/
>> repository/org/jboss/spec/javax/servlet/jboss-servlet-api_3.0_spec/1.0.1.Final/jboss-servlet-api_3.0_spec-1.0.1.Final.jar:/root/.m2/repository/org/jboss/spec/javax/ejb/jboss-ejb-api_3.1_spec/1.0.1.Final/jboss-ejb-api_3.1_spec-1.0.1.Final.jar:/root/.m2/repository/org/aspectj/aspectjweaver/1.6.11/aspectjweaver-1.6.11.jar:/root/.m2/repository/commons-logging/commons-logging/1.1/commons-logging-1.1.jar:/root/.m2/repository/log4j/log4j/1.2.16/log4j-1.2.16.jar:/root/.m2/repository/logkit/logkit/1.0.1/logkit-1.0.1.jar:/root/.m2/repository/avalon-framework/avalon-framework/4.1.3/avalon-framework-4.1.3.jar:/mnt/ovirt-engine/tmp.rpmbuild/BUILD/ovirt-engine-3.3.0/backend/manager/modules/utils/target/utils-3.3.0-SNAPSHOT.jar:/root/.m2/repository/commons-beanutils/commons-beanutils/1.8.2/commons-beanutils-1.8.2.jar:/root/.m2/repository/commons-collections/commons-collections/3.1/commons-collections-3.1.jar:/mnt/ovirt-engine/tmp.rpmbuild/BUILD/ovirt-engine-3.3.0/backend/mana!
ger/modules/co
>> mpat/target/compat-3.3.0-SNAPSHOT.jar:/root/.m2/repository/org/apache/mina/mina-core/2.0.1/mina-core-2.0.1.jar:/root/.m2/repository/org/slf4j/slf4j-api/1.5.11/slf4j-api-1.5.11.jar:/root/.m2/repository/org/apache/sshd/sshd-core/0.7.0/sshd-core-0.7.0.jar:/root/.m2/repository/org/ovirt/otopi/otopi/1.0.0/otopi-1.0.0.jar:/root/.m2/repository/org/ovirt/ovirt-host-deploy/ovirt-host-deploy/1.0.0/ovirt-host-deploy-1.0.0.jar:/root/.m2/repository/org/apache/commons/commons-compress/1.4.1/commons-compress-1.4.1.jar:/root/.m2/repository/org/tukaani/xz/1.0/xz-1.0.jar:/mnt/ovirt-engine/tmp.rpmbuild/BUILD/ovirt-engine-3.3.0/backend/manager/modules/common/target/common-3.3.0-SNAPSHOT.jar:/root/.m2/repository/org/hibernate/hibernate-validator/4.0.2.GA/hibernate-validator-4.0.2.GA.jar:/root/.m2/repository/javax/validation/validation-api/1.0.0.GA/validation-api-1.0.0.GA.jar:/root/.m2/repository/com/sun/xml/bind/jaxb-impl/2.1.3/jaxb-impl-2.1.3.jar:/root/.m2/repository/commons-lang/!
commons-lang/2
>> .6/commons-lang-2.6.jar:/root/.m2/repository/commons-codec/commons-codec/1.4/commons-codec-1.4.jar:/root/.m2/repository/org/apache/xmlrpc/xmlrpc-client/3.1.3/xmlrpc-client-3.1.3.jar:/root/.m2/repository/org/apache/xmlrpc/xmlrpc-common/3.1.3/xmlrpc-common-3.1.3.jar:/root/.m2/repository/org/apache/ws/commons/util/ws-commons-util/1.0.2/ws-commons-util-1.0.2.jar:/root/.m2/repository/xml-apis/xml-apis/1.0.b2/xml-apis-1.0.b2.jar:/root/.m2/repository/commons-httpclient/commons-httpclient/3.1/commons-httpclient-3.1.jar:/root/.m2/repository/org/codehaus/jackson/jackson-core-asl/1.9.4/jackson-core-asl-1.9.4.jar:/root/.m2/repository/org/codehaus/jackson/jackson-mapper-asl/1.9.4/jackson-mapper-asl-1.9.4.jar:/root/.m2/repository/org/springframework/spring-core/3.1.1.RELEASE/spring-core-3.1.1.RELEASE.jar:/root/.m2/repository/org/springframework/spring-asm/3.1.1.RELEASE/spring-asm-3.1.1.RELEASE.jar:/root/.m2/repository/com/google/gwt/gwt-user/2.3.0/gwt-user-2.3.0.jar:/root/.m!
2/repository/j
>> avax/validation/validation-api/1.0.0.GA/validation-api-1.0.0.GA.jar:/root/.m2/repository/javax/validation/validation-api/1.0.0.GA/validation-api-1.0.0.GA-sources.jar:/root/.m2/repository/com/google/gwt/gwt-dev/2.3.0/gwt-dev-2.3.0.jar:/mnt/ovirt-engine/tmp.rpmbuild/BUILD/ovirt-engine-3.3.0/frontend/webadmin/modules/gwt-extension/target/gwt-extension-3.3.0-SNAPSHOT-sources.jar:/mnt/ovirt-engine/tmp.rpmbuild/BUILD/ovirt-engine-3.3.0/frontend/webadmin/modules/uicommonweb/target/uicommonweb-3.3.0-SNAPSHOT-sources.jar
>> com.google.gwt.dev.Compiler -gen
>> /mnt/ovirt-engine/tmp.rpmbuild/BUILD/ovirt-engine-3.3.0/frontend/webadmin/modules/webadmin/gen
>> -logLevel INFO -style OBF -war
>> /mnt/ovirt-engine/tmp.rpmbuild/BUILD/ovirt-engine-3.3.0/frontend/webadmin/modules/webadmin/target/webadmin-3.3.0-SNAPSHOT
>> -localWorkers 1 org.ovirt.engine.ui.webadmin.WebAdmin
>> [ERROR] ]] failed with status 1
>> [ERROR] -> [Help 1]
>> [ERROR]
>> [ERROR] To see the full stack trace of the errors, re-run Ma ven
>> with
>> the -e switch.
>> [ERROR] Re-run Maven using the -X switch to enable full debug
>> logging.
>> [ERROR]
>> [ERROR] For more information about the errors and possible
>> solutions,
>> please read the following articles:
>> [ERROR] [Help 1]
>> http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException
>> [ERROR]
>> [ERROR] After correcting the problems, you can resume the build
>> with
>> the command
>> [ERROR] mvn <goals> -rf :webadmin
>> make[1]: *** [tmp.built] Error 1
>> make[1]: Leaving directory
>> `/mnt/ovirt-engine/tmp.rpmbuild/BUILD/ovirt-engine-3.3.0'
>> error: Bad exit status from /var/tmp/rpm-tmp.PWi3Y9 (%build)
>>
>> RPM build errors:
>> Bad exit status from /var/tmp/rpm-tmp.PWi3Y9 (%build)
>> make: *** [rpm] Error 1
>>
>>
>> _______________________________________________
>> Users mailing list
>> Users(a)ovirt.org
>> http://lists.ovirt.org/mailman/listinfo/users
>>
_______________________________________________
Users mailing list
Users(a)ovirt.org
http://lists.ovirt.org/mailman/listinfo/users