What is the up-to-date way to control kotlin daemo...
# gradle
p
What is the up-to-date way to control kotlin daemon jvm args? Setting
Copy code
systemProp.kotlin.daemon.jvm.options=-Xmx4g
at
gradle.properties
stops kotlin daemon from running with
Xmx illegal argument
error.
s
inside
gradle.properties
you can set
Copy code
org.gradle.jvmargs=-Xmx6g -Xms1g -XX:+HeapDumpOnOutOfMemoryError -Dfile.encoding=UTF-8
p
org.gradle.jvmargs=
sets params for the gradle daemon. 2 things: • kotlin daemon seems to copy Xmx param only and ignoring Xms and HeapDumpOnOutOfMemoryError when I check kotlin daemon arguments at VisualVM • I think it makes sense to set arguments separately for gradle and kotlin daemon since they do different things. I can confirm with VisualVm that kotlin daemon tends to consume less memory.