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 #325

Open
adhikjoshi opened this issue Oct 3, 2024 · 1 comment
Open

Memory leak #325

adhikjoshi opened this issue Oct 3, 2024 · 1 comment

Comments

@adhikjoshi
Copy link

Screenshot 2024-10-03 at 11 06 09 AM

Everything worked smoothly for weeks and it keeps piling up RAM for weeks.

and sish start giving 502 errors for 20% of requests.

once RAM is full Google Cloud or something triggers RAM cleanup.

RAM goes to 1GB, and all 502 errors are gone.

There's a memory leak happening somewhere.

@antoniomika
Copy link
Owner

antoniomika commented Oct 3, 2024

Hi @adhikjoshi

Can you enable debug logging and provide them to me? We run sish in production and can't replicate this issue. I have instances of sish that have been running for years with no restarts and memory is minimal.

My best guess is all of the idle timeouts and deadline protections may be disabled, this would result in connections being kept around and the memory staying large (this also happens if botnets with slow ssh connections attempt to start a handshake but never complete).

This would make sense with the 502 errors as well if using any of the load balancer modes since the state would have bad entries for certain routes, and they'd fail on connection.

Regardless, the debug logs will give us info on the connections state as well as the number of go routines active. Please also include the flags you are running sish with.

Thanks!

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