Foren
service build failed
guifeng.li li, geändert vor 9 Jahren.
service build failed
New Member Beiträge: 4 Beitrittsdatum: 22.12.14 Neueste Beiträge
hi all;
I builded service but got the following errror.
[Console output redirected to file:E:\liferaryproject\.metadata\.plugins\com.liferay.ide.sdk.core\sdk.log]
Buildfile: E:\Liferary\SDK\liferay-plugins-sdk-6.2\portlets\demo3-portlet\build.xml
build-service:
[jar] Building MANIFEST-only jar: E:\Liferary\SDK\liferay-plugins-sdk-6.2\portlets\demo3-portlet\build-service-classpath.jar
[delete] Deleting: E:\Liferary\SDK\liferay-plugins-sdk-6.2\portlets\demo3-portlet\build-service-classpath.jar.manifest
[java] Java Result: 1
[delete] Deleting: E:\Liferary\SDK\liferay-plugins-sdk-6.2\portlets\demo3-portlet\build-service-classpath.jar
[echo] Error: Could not create the Java Virtual Machine.Error occurred during initialization of VM
[echo] Could not reserve enough space for object heapError: A fatal exception has occurred. Program will exit.
BUILD FAILED
E:\Liferary\SDK\liferay-plugins-sdk-6.2\build-common-plugin.xml:246: Service Builder generated exceptions.
Total time: 1 second
Very appreciate for any suggestion and pointers..
I builded service but got the following errror.
[Console output redirected to file:E:\liferaryproject\.metadata\.plugins\com.liferay.ide.sdk.core\sdk.log]
Buildfile: E:\Liferary\SDK\liferay-plugins-sdk-6.2\portlets\demo3-portlet\build.xml
build-service:
[jar] Building MANIFEST-only jar: E:\Liferary\SDK\liferay-plugins-sdk-6.2\portlets\demo3-portlet\build-service-classpath.jar
[delete] Deleting: E:\Liferary\SDK\liferay-plugins-sdk-6.2\portlets\demo3-portlet\build-service-classpath.jar.manifest
[java] Java Result: 1
[delete] Deleting: E:\Liferary\SDK\liferay-plugins-sdk-6.2\portlets\demo3-portlet\build-service-classpath.jar
[echo] Error: Could not create the Java Virtual Machine.Error occurred during initialization of VM
[echo] Could not reserve enough space for object heapError: A fatal exception has occurred. Program will exit.
BUILD FAILED
E:\Liferary\SDK\liferay-plugins-sdk-6.2\build-common-plugin.xml:246: Service Builder generated exceptions.
Total time: 1 second
Very appreciate for any suggestion and pointers..
David H Nebinger, geändert vor 9 Jahren.
RE: service build failed
Liferay Legend Beiträge: 14915 Beitrittsdatum: 02.09.06 Neueste Beiträgeguifeng.li li:
[echo] Error: Could not create the Java Virtual Machine.Error occurred during initialization of VM
[echo] Could not reserve enough space for object heapError: A fatal exception has occurred. Program will exit.
Sometimes SB takes more than the standard JVM size to run. Increase your memory parameters and try again.
Manikantha Rajamani, geändert vor 9 Jahren.
RE: service build failed
Expert Beiträge: 258 Beitrittsdatum: 25.03.14 Neueste Beiträge
Hi
The error is due to heap space exception
Error: Could not create the Java Virtual Machine.Error occurred during initialization of VM
Could not reserve enough space for object heapError: A fatal exception has occurred. Program will exit.
-Xmx8192m -XX:MaxPermSize=2048m
just change these value for server...
then restart the server.
Regards
Manikantha R
The error is due to heap space exception
Error: Could not create the Java Virtual Machine.Error occurred during initialization of VM
Could not reserve enough space for object heapError: A fatal exception has occurred. Program will exit.
-Xmx8192m -XX:MaxPermSize=2048m
just change these value for server...
then restart the server.
Regards
Manikantha R
guifeng.li li, geändert vor 9 Jahren.
RE: service build failed
New Member Beiträge: 4 Beitrittsdatum: 22.12.14 Neueste Beiträge
I was a novice, could you tell me how to change these parameters? I have modified the parameters of eclipse.ini -Xms100m -Xmx1500m,But it is does not work
Manikantha Rajamani, geändert vor 9 Jahren.
RE: service build failed
Expert Beiträge: 258 Beitrittsdatum: 25.03.14 Neueste Beiträge
Hi
we made the below configuration in setenv.sh file inside tomcat bin folder and restarted the server.
JAVA_OPTS="-Djava.awt.headless=true -XX:+UseG1GC -Dfile.encoding=UTF8 -Duser.timezone=GMT -Xmx1024m -XX:MaxPermSize=256m $JAVA_OPTS "
OR
CATALINA_OPTS="$CATALINA_OPTS -Dfile.encoding=UTF8 -Djava.net.preferIPv4Stack=true -Dorg.apache.catalina.loader.WebappClassLoader.ENABLE_CLEAR_REFERENCES=false -Duser.timezone=GMT -Xmx1024m -XX:MaxPermSize=512m"
Depending on whether JAVA_OPTS or CATALINA_OPTS is specified in setenv.sh file
This setting was on linux try in the windows equivalent. ( setenv.bat)
Regards
Manikantha R
we made the below configuration in setenv.sh file inside tomcat bin folder and restarted the server.
JAVA_OPTS="-Djava.awt.headless=true -XX:+UseG1GC -Dfile.encoding=UTF8 -Duser.timezone=GMT -Xmx1024m -XX:MaxPermSize=256m $JAVA_OPTS "
OR
CATALINA_OPTS="$CATALINA_OPTS -Dfile.encoding=UTF8 -Djava.net.preferIPv4Stack=true -Dorg.apache.catalina.loader.WebappClassLoader.ENABLE_CLEAR_REFERENCES=false -Duser.timezone=GMT -Xmx1024m -XX:MaxPermSize=512m"
Depending on whether JAVA_OPTS or CATALINA_OPTS is specified in setenv.sh file
This setting was on linux try in the windows equivalent. ( setenv.bat)
Regards
Manikantha R
David H Nebinger, geändert vor 9 Jahren.
RE: service build failed
Liferay Legend Beiträge: 14915 Beitrittsdatum: 02.09.06 Neueste BeiträgeManikantha Rajamani:
we made the below configuration in setenv.sh file inside tomcat bin folder and restarted the server.
Seriously? Tell me what, exactly, you think any change to setenv.sh will have on the execution of SB within ant?
guifeng.li li, geändert vor 9 Jahren.
RE: service build failed
New Member Beiträge: 4 Beitrittsdatum: 22.12.14 Neueste Beiträge
Yesterday I restart the computer,and service build success,i have no idea about it . very greatful to David and Manikantha !