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

Disconnections from Monti cause memory leak #65

Open
claudiovicar opened this issue Jul 26, 2022 · 2 comments
Open

Disconnections from Monti cause memory leak #65

claudiovicar opened this issue Jul 26, 2022 · 2 comments

Comments

@claudiovicar
Copy link

Hey folks,
this is a follow up on this issue: #37.
It seems like we had this exact same problem a month ago, using version 2.45.2-beta.2.
Our servers were forced to restart due to a memory error some time after a Monti connection failure.

2022-06-21T06:30:55.965598170Z Monti APM Error: while sending payload to Monti APM: Reached maximum retry limit for Request failed: 500

Then, around 10 minutes later (the error kept happening in the meantime, btw):

2022-06-21T06:42:36.417383217Z Monti APM Error: while sending payload to Monti APM: Reached maximum retry limit for Request failed: 500
2022-06-21T06:42:53.332755460Z <--- JS stacktrace --->
2022-06-21T06:42:53.332760121Z 
2022-06-21T06:42:53.332764375Z FATAL ERROR: Ineffective mark-compacts near heap limit Allocation failed - JavaScript heap out of memory

The error only happened during the time Monti was enabled, just to make it clear :)
Could it be related to the linked issue? Any help is appreciated!

Thanks in advance

@zodern
Copy link
Member

zodern commented Aug 26, 2022

On Wednesday we finished deploying some changes that made the api the agent uses much more stable which should avoid the situation that causes this memory leak.

I will look into the memory leak. It seems more likely that the agent is temporarily using too much memory when it can't connect rather than being a memory leak. How much ram do your servers have, and how much is normally used?

@claudiovicar
Copy link
Author

Hi, zodern, glad to hear it :)
That instance has 8GB but most of the time it sits under 50%.
And thanks again for looking into it

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

2 participants