aquasecurity / trivy-operator

Kubernetes-native security toolkit
https://aquasecurity.github.io/trivy-operator/latest
Apache License 2.0
1.22k stars 201 forks source link

High memory usage #2028

Closed githubcdr closed 2 months ago

githubcdr commented 5 months ago

What steps did you take and what happened:

After upgrading to version 0.20.0 I noticed that the trivy-operator process consumes a lot more memory. Previous version was able to run with 600Mb, Now I have to add at least 1G wit a steady 800Mi usage under load.

Why would an operator consume so much memory? It's just orchestrating scanners or is it?

chen-keinan commented 5 months ago

@githubcdr it should no consume more memory than usual, the operator framework cache reports in order to improve performance but should be any additional effort on that area, are you getting errors in logs ?

github-actions[bot] commented 3 months ago

This issue is stale because it has been labeled with inactivity.