-
Notifications
You must be signed in to change notification settings - Fork 2.8k
Closed
Labels
kind/bugCategorizes issue or PR as related to a bug.Categorizes issue or PR as related to a bug.scan/misconfigurationIssues relating to misconfiguration scanningIssues relating to misconfiguration scanning
Milestone
Description
Discussed in #6549 and #6517
Originally posted by ptupitsyn April 24, 2024
Description
Some repos, like https://github.com/kubernetes/minikube, take a very long time to scan (45 minutes on t3.xlarge) and consume up to 9.5 GB of RAM.
Desired Behavior
Memory consumption below 1 GB, scan time under 5 minutes.
Actual Behavior
Memory consumption of 9.5 GB, scan time 45 minutes.
Reproduction Steps
1. git clone https://github.com/kubernetes/minikube.git
2. cd minikube
3. docker run -v $PWD:/myapp --entrypoint "trivy" aquasec/trivy --timeout 60m --quiet filesystem --scanners vuln,config --format json /myappTarget
Filesystem
Scanner
Vulnerability
Output Format
JSON
Mode
Standalone
Debug Output
No output.Operating System
Ubuntu 22.04
Version
0.50.2Checklist
- Run
trivy image --reset - Read the troubleshooting
Metadata
Metadata
Assignees
Labels
kind/bugCategorizes issue or PR as related to a bug.Categorizes issue or PR as related to a bug.scan/misconfigurationIssues relating to misconfiguration scanningIssues relating to misconfiguration scanning
Type
Projects
Status
No status