I try to build a native image (Java-Spring) using a remote builder and the buildpack
builder = “paketobuildpacks/builder:tiny”
but during building an image I receive out of memory exception. 4GB of ram exceeded. I know that building native images requires a lot of memory but there is any possibility to increase memory of remote builder to eg. 8GB?
Fly remote builders have a 2GB memory limit, so it would make sense that you’re hitting issues with a large native image. Build packs are huge and slow to generate, so in addition to a memory limit, you might hit a timeout as well if the vm manages to not OOM before that. Have you tried building the image locally with --local-only?