-
Notifications
You must be signed in to change notification settings - Fork 44
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Very High Memory Usage Using Syft #233
Comments
An initial look shows that, depending on the image being scanned, the CSV reader used within the mimetype detector lib is what's eating much of the total allocated space It seems like we're using an older version of mimetype that does not incorporate gabriel-vasile/mimetype#355 . When I bump the dependency and incorporate this fix though, I see the memory allocated within the I'll see what else I can do here, but since much of the consumption is from the CSV and TSV detectors alone, I'm considering dropping those detectors entirely (which would require a fork in the short term). |
I've got a prototype csv/tsv detector that is pretty bare-boned, but it drops the total memory allocation from 740MB to 330MB. I'll see if I can get that PR tested and in the upstream. |
@abhiseksanyal the screenshot is showing 9GB being used -- are you describing two different invocations?
did syft display an SBOM result? Or exited without error or SBOM result? |
The PR that attempts to reduce total memory allocation is stalled for a while anchore/mimetype#2 |
@wagoodman thank you very much, will it be part of the next release of Syft? |
Hi @wagoodman , any update here? |
@wagoodman : I took the screenshot before it hit the peak |
What happened:
High memory consumption when scanning 5GB image
What you expected to happen:
controlled memory consumption
Steps to reproduce the issue:
scan very big sized images and check the memory consumption
Anything else we need to know?:
Environment:
syft version
: 1.5.0cat /etc/os-release
or similar):seems like there are many dotnet packages in the images
The text was updated successfully, but these errors were encountered: