Skip to content
This repository was archived by the owner on Aug 27, 2025. It is now read-only.

Fix memory leak#1260

Merged
JamesHinshelwood merged 1 commit intomain-zq2from
leaks
May 20, 2025
Merged

Fix memory leak#1260
JamesHinshelwood merged 1 commit intomain-zq2from
leaks

Conversation

@JamesHinshelwood
Copy link

A long running heap profile of the Scilla process from a ZQ2 node showed growing memory usage. The allocations were mainly happening in add_comment. I'm not sure why/where we retain the reference to this forever, but I did see that the only user of get_comments was scilla-fmt, which we are not using.

Therefore, I did the easy fix and removed scilla-fmt.

Heap profile before:
image

Heap profile after:
image

We are allocating roughly the same amount, but the memory usage doesn't keep growing because the GC can do its job.

A long running heap profile of the Scilla process from a ZQ2 node
showed growing memory usage. The allocations were mainly happening
in `add_comment`. I'm not sure why/where we retain the reference
to this forever, but I did see that the only user of `get_comments`
was `scilla-fmt`, which we are not using.

Therefore, I did the easy fix and removed `scilla-fmt`.
@JamesHinshelwood JamesHinshelwood merged commit abdb24b into main-zq2 May 20, 2025
2 checks passed
@JamesHinshelwood JamesHinshelwood deleted the leaks branch May 20, 2025 13:29
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants