You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Force GC before direct memory measurements for ZGC compatibility
Generational ZGC (JDK 21 default) only processes PhantomReferences
during major collections, which may not trigger during short test runs.
This causes DirectByteBuffer Cleaners to not fire, leaving ~63MB of
stale direct memory that inflates TOTAL_CAPACITY and fails the assertion.
Force System.gc() via nodetool before each measurement to ensure a major
collection runs and reference processing completes.
0 commit comments