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

Memory leak in ActionCatalog.Add() #104

Open
jdeisenh opened this issue Jul 26, 2024 · 1 comment
Open

Memory leak in ActionCatalog.Add() #104

jdeisenh opened this issue Jul 26, 2024 · 1 comment

Comments

@jdeisenh
Copy link

Describe the bug
After running for two days, our project using moleculer-go crashes with an OOM error

To Reproduce
Any setup with some Actions published should show this problem under profiling

Expected behavior
Memory usage limited over time

Additional context
Profiled to be leaking in ActionCatalog) Add, append()
Logging shows the ActionEntry List grows with every ActionCatalog update
An attempted fix exist which will replace entries instead of just adding them, which seems to work.

@jdeisenh
Copy link
Author

Same thing in EventCatalog().Add(). List keeps growing

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

No branches or pull requests

1 participant