Changing heap space in compilation to avoid problem
[javac] Could not reserve enough space for object heap Following recommendations from Sun: " Consider setting the maximum heap size to 1/4 the total physical memory on the server and setting the minimum to 1/2 of the maximum heap Sun recommends that ms be set to somewhere between 1/10 and 1/4 of the mx setting. "
This commit is contained in:
parent
e64348c3a8
commit
2293e07c6e
|
@ -12,10 +12,10 @@
|
|||
@SET ANT_CLASSPATH=%CLASSPATH%;..\tools\lib\ant.jar;..\tools\lib\ant-launcher.jar;..\tools\lib\ant-swing.jar;..\tools\lib\ant-commons-net.jar;..\tools\lib\commons-net-1.4.0.jar
|
||||
@SET ANT_CLASSPATH=%ANT_CLASSPATH%;"%JAVA_HOME%\lib\tools.jar"
|
||||
|
||||
@SET ANT_OPTS=-Xms512m -Xmx512m
|
||||
@SET ANT_OPTS=-Xms128m -Xmx512m
|
||||
|
||||
@echo Cleanup ...
|
||||
@"%JAVA_HOME%\bin\java" %ANT_OPTS% -classpath %ANT_CLASSPATH% -Dant.home="." org.apache.tools.ant.Main clean
|
||||
"%JAVA_HOME%\bin\java" %ANT_OPTS% -classpath %ANT_CLASSPATH% -Dant.home="." org.apache.tools.ant.Main clean
|
||||
|
||||
@echo Building ...
|
||||
@"%JAVA_HOME%\bin\java" %ANT_OPTS% -classpath %ANT_CLASSPATH% -Dant.home="." org.apache.tools.ant.Main -logger org.apache.tools.ant.listener.MailLogger complete
|
||||
|
|
|
@ -23,11 +23,13 @@ fi
|
|||
#classpath
|
||||
export ANT_CLASSPATH=$CLASSPATH:../tools/lib/ant.jar:../tools/lib/ant-launcher.jar:../tools/lib/ant-swing.jar:../tools/lib/ant-commons-net.jar:../tools/lib/commons-net.jar:$JAVA_HOME/lib/tools.jar
|
||||
|
||||
export ANT_OPTS="-Xms128m -Xmx512m"
|
||||
|
||||
echo Cleanup ...
|
||||
$JAVA_HOME/bin/java -Xmx512m -classpath $ANT_CLASSPATH -Dant.home="." org.apache.tools.ant.Main clean
|
||||
$JAVA_HOME/bin/java $ANT_OPTS -classpath $ANT_CLASSPATH -Dant.home="." org.apache.tools.ant.Main clean
|
||||
|
||||
echo Building ...
|
||||
$JAVA_HOME/bin/java -Xmx512m -classpath $ANT_CLASSPATH -Dant.home="." org.apache.tools.ant.Main -logger org.apache.tools.ant.listener.MailLogger complete
|
||||
$JAVA_HOME/bin/java $ANT_OPTS -classpath $ANT_CLASSPATH -Dant.home="." org.apache.tools.ant.Main -logger org.apache.tools.ant.listener.MailLogger complete
|
||||
|
||||
echo Done ...
|
||||
|
||||
|
|
|
@ -12,10 +12,10 @@
|
|||
@SET ANT_CLASSPATH=%CLASSPATH%;..\tools\lib\ant.jar;..\tools\lib\ant-launcher.jar;..\tools\lib\ant-swing.jar;..\tools\lib\ant-commons-net.jar;..\tools\lib\commons-net-1.4.0.jar
|
||||
@SET ANT_CLASSPATH=%ANT_CLASSPATH%;"%JAVA_HOME%\lib\tools.jar"
|
||||
|
||||
@SET ANT_OPTS="-Xms512m -Xmx512m"
|
||||
@SET ANT_OPTS=-Xms128m -Xmx512m
|
||||
|
||||
@echo Building ...
|
||||
@"%JAVA_HOME%\bin\java" -classpath %ANT_CLASSPATH% -Dant.home="." %ANT_PROPERTIES% org.apache.tools.ant.Main update
|
||||
@"%JAVA_HOME%\bin\java" %ANT_OPTS% -classpath %ANT_CLASSPATH% -Dant.home="." %ANT_PROPERTIES% org.apache.tools.ant.Main update
|
||||
@Echo ErrorLevel = %ERRORLEVEL%
|
||||
|
||||
@IF NOT ERRORLEVEL 0 GOTO BUILDOK
|
||||
|
|
|
@ -34,8 +34,10 @@ fi
|
|||
#classpath
|
||||
export ANT_CLASSPATH=$CLASSPATH:../tools/lib/ant.jar:../tools/lib/ant-launcher.jar:../tools/lib/ant-swing.jar:../tools/lib/ant-commons-net.jar:../tools/lib/commons-net.jar:$JAVA_HOME/lib/tools.jar
|
||||
|
||||
export ANT_OPTS="-Xms128m -Xmx512m"
|
||||
|
||||
echo Building ...
|
||||
$JAVA_HOME/bin/java -classpath $ANT_CLASSPATH -Dant.home="." org.apache.tools.ant.Main update
|
||||
$JAVA_HOME/bin/java $ANT_OPTS -classpath $ANT_CLASSPATH -Dant.home="." org.apache.tools.ant.Main update
|
||||
|
||||
# start adempiere server
|
||||
if [ $ADEMPIERE_HOME ] ; then
|
||||
|
|
Loading…
Reference in New Issue