hiero-ledger / hiero-ledger/hiero-consensus-node
Tune `ZAllocationSpikeTolerance` for ZGC in all networks
- Dominant language
- Java
- Stars
- 406
- Forks
- 226
- Avg merge
- 3d 4h
- Merged PRs (30d)
- 210
Description
### Description
Performance testing shows that under heavy load the `memTot` metric (the total memory allocated for the heap) hits the specified maximum heap size (currently, `150g`), which correlates with allocation stalls reported by ZGC.
Increasing `ZAllocationSpikeTolerance` from the default 1 to 2 has been shown to improve ZGC proactiveness, help keeping the total memory under the maximum size and eliminate allocation stalls.
It it recommended to set `-XX:ZAllocationSpikeTolerance=2` in all networks.
### Steps to reproduce
Observe the `memTot` metric.
### Additional context
_No response_
### Hedera network
mainnet, testnet, previewnet, other
### Version
v0.33.0
### Operating system
Linux
Contributor guide
Assessment
This issue has not been assessed yet.