-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
AWS Fargate Memory slowly increasing/leak over time #6006
Comments
Can you please report the output of |
Thanks for your answer @neilalexander. Our stg1 containers restarted yesterday so the memory has not increased much yet. I will keep you updated when the memory is high. STG1 SEED On dev, where the memory is stable, here is a free command output (note that the CPU/Memory provisioning is not the same, does this could have an impact ?) : NODE SEED (note that the total/used memory for both env are higher than the provisioned memory we set on our containers. Thank you for your help. |
What stands out to me is the Do you set both a memory request and a memory limit, or just one or the other? |
Hi @neilalexander, we did not have memory soft/hardlimit set on our fargate containers. We are going to configure it and see what happens, I will keep you updated. |
Observed behavior
We observe that our aws fargate containers serving clustered NATS have their memory usage increasing over time :
(metric : ecs.fargate.mem.usage)
What is weird is we can observe this behavior on our STG1 environement but not on our DEV environment.
These two environments have no significant activity, and are deployed the same way through IaC. Nats is deployed using clustering on AWS fargate.
The difference in memory usage between the two envs is very significant :
dev:
stg1:
If we look at the NATS memory metrics, both environements are stable :
dev:
stg1:
There must be a leak somewhere but we are unable identify it.
Expected behavior
The fargate containers memory shouldn't be increasing over time and should stay stable.
It should follow the NATS memory metrics and stay stable.
Server and client version
Server version : 2.10.18
Go : go1.22.5
Host environment
NATS clustering inside AWS fargate without jetstream.
Operating system/Architecture
Linux/X86_64
CPU | Memory
2 vCPU | 4 GB
Platform version
1.4.0
Launch type
FARGATE
Log-router and Datadog as side containers.
Steps to reproduce
No response
The text was updated successfully, but these errors were encountered: