Repository navigation
Closed
Milestone
Description
Hello,
Following previous issue and I know I won't help a lot if I can't share the data but we're meeting more and more crash, (every night) on arcadedb during graph rebuilt :
2026-04-14 02:56:52.036 INFO [LSMVectorIndex$2] Inactivity timeout expired (15000 ms), triggering graph rebuild for 233 pending mutations (index: NER_EMBEDDING_0_593681327085193)
2026-04-14 02:56:52.859 INFO [LSMVectorIndex] Graph build building: 350936/361997 (vector accesses=350944, heap=30064,0/32768,0MB, offheap=0,6MB, files=95,0MB [idx=3,8, graph=91,3, pq=0,0, compacted=0,0])
2026-04-14 02:56:54.669 INFO [LSMVectorIndex] JVector graph index built successfully
2026-04-14 02:56:54.669 INFO [LSMVectorIndex] Graph build persisting: 0/33501 (vector accesses=0, heap=21344,0/32768,0MB, offheap=0,6MB, files=9,0MB [idx=0,5, graph=8,5, pq=0,0, compacted=0,0])
2026-04-14 02:56:54.669 INFO [LSMVectorIndexGraphFile] Starting graph write (sequential) with chunking: 33501 nodes, 50MB chunk size
2026-04-14 02:56:54.669 INFO [LSMVectorIndexGraphFile] Writing graph WITHOUT inline vectors - topology only (vectors fetched from documents on-demand)
2026-04-14 02:56:54.789 INFO [LSMVectorIndexGraphFile] Graph written to pages (sequential): 33501 nodes, 8844868 bytes, 34 pages (topology only, vectors in documents)
2026-04-14 02:56:54.790 INFO [LSMVectorIndex] Graph build persisting: 33501/33501 (vector accesses=0, heap=21536,0/32768,0MB, offheap=0,6MB, files=9,0MB [idx=0,5, graph=8,5, pq=0,0, compacted=0,0])
2026-04-14 02:56:54.792 INFO [LSMVectorIndex] Built graph for index: IMAGE_CHUNK_EMBEDDING_0_593681333428708
2026-04-14 02:56:54.792 INFO [LSMVectorIndex] Async graph rebuild completed for index: IMAGE_CHUNK_EMBEDDING_0_593681333428708
2026-04-14 02:56:57.864 INFO [LSMVectorIndex] Graph build building: 351066/361997 (vector accesses=351074, heap=26080,0/32768,0MB, offheap=0,8MB, files=95,0MB [idx=3,8, graph=91,3, pq=0,0, compacted=0,0])
2026-04-14 02:57:02.879 INFO [LSMVectorIndex] Graph build building: 351199/361997 (vector accesses=351207, heap=22776,5/32768,0MB, offheap=0,8MB, files=95,0MB [idx=3,8, graph=91,3, pq=0,0, compacted=0,0])
2026-04-14 02:57:07.883 INFO [LSMVectorIndex] Graph build building: 351334/361997 (vector accesses=351342, heap=30120,5/32768,0MB, offheap=0,8MB, files=95,0MB [idx=3,8, graph=91,3, pq=0,0, compacted=0,0])
2026-04-14 02:57:12.888 INFO [LSMVectorIndex] Graph build building: 351477/361997 (vector accesses=351485, heap=23859,9/32768,0MB, offheap=0,8MB, files=95,0MB [idx=3,8, graph=91,3, pq=0,0, compacted=0,0])
2026-04-14 02:57:17.906 INFO [LSMVectorIndex] Graph build building: 351632/361997 (vector accesses=351640, heap=31043,9/32768,0MB, offheap=0,8MB, files=95,0MB [idx=3,8, graph=91,3, pq=0,0, compacted=0,0])
2026-04-14 02:57:22.912 INFO [LSMVectorIndex] Graph build building: 351818/361997 (vector accesses=351826, heap=26849,4/32768,0MB, offheap=0,6MB, files=95,0MB [idx=3,8, graph=91,3, pq=0,0, compacted=0,0])
2026-04-14 02:57:27.920 INFO [LSMVectorIndex] Graph build building: 352011/361997 (vector accesses=352019, heap=21546,7/32768,0MB, offheap=0,6MB, files=95,0MB [idx=3,8, graph=91,3, pq=0,0, compacted=0,0])
2026-04-14 02:57:32.927 INFO [LSMVectorIndex] Graph build building: 352192/361997 (vector accesses=352200, heap=29242,7/32768,0MB, offheap=0,7MB, files=95,0MB [idx=3,8, graph=91,3, pq=0,0, compacted=0,0])
2026-04-14 02:57:37.932 INFO [LSMVectorIndex] Graph build building: 352377/361997 (vector accesses=352385, heap=25357,0/32768,0MB, offheap=0,6MB, files=95,0MB [idx=3,8, graph=91,3, pq=0,0, compacted=0,0])
2026-04-14 02:57:42.938 INFO [LSMVectorIndex] Graph build building: 352565/361997 (vector accesses=352573, heap=21135,0/32768,0MB, offheap=0,6MB, files=95,0MB [idx=3,8, graph=91,3, pq=0,0, compacted=0,0])
2026-04-14 02:57:47.944 INFO [LSMVectorIndex] Graph build building: 352755/361997 (vector accesses=352763, heap=27855,0/32768,0MB, offheap=0,6MB, files=95,0MB [idx=3,8, graph=91,3, pq=0,0, compacted=0,0])
2026-04-14 02:57:52.950 INFO [LSMVectorIndex] Graph build building: 352932/361997 (vector accesses=352940, heap=23585,3/32768,0MB, offheap=0,6MB, files=95,0MB [idx=3,8, graph=91,3, pq=0,0, compacted=0,0])
2026-04-14 02:57:57.954 INFO [LSMVectorIndex] Graph build building: 353114/361997 (vector accesses=353122, heap=19956,4/32768,0MB, offheap=0,6MB, files=95,0MB [idx=3,8, graph=91,3, pq=0,0, compacted=0,0])
2026-04-14 02:58:01.232 INFO [LSMVectorIndex$2] Inactivity timeout expired (15000 ms), triggering graph rebuild for 997 pending mutations (index: CHUNK_EMBEDDING_0_593681324616448)
2026-04-14 02:58:02.959 INFO [LSMVectorIndex] Graph build building: 353295/361997 (vector accesses=353303, heap=27268,4/32768,0MB, offheap=0,6MB, files=95,0MB [idx=3,8, graph=91,3, pq=0,0, compacted=0,0])
2026-04-14 02:58:05.185 INFO [LSMVectorIndex] <ArcadeDB_0> Live builder initialized (lazy-loading) for incremental inserts on index: DOCUMENT_EMBEDDING_0_593681331252366 (vectorIndex size=5607)
2026-04-14 02:58:05.626 INFO [LSMVectorIndex] <ArcadeDB_0> Live builder initialized (lazy-loading) for incremental inserts on index: SUMMARY_EMBEDDING_0_593681329143981 (vectorIndex size=5607)
2026-04-14 02:58:07.994 INFO [LSMVectorIndex] Graph build building: 353481/361997 (vector accesses=353489, heap=23579,7/32768,0MB, offheap=0,6MB, files=95,0MB [idx=3,8, graph=91,3, pq=0,0, compacted=0,0])
arcadedb.service: Main process exited, code=killed, status=9/KILL
arcadedb.service: Failed with result 'signal'.
arcadedb.service: Consumed 6d 10h 6min 11.352s CPU time.
Started ArcadeDB server.
Server got 62gb of ram
Activity
ExtReMLapin commentedon Apr 16, 2026
Please notice above it was a "kill" reason, and at this time of the night, no one was awake (to kill it).
Now, there in the bellow logs it's an OOM kill, which is different
lvca commentedon Apr 16, 2026
Multiple vector indexes can trigger async graph rebuilds concurrently (via inactivity timeouts or mutation thresholds). Each rebuild is memory-intensive - the logs show heap oscillating between 20-31 GB during a single rebuild on 32 GB max heap. When two or more indexes rebuild simultaneously, the combined memory pressure exceeds available heap, causing the Linux OOM killer to terminate the process.
There was no cross-index coordination - each index only checked its own asyncRebuildInProgress flag, allowing unlimited concurrent rebuilds.
fix: crash (OOM) during graph rebuild
lvca commentedon Apr 16, 2026
If that was the problem, it should be fixed now. Please let me know.
fix: crash (OOM) during graph rebuild
chore(deps): bump org.postgresql:postgresql from 42.7.8 to 42.7.9 [sk…
fix: crash (OOM) during graph rebuild
fix(vector): a query that rebuilds a graph must honour the JVM-wide r…