Closed Marketen closed 1 year ago
I'd recommend -Xmx6g
these days. While Teku can run with 5GB of heap, it's more comfortable with 6GB, and that also gives a degree of future-proofing. We're always working on reducing the footprint, but the size of the beacon state continues to increase rapidly.
The error in the e2e tests is not related
Users should have the option to change Teku's Java Virtual Machine (JVM) memory usage by setting a maximum heap size using the JAVA_OPTS environment variable.
This PR changes the environment variable from Dockerfile to docker-compose.yml so that it appears in the dnp package's configuration. Also updated the default setting from 4gb to 5gb
Context: https://docs.teku.consensys.net/get-started/manage-memory