arrikto / oidc-authservice

This is a fork/refactoring of the ajmyyra/ambassador-auth-oidc project
MIT License
87 stars 66 forks source link

Possibly memory leak #88

Open ittus opened 2 years ago

ittus commented 2 years ago

Is this a bug report or feature request?

Describe the bug After a while, the authservice pod consume a lot of memory Screen Shot 2022-03-23 at 11 39 05

How to Reproduce Steps to reproduce the behavior:

  1. Deploy AuthService version e236439 with oidc provider
  2. Wait a while (6 hours) and check the authservice pod

Expected behavior Memory consumption should be stable

abaland commented 2 years ago

@ittus Did you by any chance find a solution for this? We're hitting a similar issue with this pod in Kubeflow where the memory stays constant for some random amount of time (between a few minutes and 2 days), then suddenly the container's memory usage just increases very fast and the session DB in the PVC also explodes in size. At the same time, the authservice stops accepting requests so we have to manually kill the pod and let it be recreated to be able to authenticate again....since this is an almost daily issue, I'd love to know if you found a fix.

ittus commented 2 years ago

@abaland

We've forked this repository, changing storage from boltdb to redis. In redis, the item is expired correctly. It works for us.