Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix memory leak #12

Merged
merged 1 commit into from Mar 2, 2021
Merged

fix memory leak #12

merged 1 commit into from Mar 2, 2021

Conversation

Ljiacheng
Copy link
Contributor

Fix the memory leak. It is caused by crate "thread_local" and the crate fix the BUG at "1.1.3".
You can just run "cargo update -p thread_local" or update the repository.
Just ensure the version of "thread_local" in your cargo.lock is "1.1.3".

Talk about memory leak in substrate: discussion
Fix at substrate: fix cargo.lock
Fix at thread_local: drop the value

Copy link
Contributor

@Kayryu Kayryu left a comment

Choose a reason for hiding this comment

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

approve.

have you ever run with --no-prometheus.

@Ljiacheng
Copy link
Contributor Author

Ljiacheng commented Mar 2, 2021

I have tried to delete the prometheus service. The memory usage is still increasing 1M in 3-4 seconds.
Actually I don't think the prometheus service saves date at memory.
@Kayryu

@Kayryu Kayryu merged commit c8aa6fc into main Mar 2, 2021
@Kayryu Kayryu deleted the fix-memory-leak branch March 2, 2021 07:44
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.

None yet

2 participants