We run java microservice builds using Jenkins ECS plugin to farm the work across and EC2 cluster. We use m4.2xlarge and see some issues with gradle + jib + artifactory when cluster gets busy. These show as memory problems and or
Exception in thread "main" java.lang.NoClassDefFoundError: org/jfrog/build/extractor/builder/ModuleBuilder
which is likely fallout from a root problem and not the real root problem.
I'm wondering how to best size my instance types for the work or get to the actual root problem so I know how to better describe the issue.
Anyone have info on right sizing ECS clusters for Jenkins?