diff --git a/phoenicis-dist/src/scripts/phoenicis-create-package.sh b/phoenicis-dist/src/scripts/phoenicis-create-package.sh index bdc76d0c5a6..e45234c4f34 100755 --- a/phoenicis-dist/src/scripts/phoenicis-create-package.sh +++ b/phoenicis-dist/src/scripts/phoenicis-create-package.sh @@ -34,9 +34,9 @@ fi PHOENICIS_TARGET="$SCRIPT_PATH/../../target" PHOENICIS_JPACKAGER="$SCRIPT_PATH/../../target/jpackager" PHOENICIS_RESOURCES="$SCRIPT_PATH/../resources" +PHOENICIS_JVM_ARGS="-Xint -XX:+UseG1GC -XX:MaxHeapFreeRatio=10 -XX:MinHeapFreeRatio=5 -XX:-ShrinkHeapInSteps -Xmx950m -Xms32m -Xss196k" PHOENICIS_MODULES="java.base,javafx.base,javafx.media,javafx.graphics,javafx.controls,java.naming,java.sql,java.scripting,jdk.scripting.nashorn" -PHOENICIS_JPACKAGER_ARGUMENTS=("-i" "$PHOENICIS_TARGET/lib" "--main-jar" "phoenicis-javafx-$VERSION.jar" "-n" "$PHOENICIS_APPTITLE" "--output" "$PHOENICIS_TARGET/packages/" "--add-modules" "$PHOENICIS_MODULES" "-p" "$PHOENICIS_TARGET/lib/" "--version" "$VERSION") - +PHOENICIS_JPACKAGER_ARGUMENTS=("-i" "$PHOENICIS_TARGET/lib" "--jvm-args" "$PHOENICIS_JVM_ARGS" "--main-jar" "phoenicis-javafx-$VERSION.jar" "-n" "$PHOENICIS_APPTITLE" "--output" "$PHOENICIS_TARGET/packages/" "--add-modules" "$PHOENICIS_MODULES" "-p" "$PHOENICIS_TARGET/lib/" "--version" "$VERSION") _download_jpackager() { mkdir -p "$PHOENICIS_JPACKAGER" diff --git a/phoenicis-multithreading/src/main/java/org/phoenicis/multithreading/MultithreadingConfiguration.java b/phoenicis-multithreading/src/main/java/org/phoenicis/multithreading/MultithreadingConfiguration.java index 2483bbe6536..91fc35a5948 100644 --- a/phoenicis-multithreading/src/main/java/org/phoenicis/multithreading/MultithreadingConfiguration.java +++ b/phoenicis-multithreading/src/main/java/org/phoenicis/multithreading/MultithreadingConfiguration.java @@ -30,12 +30,12 @@ public ControlledThreadPoolExecutorService scriptExecutorService() { @Bean public ControlledThreadPoolExecutorService appsExecutorService() { - return new ControlledThreadPoolExecutorService("Apps", 1, 1); + return new ControlledThreadPoolExecutorService("Apps", 2, 1); } @Bean public ControlledThreadPoolExecutorService containersExecutorService() { - return new ControlledThreadPoolExecutorService("Containers", 1, 5); + return new ControlledThreadPoolExecutorService("Containers", 2, 5); } @Bean