I have error java.lang.OutOfMemoryError: Java heap space, when step maven build run. I have testcontainer and use postgres image. Some tests pass but in one moment error is java.lang.OutOfMemoryError: Java heap space.
I try to set in definitions
services:
docker-with-large-memory:
memory: 5120
type: docker
and then in my step for build maven set
size: 2x
services:
- docker-with-large-memory
but it doesn't work. Can anybody now what i need to do?