-
Notifications
You must be signed in to change notification settings - Fork 9.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
Memory leaks #26130
Comments
Ok, it seems like I understand where this leaks come from. Crossplane runs terraform-provider-aws in test mode to keep it running. When So, connections are not closed => memory leaks at provider. The easy way to reproduce is to run |
Marking this issue as stale due to inactivity. This helps our maintainers find and focus on the active issues. If this issue receives no comments in the next 30 days it will automatically be closed. Maintainers can also remove the stale label. If this issue was automatically closed and you feel this issue should be reopened, we encourage creating a new issue linking back to this one for added context. Thank you! |
I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. |
Community Note
Terraform CLI and Terraform AWS Provider Version
Affected Resource(s)
We are creating lots of the resources, to create ec2 instances, eks clusters, etc.
So, for ec2 instance, for example:
Expected Behavior
No memory leaks.
Actual Behavior
Memory leaks.
Steps to Reproduce
Provider should be running.
Constatntly run commands like:
terraform apply -refresh-only -auto-approve -input=false -lock=false -json
terraform plan -refresh=false -input=false -lock=false -json
Important Factoids
At first, I'm not quite sure, that this is the right place for this issue, but I'll try to explain what we are doing.
We run crossplane provider-jet-aws in k8s cluster.
tl;dr; crossplane-provider transforms k8s manifests of aws resources to terraform configs and applies them.
In the pod,
crossplane-provider
startsterraform-provider-aws
.After that
crossplane-provider
just runs terraform CLI commands, liketerraform init
,terraform plan
,terraform apply
, etc.So,
terraform-provider-aws
is constantly running.After some time (4-5 hours), the pod is killed with OOM, and the reason is
terraform-provider-aws
.For example, current
ps axu
in the pod:According to the
pid
ofterraform-provider-aws
, something already went wrong, and the process was restarted by thecrossplane-provider
.Anyway, here is
RssAnon
ofterraform-provider-aws
:Also, I've managed to run
terraform-provider-aws
withpprof
, so here some files.heap.gz
I've found some issues with memory leaks in grpc-go repo, but they are all closed. So, I decided to post here.
Thanks in advance for any help.
The text was updated successfully, but these errors were encountered: