Skip to content

Report module instance memory usage#5400

Open
joshua-spacetime wants to merge 2 commits into
masterfrom
joshua/memory-limits
Open

Report module instance memory usage#5400
joshua-spacetime wants to merge 2 commits into
masterfrom
joshua/memory-limits

Conversation

@joshua-spacetime

@joshua-spacetime joshua-spacetime commented Jun 18, 2026

Copy link
Copy Markdown
Contributor

Description of Changes

In order to be able to suspend databases based on memory usage.

Reports memory usage for wasm linear memory as well as the v8 heap. Also reports page-level memory for tables.

It does not report memory usage for indexes.

API and ABI breaking changes

None

Expected complexity level and risk

1.5

Testing

Testing added in the private counterpart which handles enforcement of memory limits.

@joshua-spacetime joshua-spacetime requested a review from kim June 19, 2026 01:12

@kim kim left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Do we also want to instrument the blob store size? It could be significant.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants