moleculer icon indicating copy to clipboard operation
moleculer copied to clipboard

Memory leak in ActionCatalog.Add()

Open jdeisenh opened this issue 7 months ago • 1 comments

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 avatar Jul 26 '24 07:07 jdeisenh