hiero-ledger / hiero-ledger/hiero-consensus-node

Tune `ZAllocationSpikeTolerance` for ZGC in all networks

Open
#4,413 2 comments 0 reactions 1 assignee Claimed by @OlegMazurov View on GitHub
Performance Platform
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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.