Skip to main content
MEM0 CONTEXTGRAPH LAB // VECTOR GRAPH RAM & PROMPT-TOKEN TCO STUDIO QDRANT INT8 + PGVECTOR HNSW | VULTR HIGH FREQUENCY | XIAOMI MIMO EXTRACTOR | 2026-10-19
Mem0VectorTCO
Mem0VectorTCO Affiliate Notice: Outbound /go/ links marked rel="sponsored" may earn a partner commission at zero added cost (Affiliate Policy).
HNSW & Token Tuning

Sizing Neo4j JVM Heap & Page Cache for Mem0g & Zep Graphiti

Balance Neo4j heap, off-heap page cache, and transaction memory when running bi-temporal entity graphs alongside Qdrant.

55% Heap / 45% PageCache · -Xms == -Xmx · Bolt Pool <= 64

Sizing Neo4j JVM Heap & Page Cache for Mem0g & Zep Graphiti
Memory benchmark baseline verified 2026-10-19 by ContextGraph Lab.

Separating Heap Execution From Graph Storage Cache

Neo4j stores nodes and relationships off-heap in the page cache while using JVM heap only for active Cypher query execution and transaction state. Over-allocating heap starves page cache and triggers disk thrashing.

Indexing Entity Name + user_id Constraints

Ensure composite indexes exist on (Entity.user_id, Entity.name) so Mem0g and Zep Graphiti MERGE queries avoid full label scans as entity counts cross 500,000.

Measured Thresholds & Vector Stack Parameters

Fact + Entity ScaleNeo4j Heap (-Xmx)Neo4j Page Cache
100k - 500k Facts1 GB1 GB
1M - 3M Facts2 GB2 GB
5M - 10M Facts4 GB - 6 GB4 GB - 6 GB
55% Heap / 45% PageCache · -Xms == -Xmx · Bolt Pool <= 64 Deploy Vultr HF NVMeXiaomi MiMo API