Fixes the memory growth measured on #8822 (1.39 GB → 2.78 GB over 28 h, never released).
6052a66: the embedding model runs one call at a time, on at most 8 threads. onnxruntime's memory pool grows with every run in flight and is never released. In the live container, 32 concurrent callers reached 17.3 GB; the same work one call at a time stayed flat at 1.07 GB.
f19ba0c: the backup converts each table as it reads it and streams each section to disk. The nightly run used to add about 200 MB that the app kept.
Dev CI run 1030 is green. The live check is #8829: memory over 48 h, the 02:00 backup, and tool-call latency.
Fixes the memory growth measured on #8822 (1.39 GB → 2.78 GB over 28 h, never released).
- **6052a66: the embedding model runs one call at a time, on at most 8 threads.** onnxruntime's memory pool grows with every run in flight and is never released. In the live container, 32 concurrent callers reached 17.3 GB; the same work one call at a time stayed flat at 1.07 GB.
- **f19ba0c: the backup converts each table as it reads it and streams each section to disk.** The nightly run used to add about 200 MB that the app kept.
Dev CI run 1030 is green. The live check is #8829: memory over 48 h, the 02:00 backup, and tool-call latency.
🤖 Generated with [Claude Code](https://claude.com/claude-code)
onnxruntime keeps a memory arena per run in flight and never returns it, so
overlapping requests grew the app a step at a time and it never came down:
measured in the live container, 32 concurrent callers reached 17.3 GB where
the same work one call at a time stayed flat at 1.07 GB. Every model call now
runs on a single worker thread, and the model loads with a thread pool capped
at 8 instead of one thread per host core.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The export held every table's ORM objects and every table's rows at once,
and the archive writer then built each section as one byte string (a peak of
twice the section). The nightly run raised the app's memory about 200 MB that
it kept. Each table is now converted before the next is read, and each section
is encoded into a spool file that moves to disk past 1 MB.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Fixes the memory growth measured on #8822 (1.39 GB → 2.78 GB over 28 h, never released).
6052a66: the embedding model runs one call at a time, on at most 8 threads. onnxruntime's memory pool grows with every run in flight and is never released. In the live container, 32 concurrent callers reached 17.3 GB; the same work one call at a time stayed flat at 1.07 GB.f19ba0c: the backup converts each table as it reads it and streams each section to disk. The nightly run used to add about 200 MB that the app kept.Dev CI run 1030 is green. The live check is #8829: memory over 48 h, the 02:00 backup, and tool-call latency.
🤖 Generated with Claude Code