OutOfMemoryError in Gradle/SpringBoot/Kotlin Coroutines project
In these days I added a bundle of codes to my project, Gradle build failed in Github actions, some tests throw OOM error when running Gradle test task.
The project tech stack is Spring Boot 3/R2dbc + Kotlin 1.8/Kotlin Coroutines
The build tooling stack.
Local system: Windows 10 Pro(with 16G memory)/Oracle JDK 17/Gradle 7.6(project Gradle wrapper)
Github actions: Custom Ubuntu with 16G memory/Amazon JDK 17
After researching, I use a custom larger runner with 16G memory, and increase the Gradle...