Hi,
you should be able to pass JVM arguments using "-PjvmArgs".
This should work: gradlew ofbiz -PjvmArgs="-Xms1024M -Xmx2048M"
This is implemented in build.gradle and README.doc. If this still fails,
please open a Jira bug issue with detailed description of used version
and process.
Maybe there is a bug using this together with ofbizBackground.
Best regards,
Michael Brohl
ecomify GmbH - www.ecomify.de
Am 10.01.22 um 16:51 schrieb Bs Serge:
Hi all,
I'm starting OFBIZ in the background but I'm failing to add memory JVM
options using below commands :
./gradlew ofbizBackground -PjvmArgs="-Xms1024m -Xmx11g"
./gradlew -Porg.gradle.jvmargs=-Xmx11g ofbizBackground
Below is the command that ends up getting executed with Xms128M -Xmx1024M
instead of specified -Xms1024m -Xmx11g in the command
java -Xms128M -Xmx1024M -Dfile.encoding=UTF-8 -Duser.country
-Duser.language=en -Duser.variant -cp /var/www/build/libs/ofbiz.jar
org.apache.ofbiz.base.start.Start
I found the above command in htop.
Kindly let me know how to start OFBIZ in the background with JVM options.
Best regards,