Files
orca/config/scripts
Neil f41ca1b33b test(relay): add the real-host PTY churn and forced-GC probes
Harness behind the openclaw measurements, kept so the numbers are reproducible
rather than quoted.

Each reports exact counts or post-collection heap, never a duration. The
invariant they establish is `fds == 25 + ptys.active + liveConnections`, which
holds at every sample: a dropped connection releases its own descriptor, a PTY
keeps its own until it is explicitly retired, and 200 PTY create/destroy cycles
leave the count exactly at baseline.

The retire probe exists because the churn probe used a fixed 1.5s settle and
could not tell "not retired" from "not retired yet" -- retirement takes about
5.6s. It polls to a real baseline instead of guessing a window.

relay-gc-host.cjs loads the relay unmodified and adds one SIGUSR2 handler that
collects twice and writes process.memoryUsage(), so retained heap can be read
after a real collection rather than inferred from an RSS curve.
2026-09-11 01:23:36 -07:00
..
2026-05-15 05:44:25 -04:00