gitoria
All repositories: gitoria
3.0 KB
# HL25 — live hl:heap snapshot for gitoria#25 (2026-11-09)**Deployed:** commit `2492a55` "Temporary keyed /__heap route for the live memory snapshot" (branch hl25-heap, fast-forwarded into main, pushed). New `lib/heap.hl` (+3 lines in project.hl: import, comment `// TEMPORARY gitoria#25 diagnostic, removed after the 320 MB snapshot`, route). `GET /__heap` answers 404 unless header `x-heap-key` equals the trimmed content of `<storage>/heap-key` (read per request, file missing → 404, `timingSafeEqual`, key never logged). JSON: `{ time, rssKb, hwmKb, heap = snapshot(&roots, 30) }` (VmRSS/VmHWM parsed digit-by-digit: the tab after the colon was the H25 bug). Roots: hpCache/hpSize/hpOrder, mdCache/mdSize/mdOrder, limitCounts, server.sessions, routes.**Key:** created on byrodin in `/CONTAINERS/projects/gitoria.worldapi.org/storage/heap-key` (root:root, 600, 49 bytes); value never printed.**Local proof (port 8730, own storage):** no key file → 404; no key → 404; wrong key → 404; right key → 200 JSON (rssKb 181784, hwmKb 215532). Gates (ports 8720–8729): `check-theme` 87 files 0 problems; `tests/browser.mjs` 299 passed, 0 failed.**Deploy:** `deploy-init.sh gitoria`, log /media/STORAGE/claude-scratch/gitoria/deploy-hl25.log. Runs 1–3 failed in `tests/browser.mjs` with "tickets did not come up" (tickets cold compile >120 s at machine load 15–22, not my code; run 1 was also cut by my own 590 s tool timeout). Run 4: boot-gate rc=0, all 19 gates 0 failed, `try 1 (1 s): 200`, **rc=0** (standby hand-over, no second restart). No FAILED in the final log.**Live proof (from byrodin, container port 127.0.0.1:45004):** no key 404; wrong key 404; right key 200 `application/json`. Public `https://gitoria.worldapi.org/__heap` without key → **404**.**First snapshot** `/media/STORAGE/claude-scratch/gitoria/heap-live-1.json` (container ~14 min after start): VmRSS 204 MB, VmHWM 256 MB (startup peak; RSS was 248 MB at 6 min, 198 MB at 14 min), GC heap 36,349,219 bytes, 560,217 objects, tracked 702,644, unreachable 142,427.Top types (bytes): Hybrid named 19.29 M (46,847 obj); String/key bytes 10.64 M (356,987); Hybrid ordered 3.48 M (37,787); String 2.82 M (117,448); Function 40.5 K (724); Environment 13.7 K; Instance WebFramework 12.7 K; Session 12.3 K (13); MPackDB 10.6 K (19); Cssvar 9.6 K.Roots (bytes): plugin/runtime 31.27 M (515,738 obj); sessions 4.89 M (42,836 obj); statics 143.9 K; routes 41.2 K; stack 6.9 K; hpCache/mdCache/limitCounts/etc. 40–64 bytes each (empty, nothing cached yet). Note: sessions already hold 4.9 MB / 42.8 k objects after 14 min — worth watching at 320 MB.So at 204 MB RSS the GC heap is ~36 MB (RSS minus heap ≈ 170 MB outside the GC heap's reachable data). Compare with the 320 MB snapshot.**Helper:** `tools/heap-live.sh <outfile>` (ssh byrodin, key read there, never echoed; prints RSS/VmHWM/heap bytes).**Remove the route:** `git revert 2492a55` (drops lib/heap.hl and the project.hl lines), push, `deploy-init.sh gitoria`; then `rm /CONTAINERS/projects/gitoria.worldapi.org/storage/heap-key` on byrodin and tools/heap-live.sh. Route NOT removed by me.
Branches
Latest commits
- fe209ffeMerge branch 'w56-owner-members' into mainGitoria
- fa0754c8|||PR repository owner transfer and members API (#55)mre
- 8862e537Merge branch 'w55-rename-org' into mainGitoria
- 014d2b7fOne immutable readers snapshot per move for the left-organization event (#53)mre
- 1859d506Decide who hears a repo left its organization by its readers before the move (#53)mre
- 499f25f2Review fixes for the Settings organization move (#53)mre
- ed3b922b|||PR move a repository into an organization in Settings (#53)mre
- 74ec2af8Merge branch 'w54-repo-rename-pr' into mainGitoria
- 9f7ce8d8Preserve rename compatibility and live page titlesmre
- c3d95b6e|||PR separate names and addresses, rename repositories in Settings (#53)mre
- ce08920dMerge branch 'w52c-header-phone' into mainGitoria
- 0bab9e46|||PR header: ident status wraps on phones instead of clippingmre
- e7af3eceMerge branch 'w52b-approval-followup' into mainGitoria
- c01e66c6|||PR approvals follow-up: live Merge after status writes, helpers (#52)mre
- 841da497Merge branch 'w53-pulls-speed-pr' into mainGitoria
- 80307ae2|||PR pulls page cache: live PR numbers, complete scans onlymre
- 69141f65|||PR pulls page: cache the git part per repo by branch tipsmre
- 155861f6Merge branch 'w52-person-approval' into mainGitoria
- b5435de8|||PR person approvals: second Kunibert round (#52)mre
- 3a8b2fb8|||PR person approvals: Kunibert review fixes (#52)mre