AI search engine and MCP server for bots and agents. One Rust binary indexes code, docs, logs, JSONL/CSV and PDFs for BM25 full-text, vector and hybrid search, code search without grep, agent memory and RAG. Elasticsearch-compatible API; Corpus Hub serves hundreds of reference memory corpora.
Rust agent-memoryai-agentsbm25claude-codeclicode-searchcursordatabaseelasticsearchfull-text-searchhybrid-searchjsonllocal-firstmcpmcp-servermodel-context-protocolragrustsearch-enginevector-search
Heap profile analysis prompt
You are reviewing a XERJ jemalloc in-use heap pprof artifact.
Inputs:
- Read
manifest.jsoncompletely and verifyheap.pb.gz. - Inspect
heap.pb.gzwithpprof -top,-tree, and focused-listviews. - Read the exact source at the manifest Git revision.
- Correlate the capture endpoint in time with RSS, jemalloc allocated/active/resident, and XERJ logical ownership telemetry when available.
Report:
- Confirm the binary hash and treat the declared source/build binding as
UNVERIFIEDunless independently attested. Then list the top 20 retained-byte allocation stacks with bytes and percentages. - Map them to raw HTTP bodies, parsed JSON, prepared documents, vectors/model scratch, memtables, flush snapshots, merge survivors/buffers, caches, mappings, and unknown.
- Separate live allocations from allocator fragmentation/dirty pages:
RSS - jemalloc resident,resident - active, andactive - allocatedare not attributable to live heap stacks. - Look for duplicated representations of the same corpus and unbudgeted queues.
- State sampling limitations: this is probabilistic, in-use heap at capture time, not every allocation and not peak RSS by itself.
- Propose deterministic small-corpus tests that reproduce each dominant owner before another full-corpus run.
End with a byte-accounting table whose rows sum to sampled in-use bytes, plus an explicit unexplained remainder.
If correctness, RSS/jemalloc time series, or workload results are unavailable, label any resource-win conclusion INCONCLUSIVE; an in-use heap profile alone does not explain total RSS or peak memory.