Docker container running on ECS with Fargate. 8 GB RAM, 2048 CPU units (2 vPCUs).
Runs Gradle, with 3.5GB allocated to the Gradle execution.
The agent has this configuration:
Still, we get:
java.lang.OutOfMemoryError: Java heap space
right at the end of the execution, after the end of the build.
I can provide more debugging info, just tell me what to look for.