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

Bug: Memory Leak in signer service #248

Closed
TorstenStueber opened this issue Oct 31, 2024 · 1 comment · Fixed by #249
Closed

Bug: Memory Leak in signer service #248

TorstenStueber opened this issue Oct 31, 2024 · 1 comment · Fixed by #249
Assignees
Labels
type:bug Something isn't working

Comments

@TorstenStueber
Copy link
Collaborator

The signer service has a memory leak caused by initiating new connections via polkadot-js.

This already happens in the status endpoint. The status endpoint opens the following connections and queries on-chain data:

  • to Stellar
  • to Pendulum
  • to Moonbeam

Through experiments I can conclusively say that the connections to Stellar and Moonbeam via their respective libraries do not cause memory leaks and allow that all their allocated space can be cleanly garbage collected.

However, each call to sendPendulumStatusWithPk causes about 12 MByte of heap allocation that is not eligible for garbage collection.

TODO

Find a way to avoid the memory leak.

@TorstenStueber TorstenStueber self-assigned this Oct 31, 2024
@TorstenStueber TorstenStueber added the type:bug Something isn't working label Oct 31, 2024
@TorstenStueber
Copy link
Collaborator Author

TorstenStueber commented Oct 31, 2024

Seems like memory leaks in polkadot.js are well-known and not resolved. What a shame.

Also upgrading to polkadot-js 14.1.1 as suggested in one of the comments doesn't help.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type:bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant