
TheSpinCycle (Community Member) asked a question.
We utilize the `curl -sSL https://download.sourceclear.com/ci.sh | SCAN_DIR='./<dir-to-scan>' SRCCLR_scan_collectors='npm' sh` command in a Jenkins pipeline to do our SCA for a number of projects. I've run it on an Ubuntu runner and inside the Node docker image with the same results.
As of 9/29, these scans no longer work. All other scans using the shell script still appear to be working. I've tested Gradle, DLL and Yarn scans.
I receive the following error: "com.sourceclear.agent.commands.ScanCommand ERROR Unable to scan and generate report: Java heap space"
Our JVM heap size is set to max out at 4 GBs. I updated that to 8 GBs, then again to 12 GBs and we're still hitting that same error. I'm guessing something has changed in the ci.sh script, but I'm unable to find any reference to this script online outside of some Veracode docs. A changelog for something we blindly assume works would be extremely beneficial for something like this I think.
At this point I intend to try to utilize a Docker image with the CLI installed to try and unblock our builds. But until I get that up and running, we're blocked on a good number of projects due to this issue.
Any guidance would be extremely helpful.
.png)
Hello @TheSpinCycle (Community Member) ,
Increasing the heap size usually fixes this issue but if that is not working, you can use the parameter below and it uses much less resources and usually will post results :
--skim-vms
However, this will leave the vulnerable methods out, but for some customers, that is worth it to get fast results without increasing heap sizes.
Jason
Community Support Engineer