https://kotlinlang.org logo
Title
b

basher

03/11/2020, 5:15 PM
Anyone else run into OOM issues with (happens with Gradle 5 or 6) Gradle 6 + Kotlin 1.3.70?
t

turansky

03/11/2020, 6:48 PM
Composite build?
b

basher

03/11/2020, 6:48 PM
Nope
t

turansky

03/11/2020, 6:50 PM
Gradle
6.2.2
?
:yes: 1
m

Markus Böck

03/11/2020, 8:05 PM
Yes! I had the same issue. After googling around I found out you can add a gradle.properties file in your .gradle folder. There you can add the line
org.gradle.jvmargs=-Xmx3g
which should increase the memory to whatever you specify
b

basher

03/11/2020, 8:08 PM
good to know. only thing that has worked for me in CI envs so far is
--no-daemon
updated the original post. it happens with Gradle 5 or 6. likely a 1.3.70 issue
n

Nico

03/12/2020, 10:20 AM
Yes me too. Had to increase mem also
t

tapchicoma

03/12/2020, 12:05 PM
I would advice to make a heap dump and inspect it for leaks