grafeas / voucher

🎟 Voucher creates attestations for Binary Authorization
Apache License 2.0
73 stars 20 forks source link

potential memory leaks due to connections #20

Closed Nilay-Shah closed 2 years ago

Nilay-Shah commented 3 years ago

after the program runs for a long time without any restarts, both CPU and memory seem to gradually increase over time. in the past we've found some memory issues where we had lots of open socket connections, but it seems like there may be some more we missed and / or something else that needs a closer look. below are some graphs showing the memory and CPU usage after running the program for ~90 days and then restarting the workloads:

CPU ![image](https://user-images.githubusercontent.com/5805831/111169899-c524ea80-8579-11eb-999f-8bec392eed6c.png)
memory ![image](https://user-images.githubusercontent.com/5805831/111169941-ceae5280-8579-11eb-8aaf-683dc2e1d4ec.png)