```> Task :kpy-sample:kspKotlinPy FAILED e: Com...
# ksp
m
Copy code
> Task :kpy-sample:kspKotlinPy FAILED
e: Compilation failed: Metaspace

 * Source files: MyClass.kt, Extra.kt, More.kt, kpy-module.kt, kpy-module.kt, entrypoint.kt
 * Compiler version info: Konan: 1.6.21 / Kotlin: 1.6.21
 * Output kind: LIBRARY

e: java.lang.OutOfMemoryError: Metaspace
It seems KSP is taking up a fair bit of memory, causing my github actions runner to crash. What should I do to reduce this? Here's the full error log:
j
can you try to increase memory settings of your jvm? in our test we sometimes need to set max heap size to 2G or larger.
actually just realized it is on github action runner… Github action runner for windows is very limited on memory due to OS and hardware, our windows CI also suffers occasional memory issues, is your case also on Windows? If so, I would suggest avoid running on Windows, as many other users also found current Windows runner configurations are not enough in terms of memory.
m
The runner is running on macos, but it seems like a property in gradle.properties to increase metaspace size solved it.
👍 1