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

Sidecar fails after reaching 4GB RSS Memory #1485

Open
Imod7 opened this issue Aug 30, 2024 · 1 comment
Open

Sidecar fails after reaching 4GB RSS Memory #1485

Imod7 opened this issue Aug 30, 2024 · 1 comment
Labels
I7 - Optimization 🚴 Make Sidecar drive faster

Comments

@Imod7
Copy link
Contributor

Imod7 commented Aug 30, 2024

Description
A team using Sidecar has reported issues where the Sidecar processes gradually consumes up to 4Gb of RSS memory and then becomes incapable of handling any requests, requiring the process to restart. It's running in its own container alongside a Polkadot node. Despite allocating more resources to the container, it consistently fails once it hits the 4GB mark.

Linked to #1361

Possible Issues
Memory Leaks ?

Possible Good Resources

@Imod7 Imod7 added the I7 - Optimization 🚴 Make Sidecar drive faster label Aug 30, 2024
@filvecchiato
Copy link
Contributor

While the container has more resources to allow Sidecar to run, if the process is not assigned a larger heap it would crash when the limit is reached. The start command could be modified to allow more heap memory (to match a larger container).

Some of the work done between PJS and Sidecar should allow it to run more efficiently so decreasing the likelihood to this specific case happening, however, more work is required to reduce the memory consumption. The PJS cache system will still be a big contributor to this issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
I7 - Optimization 🚴 Make Sidecar drive faster
Projects
None yet
Development

No branches or pull requests

2 participants