Replies: 2 comments 3 replies
-
I tried updating to 0.46.0 and found that running the same project on a linux64bit server only takes about 1 minute. However, when running on my local machine, macOS, it is the same as the previous version, very slow. Is there any time difference between the macOS version and the Linux version when you test it? |
Beta Was this translation helpful? Give feedback.
0 replies
-
Hello @zangcc I tried to reproduce your case, but got similar time in both cases: trivy fs ./pom.xml 7.88s user 1.36s system 4% cpu 3:40.09 total
trivy fs --dependency-tree ./pom.xml 7.71s user 1.43s system 4% cpu 3:38.22 total Can you share your pom.xml file to investigation your issue? Regards, Dmitriy |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Description
Hello trivy, after I added the --dependency-tree option to trivy0.45.0, the scanning time became very long, sometimes it even took more than 3 hours to complete the scan. In previous versions without this option, the average time was probably around 8 minutes.
Is there any way to improve the long time-consuming problem of the --dependency-tree option? Can recursive algorithms be optimized?
By the way, let me share the command I used:
./trivy fs --severity HIGH,CRITICAL --dependency-tree /path/to/project -o demo1.txt
The project I scanned is a java project based on maven
Target
None
Scanner
None
Beta Was this translation helpful? Give feedback.
All reactions