connect icon indicating copy to clipboard operation
connect copied to clipboard

Memory Leak in Connect API Container

Open mega-nick opened this issue 1 year ago • 4 comments

Your environment

Chart Version: connect-1.10.0 Image version: 1password/connect-api:1.6.1 Helm Version: 3.11.1 Kubernetes Version: v1.24.9-gke.3200

What happened?

I found that the onepassword-connect pod was using a great deal of memory, specifically the connect-api container. The connect-api container was upgraded to the latest version, 1.6.1, and there still seems to be a pretty obvious memory leak.

Steps to reproduce

Deploy the 1Password Connect Helm chart on Kubernetes View pod memory metrics within an hour or two

Notes & Logs

image image

max(container_memory_working_set_bytes{container="connect-api", pod="YOUR-POD-NAME"} / (1024*1024)) by (container)

mega-nick avatar Mar 17 '23 13:03 mega-nick

Yes, it is leaking A LOT

It is bad:

image

We are sending maybe 5 requests per minute to it. (Mostly continuous, 24/7)

baryluk avatar May 16 '23 18:05 baryluk

Thank you for reporting this, I appreciate all the detailed information. I'll share with with the team for further investigation

jillianwilson avatar May 26 '23 19:05 jillianwilson

This is a duplicate of #23 This is crazy that it's still not solved... What is the point of having open source code if you don't maintain it?

tomjohnburton avatar Jul 10 '23 10:07 tomjohnburton

The report is for v1.6.1, but as of v1.7.0 this issue still exists, despite the changelog indicating otherwise.

In a very much idle cluster (4 secrets):

leak

antoineco avatar Jul 13 '23 16:07 antoineco