Hi, having upgraded to 1.4 i get an `OutOfMemoryE...
# announcements
t
Hi, having upgraded to 1.4 i get an
OutOfMemoryException
during
compileKotlinJs
. Any idea how to tackle that?
c
I get that a lot on my Android app builds. The only thing that I’ve really been able to do to fix it is to increase the Gradle memory limits https://docs.gradle.org/current/userguide/build_environment.html#sec:configuring_jvm_memory
t
unfortunately i get "w: Flag is not supported by this version of the compiler: -Xmx128m" when i try to give the JS(!) compiler more heap space 😕 (im passing it to the
freeCompilerArgs
)
g
You should pass it to Gradle, not to compiler
Just follow the doc which Casey shared above
t
yeah that's what i tried first - didn't worked out. sorry, should have mentioned that. But will try again today, maybe it was too late yesterday
yep it was clearly too late. i only saw the default of 64mb for the client jvm - now it's a really bad idea to "raise" the heap size of the compilation vm to 256mb when its actual default is 512mb 🤦‍♂️ using 1g now does the trick. thank you!