[Workers] Add memory usage metrics changelog and docs#31695
Conversation
- Add changelog entry for memory usage visibility in Workers Metrics tab - Add Memory usage section to Workers observability metrics-and-analytics page - Add screenshot of Memory usage chart
Review✅ No issues found in commit Code ReviewThis code review is in beta and may not always be helpful — use your judgment. ✅ No code review issues found. Style Guide Review✅ No style-guide issues found. CommandsOnly codeowners can run commands. Post a comment with the command to trigger it.
|
- Remove broken link to DO metrics page from changelog - Rephrase 'per invocation' to 'at the time of each invocation' to avoid implying per-request allocation - Replace 'Learn more about' with 'Refer to' per style guide
| date: 2026-06-25 | ||
| --- | ||
|
|
||
| You can now monitor how much memory your Worker consumes across invocations with the new **Memory Usage** chart in the Workers Metrics tab, broken down by P50, P90, P99, and P999 percentiles. |
There was a problem hiding this comment.
| You can now monitor how much memory your Worker consumes across invocations with the new **Memory Usage** chart in the Workers Metrics tab, broken down by P50, P90, P99, and P999 percentiles. | |
| You can now monitor how much memory your [Workers](/workers/) and [Durable Objects](/durable-objects/) consume across invocations with the new **Memory Usage** chart in the Workers Metrics tab, broken down by P50, P90, P99, and P999 percentiles. |
|
|
||
| Memory usage metrics are also available for [Durable Objects](/durable-objects/observability/metrics-and-analytics/). | ||
|
|
||
| To view memory usage, go to **Workers & Pages**, select your Worker, and open the **Metrics** tab. You can also query memory usage programmatically via the [GraphQL Analytics API](/analytics/graphql-api/tutorials/querying-workers-metrics/) using the `workersInvocationsAdaptive` dataset — the `quantiles.memoryUsageBytesP50` through `quantiles.memoryUsageBytesP999` fields return percentile values in bytes. |
There was a problem hiding this comment.
What about for Durable Objects?
|
|
||
|  | ||
|
|
||
| Memory usage measures the V8 [isolate](/workers/reference/how-workers-works/#isolates) memory at the time of each invocation. This is the same memory pool subject to the [128 MB per-isolate limit](/workers/platform/limits/#memory) — a single isolate can handle many concurrent requests and shares memory across them. |
There was a problem hiding this comment.
Can we not call this a "pool"? Similar in concept but not literally what this is?
There was a problem hiding this comment.
a single isolate can handle many concurrent requests and shares memory across them.
@iglesiasbrandon @vy-ton need to make sure we are explaining Durable Objects model here / somewhere / link to somewhere — to the extent reader needs to understand this in order to understand what the DO metric is or means
What this PR does
Adds documentation for the new Memory Usage chart in Workers Observability Metrics tab.
Changes
Changelog entry (
src/content/changelog/workers/2026-06-25-memory-usage-metrics.mdx)Workers metrics docs (
src/content/docs/workers/observability/metrics-and-analytics.mdx)### Memory usagesection between Execution Duration and Invocation StatusesScreenshot (
src/assets/images/changelog/workers/observability/2026-06-25-memory-usage.png)Related
memoryUsageBytesandwasmMemoryBytesfields onworkersInvocationsAdaptive)