Julien Plissonneau Duquène
12/05/2024, 5:43 PM-XX:+HeapDumpOnOutOfMemoryError
for example) and 3. specify jvm args for the Kotlin daemon?
\_ /usr/lib/jvm/java-11-openjdk-amd64/bin/java --add-opens=java.base/java.lang=ALL-UNNAMED --add-opens=java.base/java.lang.invoke=...
\_ /usr/lib/jvm/java-11-openjdk-amd64/bin/java -XX:+HeapDumpOnOutOfMemoryError --add-exports=jdk.compiler/com.sun.tools.javac...
\_ /usr/lib/jvm/java-11-openjdk-amd64/bin/java -XX:+HeapDumpOnOutOfMemoryError --add-exports=jdk.compiler/com.sun.tools.javac...
\_ /usr/lib/jvm/java-11-openjdk-amd64/bin/java -XX:+HeapDumpOnOutOfMemoryError --add-exports=jdk.compiler/com.sun.tools.javac...
\_ /usr/lib/jvm/java-11-openjdk-amd64/bin/java -cp /...
Julien Plissonneau Duquène
12/05/2024, 5:57 PMgradle.properties
(project root) are correctly applied to the daemon (excepted the gradle.user.home
system property but that's another story)
• org.gradle.parallel
is not set
• maybe I have missed some system properties for the gradle and kotlin workers?Laura Kassovic
12/06/2024, 3:00 AMorg.gradle.jvmargs
and kotlin.daemon.jvmargs
for jvm optionsLaura Kassovic
12/06/2024, 3:08 AMgradle.properties
file:
org.gradle.jvmargs=-Xmx5g -XX:MaxMetaspaceSize=1g -Dsun.java2d.debugfonts=true
kotlin.daemon.jvmargs=-Xmx16g
Julien Plissonneau Duquène
12/06/2024, 9:21 AMkotlin.daemon.jvmargs
I missed that one
for the gradle workers I found out that they were spawned by the use of options.fork = true
(see there) and that's also the project that set the JVM args used for these
one remaining issue it that IDEA CE starts the main daemon with maxWorkerCount=4
and I can't find where this is configurable, if this is configurable...Vampire
12/06/2024, 9:36 AMorg.gradle.workers.max
controls the max workers: https://docs.gradle.org/current/userguide/build_environment.htmlJulien Plissonneau Duquène
12/06/2024, 9:46 AMStartParameters
(same as command line args) and that takes precedence over values set through properties files, I have the same issue with gradle.user.home
Vampire
12/06/2024, 9:49 AMGRADLE_USER_HOME
it is considered also from IntelliJ execution while a startparameter would take precedence.Julien Plissonneau Duquène
12/06/2024, 10:16 AMmaxWorkerCount=1
must have been some default value set by the daemon at startup, a bit surprising with parallelProjectExecution=false
all that time
thanksVampire
12/06/2024, 11:17 AMVampire
12/06/2024, 11:18 AMVampire
12/06/2024, 11:18 AMVampire
12/06/2024, 11:19 AMJulien Plissonneau Duquène
12/06/2024, 11:40 AMorg.gradle.parallel
is not set, and there is also some parallelism going on to some degree within a single daemon (several worker threads) ... but ok, they added parallels to their parallelsVampire
12/06/2024, 11:57 AMJulien Plissonneau Duquène
12/06/2024, 12:36 PMorg.gradle.configuration-cache=true
org.gradle.configuration-cache.parallel=true
but reading the description it's not clear that it enables anything else than storing/loading from cache in parallelVampire
12/06/2024, 9:18 PMVampire
12/06/2024, 9:18 PM