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
docs: add ISSUE-007 and Step 5.5 for ScheduledExecutorService churn
ISSUE-007 documents that PendingVRpc.monitorDeadline() and per-session
heartbeat scheduling both contribute to ScheduledExecutorService heap
churn. At ~100ms heartbeat intervals (10 fires/sec/session) and ~1ms
vRPC p50, cancelled deadline futures accumulate as zombies in the
DelayQueue, inflating O(log n) insert cost for heartbeats. Mitigations
ranked from quick fix to long-term solution.
Step 5.5 added to THREADING_REFACTOR_PLAN.md between Steps 5 and 6:
switch both heartbeat and deadline monitoring to a pool-internal
ScheduledThreadPoolExecutor with setRemoveOnCancelPolicy(true),
eliminating zombie accumulation while avoiding new dependencies.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
0 commit comments