Does the Cloudflare Workers memory limit include only the JavaScript heap or also WebAssembly memory and ArrayBuffers?
0 reputation · 24 Aug 2025, 19:33 UTC
The goal is to determine what constitutes the memory usage that counts toward the Cloudflare Workers per‑isolate limit.
The documentation does not state whether the limit applies only to the JavaScript heap or also includes WebAssembly linear memory, ArrayBuffers, and internal runtime overhead, and the exposed memory‑instrumentation API returns only an estimate without a breakdown by allocation type.
Does the memory‑instrumentation API reflect heap‑only usage or the total isolate footprint?