plastiv
03/24/2020, 10:44 AMsystemProp.kotlin.daemon.jvm.options=-Xmx4g
at gradle.properties
stops kotlin daemon from running with Xmx illegal argument
error.spierce7
03/24/2020, 4:41 PMgradle.properties
you can set
org.gradle.jvmargs=-Xmx6g -Xms1g -XX:+HeapDumpOnOutOfMemoryError -Dfile.encoding=UTF-8
plastiv
03/25/2020, 11:02 AMorg.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.