Dieter Vaesen
01/11/2024, 12:55 AMorg.gradle.jvmargs=-Xmx256m
Follow up question
Does anyone know how to increase performance when passing these base64 images via json.encode(...)
I'm currently trying to use gzip but it seems i can only use it in my jvmain folder and not my jsmain or commonmainDavid Herman
01/11/2024, 3:34 AMDavid Herman
01/11/2024, 3:34 AMDavid Herman
01/11/2024, 3:35 AMDieter Vaesen
01/11/2024, 9:25 AMCLOVIS
01/11/2024, 9:42 AMThis sets the memory given to Gradle itself, not the memory given to the started apps. I believe Kobweb uses theCopy codeorg.gradle.jvmargs=-Xmx256m
application
plugin? (Not 100% sure, sorry). In that case, you can use:
application {
applicationDefaultJvmArgs = listOf("-Xmx256m")
}
CLOVIS
01/11/2024, 9:43 AMDieter Vaesen
01/11/2024, 12:08 PMDieter Vaesen
01/11/2024, 12:09 PMDieter Vaesen
01/11/2024, 12:09 PMDieter Vaesen
01/11/2024, 12:41 PMS.
01/11/2024, 12:51 PMjava -jar -Xmx256m file.jar
Dieter Vaesen
01/11/2024, 1:22 PMS.
01/11/2024, 1:25 PMDieter Vaesen
01/11/2024, 1:31 PMDieter Vaesen
01/11/2024, 1:32 PMS.
01/11/2024, 1:33 PMDieter Vaesen
01/11/2024, 1:36 PMDieter Vaesen
01/11/2024, 1:36 PMS.
01/11/2024, 1:38 PMCLOVIS
01/11/2024, 1:38 PMJAVA_OPTIONS="-Xmx256m"
in that "environement variables" selector.
However, that will only impact running the app from IntelliJ. It won't do anything to your deployed app.S.
01/11/2024, 1:39 PMDieter Vaesen
01/11/2024, 1:47 PMDieter Vaesen
01/11/2024, 1:47 PMCLOVIS
01/11/2024, 1:47 PMCLOVIS
01/11/2024, 1:48 PMCLOVIS
01/11/2024, 1:48 PMDieter Vaesen
01/11/2024, 2:06 PMCLOVIS
01/11/2024, 2:07 PMDieter Vaesen
01/11/2024, 2:08 PMDieter Vaesen
01/11/2024, 7:08 PMDieter Vaesen
01/11/2024, 7:09 PMDavid Herman
01/11/2024, 7:29 PMDavid Herman
01/11/2024, 7:31 PMDavid Herman
01/11/2024, 7:31 PMDavid Herman
01/11/2024, 7:32 PMDavid Herman
01/11/2024, 7:32 PMDavid Herman
01/11/2024, 7:32 PMDavid Herman
01/11/2024, 7:33 PMDavid Herman
01/11/2024, 7:34 PM#!/bin/bash
# Find the kobweb project folder, using this file's location to start form
cd "$(dirname "$0")"
cd ../..
args="-Dkobweb.server.environment=PROD -Dkobweb.site.layout=KOBWEB -Dio.ktor.development=false -jar .kobweb/server/server.jar"
if [ -n "$KOBWEB_JAVA_HOME" ]; then
"$KOBWEB_JAVA_HOME/bin/java" $args
elif [ -n "$JAVA_HOME" ]; then
"$JAVA_HOME/bin/java" $args
else
java $args
fi
David Herman
01/11/2024, 7:35 PMkobweb run
does as wellDavid Herman
01/11/2024, 7:37 PMDavid Herman
01/11/2024, 7:39 PMDieter Vaesen
01/11/2024, 7:48 PMDavid Herman
01/11/2024, 7:57 PMDieter Vaesen
01/11/2024, 8:00 PMDavid Herman
01/11/2024, 8:01 PMDieter Vaesen
01/11/2024, 8:01 PMDavid Herman
01/11/2024, 8:01 PMDieter Vaesen
01/11/2024, 8:01 PMDavid Herman
01/11/2024, 8:01 PMDavid Herman
01/11/2024, 8:02 PMDavid Herman
01/11/2024, 8:02 PMCLOVIS
01/11/2024, 8:03 PMDieter Vaesen
01/11/2024, 8:06 PMDieter Vaesen
01/11/2024, 8:07 PMDavid Herman
01/11/2024, 8:07 PMDieter Vaesen
01/11/2024, 8:46 PM