dappnode / DAppNodePackage-teku

Apache License 2.0
2 stars 2 forks source link

Add memory management java_opt to console #68

Closed Marketen closed 1 year ago

Marketen commented 1 year ago

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

benjaminion commented 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.

dsimog01 commented 1 year ago

The error in the e2e tests is not related