With the release of the new v2.0.3 version it seems the tool trades performance for a greater memory usage.
For small files the performance improvements are great.
But for larger files the increased memory usage makes the tool less usable than before (v2.0.2).
| tested file |
file size |
v2.0.2 |
v2.0.3 |
| sbom-source.spdx.json |
8 MB |
2m 45s |
0m 27s |
| sbom-build.spdx.json |
150MB |
1m53s |
Out of memory |
For example, I got these results when running
java -Xmx15G -Xms12G -jar "tools-java-${SPDX_TOOLS_VERSION}-jar-with-dependencies.jar" Verify "$spdx_document"
via the validate-spdx-documents.sh script in spdx-validation-example.zip locally on my machine. In each run the tool received a memory limit of up to 15GB. While in v2.0.2 this was enough to validate the document in under 2 minutes now with v2.0.3 the validation process is killed due to being out of memory.
With the release of the new v2.0.3 version it seems the tool trades performance for a greater memory usage.
For small files the performance improvements are great.
But for larger files the increased memory usage makes the tool less usable than before (v2.0.2).
For example, I got these results when running
java -Xmx15G -Xms12G -jar "tools-java-${SPDX_TOOLS_VERSION}-jar-with-dependencies.jar" Verify "$spdx_document"via the
validate-spdx-documents.shscript in spdx-validation-example.zip locally on my machine. In each run the tool received a memory limit of up to 15GB. While in v2.0.2 this was enough to validate the document in under 2 minutes now with v2.0.3 the validation process is killed due to being out of memory.