Author: jacopoc
Date: Fri Jun 20 06:35:44 2008 New Revision: 669890 URL: http://svn.apache.org/viewvc?rev=669890&view=rev Log: Updated JVM memory settings for all the various scripts to start OFBiz: initial memory 128M, max memory 512M. Modified: ofbiz/trunk/build.xml ofbiz/trunk/rc.ofbiz ofbiz/trunk/startofbiz.bat ofbiz/trunk/startofbiz.sh Modified: ofbiz/trunk/build.xml URL: http://svn.apache.org/viewvc/ofbiz/trunk/build.xml?rev=669890&r1=669889&r2=669890&view=diff ============================================================================== --- ofbiz/trunk/build.xml (original) +++ ofbiz/trunk/build.xml Fri Jun 20 06:35:44 2008 @@ -20,7 +20,8 @@ <project name="OFBiz Main Build" default="build" basedir="."> <property name="site.dir" value="../site"/> - <property name="memory.max.param" value="-Xmx384M"/> + <property name="memory.initial.param" value="-Xms128M"/> + <property name="memory.max.param" value="-Xmx512M"/> <available file="applications/build.xml" property="applications.present"/> <available file="specialpurpose/build.xml" property="specialpurpose.present"/> @@ -248,11 +249,13 @@ <target name="run" depends="build"> <java jar="ofbiz.jar" fork="true"> + <jvmarg value="${memory.initial.param}"/> <jvmarg value="${memory.max.param}"/> </java> </target> <target name="run-pos" depends="build"> <java jar="ofbiz.jar" fork="true"> + <jvmarg value="${memory.initial.param}"/> <jvmarg value="${memory.max.param}"/> <arg value="pos"/> </java> @@ -260,6 +263,7 @@ <target name="run-install" depends="build" description="This loads all configured data; meant for generic OFBiz development, testing, demonstration, etc purposes"> <java jar="ofbiz.jar" fork="true"> + <jvmarg value="${memory.initial.param}"/> <jvmarg value="${memory.max.param}"/> <arg value="install"/> </java> @@ -267,6 +271,7 @@ <target name="run-install-seed" depends="build" description="This loads ONLY the seed data (not seed-initial, demo, ext* or anything else); meant for use after an update of the code to reload the seed data as it is generally maintained along with the code and needs to be in sync for operation"> <java jar="ofbiz.jar" fork="true"> + <jvmarg value="${memory.initial.param}"/> <jvmarg value="${memory.max.param}"/> <arg value="install"/> <arg value="readers=seed"/> @@ -275,6 +280,7 @@ <target name="run-install-extseed" depends="build" description="This loads seed, seed-initial and ext data; meant for manual/generic testing, development, or going into production with a derived system based on stock OFBiz where the ext data basically replaces the demo data"> <java jar="ofbiz.jar" fork="true"> + <jvmarg value="${memory.initial.param}"/> <jvmarg value="${memory.max.param}"/> <arg value="install"/> <arg value="readers=seed,seed-initial,ext"/> @@ -283,6 +289,7 @@ <target name="run-install-exttest" depends="build" description="This loads seed, seed-initial, ext and ext-test data; meant for automated testing with a derived system based on stock OFBiz"> <java jar="ofbiz.jar" fork="true"> + <jvmarg value="${memory.initial.param}"/> <jvmarg value="${memory.max.param}"/> <arg value="install"/> <arg value="readers=seed,seed-initial,ext,ext-test"/> @@ -290,6 +297,7 @@ </target> <target name="run-debug" depends="build"> <java jar="ofbiz.jar" fork="true"> + <jvmarg value="${memory.initial.param}"/> <jvmarg value="${memory.max.param}"/> <jvmarg value="-Xnoagent"/> <jvmarg value="-Djava.compiler=NONE"/> @@ -299,6 +307,7 @@ </target> <target name="run-tests" depends="build"> <java jar="ofbiz.jar" fork="true"> + <jvmarg value="${memory.initial.param}"/> <jvmarg value="${memory.max.param}"/> <arg value="test"/> </java> Modified: ofbiz/trunk/rc.ofbiz URL: http://svn.apache.org/viewvc/ofbiz/trunk/rc.ofbiz?rev=669890&r1=669889&r2=669890&view=diff ============================================================================== --- ofbiz/trunk/rc.ofbiz (original) +++ ofbiz/trunk/rc.ofbiz Fri Jun 20 06:35:44 2008 @@ -39,7 +39,7 @@ OFBIZ_LOG=$OFBIZ_HOME/runtime/logs/console.log # VM Options -JAVA_VMOPTIONS=-Xmx128M +JAVA_VMOPTIONS="-Xms128M -Xmx512M" # Java arguments JAVA_ARGS="-jar ofbiz.jar" Modified: ofbiz/trunk/startofbiz.bat URL: http://svn.apache.org/viewvc/ofbiz/trunk/startofbiz.bat?rev=669890&r1=669889&r2=669890&view=diff ============================================================================== --- ofbiz/trunk/startofbiz.bat (original) +++ ofbiz/trunk/startofbiz.bat Fri Jun 20 06:35:44 2008 @@ -19,7 +19,7 @@ REM ##################################################################### ECHO ON -"%JAVA_HOME%\bin\java" -Xms256M -Xmx512M -jar ofbiz.jar > runtime\logs\console.log +"%JAVA_HOME%\bin\java" -Xms128M -Xmx512M -jar ofbiz.jar > runtime\logs\console.log REM This one is for more of a debugging mode -REM "%JAVA_HOME%\bin\java" -Xms256M -Xmx512M -Xdebug -Xnoagent -Djava.compiler=NONE -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=5005 -jar ofbiz.jar > runtime\logs\console.log +REM "%JAVA_HOME%\bin\java" -Xms128M -Xmx512M -Xdebug -Xnoagent -Djava.compiler=NONE -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=5005 -jar ofbiz.jar > runtime\logs\console.log Modified: ofbiz/trunk/startofbiz.sh URL: http://svn.apache.org/viewvc/ofbiz/trunk/startofbiz.sh?rev=669890&r1=669889&r2=669890&view=diff ============================================================================== --- ofbiz/trunk/startofbiz.sh (original) +++ ofbiz/trunk/startofbiz.sh Fri Jun 20 06:35:44 2008 @@ -34,7 +34,7 @@ #automatic IP address for linux #IPADDR=`/sbin/ifconfig eth0 | grep 'inet addr:' | cut -d: -f2 | awk '{ print $1}'` #RMIIF="-Djava.rmi.server.hostname=$IPADDR" -MEMIF="-Xms128M -Xmx256M -Duser.language=en" +MEMIF="-Xms128M -Xmx512M -Duser.language=en" VMARGS="$MEMIF $DEBUG $RMIIF $ADMIN" # Worldpay Config |
Free forum by Nabble | Edit this page |