I have a gradle/kotlin-jvm project with 76 files a...
# announcements
r
I have a gradle/kotlin-jvm project with 76 files and 4255 total LOC. The compileKotlin task takes ~20 minutes. I would like to learn how to debug this. Is there any guide on extracting this information from the compiler?
1
r
have you tried giving more ram for the jvm?
r
Copy code
org.gradle.jvmargs=-Xmx2g
This is weird since I’ve got another project with 125 files/6401 LOC and it completes compileKotlin in about 10-15 seconds.
j
Use the scan task to see where is the problem
r
That tells me it was the compileKotlin task that took too long.
I think I need insight into why it took so long.
Bumping memory from 2g to 4g doesn’t make it noticeably better either. I don’t see why the compiler would need more than 2g though.
It is clocking 100% CPU which is understandable but only takes about 1.1GB of RAM per Activity Monitor.
c
🙏 1
👍 3
r
Yep! I isolated the problems to kotlinx-html
Thanks for pointing me to that!