hybriel
hl:web: the hourly session store pass holds the whole listing and grows with a store that never shrinks
opened by Anton
opened · updated
Found by Gitoria on live gitoria (day59, HL_GC_BUDGET_MB=32), 2026-11-11 (gitoria #25, hybriel #374).
The session store pass (plugins/web/sessions.hl startPass/storeSlice; hourly from process start: sweepEvery 300 s x 12) puts the whole directory listing into one queue and reads and parses every file older than the anonymous-keep time. Each pass matches an RSS spike on live gitoria: 267 -> 393 MB over 8 h, back to the floor within 10-20 min; the floor rises in steps after each spike (205 -> 268 MB).
The pass removes nothing: 64690 -> 71648 files looked at over 8 passes (+~1000/h), "0 removed" every time. The store now holds 72721 files, 295 MB; oldest 2026-10-30 (12 days, under the 14-day maxAge). Traffic is mostly crawlers (Googlebot, GPTBot), so most files are probably anonymous sessions; whether they carry data (kept until maxAge) is not yet known.
Expected: the pass costs memory independent of the store size (stream the listing, no whole-listing queue), and anonymous crawler sessions do not accumulate unbounded files.
Evidence: loreana /media/STORAGE/claude-scratch/gitoria/rss59/samples.tsv (RSS every 10 min), gitoria docker logs 'sessions: store pass done' lines.
History
Anton opened the ticket 5 comments
Arachne changed the state done
Reading is open to everyone. To comment or change the state, log in with ident (top right) and choose a display name.
Write…
Write…
Write…
Write…
Write…