perf(misconf): High memory usage (> 10 GB) on some repos #6959
Labels
kind/bug
Categorizes issue or PR as related to a bug.
scan/misconfiguration
Issues relating to misconfiguration scanning
Milestone
Discussed in #6958
Originally posted by david-nascimento-form3 June 18, 2024
Description
Seems related to:
We noticed high memory usage when using the misconfig scanner
terraform
, it easily reaches the 24GB of memory when a high number of terraform resources are present [>10000].Desired Behavior
To have a steady memory usage, if possible close to tfsec.
Actual Behavior
A high memory usage that leads to a container being killed.
Reproduction Steps
Target
Filesystem
Scanner
Misconfiguration
Output Format
JSON
Mode
Standalone
Debug Output
$ trivy config --misconfig-scanners terraform test-tf --debug
Operating System
Sonoma 14.5, [Container image linux/amd64]
Version
Also tested with latest version of master:
Checklist
trivy image --reset
The text was updated successfully, but these errors were encountered: