-
Notifications
You must be signed in to change notification settings - Fork 481
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
fix: [bug description] Unable to create database - out of memory #4710
Comments
Disabling data sources OSV, GAD and RSD allowed the database to be created. |
I think this is a duplicate of #4592 . But I'm still not sure what the right fix is. |
Actually, I'm going to re-open this because I think it's the more concisely described of the several issues that are related to this problem. Some stuff I know so far:
Some conjecture:
Next steps:
I'm open to more suggestions, most of that was from a quick brainstorming session this morning. |
Update the database in stages for each data source instead of all at once.. |
@terriko I think the issue might be with the OSV database load as removing this data source solved the problem. Committing every 1000 records or so rather than one big commit at the end may also be a useful improvement. Given the number of records and continued growtyh, I think we may be getting to the stage of relooking at the database architecture. Might be a bit too ambitious for GSOC 2025 but maybe some useful work could be done to move things along |
Description
Attempting to create an initial database results in the cve-bin-tool process being killed with out of memory message
To reproduce
cve-bin-tool -u now -n json-mirror afile
Expected behaviour:
Database is created
Actual behaviour:
Process is killed part way through the database load and the database file is not created
Version/platform info
Version of CVE-bin-tool( e.g. output of
cve-bin-tool --version
): 3.4Installed from pypi or github? pypi
Operating system: Linux/Windows (other platforms are unsupported but feel free to report issues anyhow)
WSL2 on Windows 11
Python version (e.g.
python3 --version
): 3.10.12Running in any particular CI environment we should know about? (e.g. Github Actions) Running in WSL2 (10GB RAM)
The text was updated successfully, but these errors were encountered: