SonarQube Server: 7.9.1
Scanner Version: 3.2.0.1227
Plugin: Cobol
Command:1
java -Djava.awt.headless=true -Xmx2760M -classpath .jar -Dscanner.home= ** -Dproject.home = ** -Dsonar.ws.timeout=960 -Dsonar.projectkey=**** -Dsonar.source=. -Dsonar.cobol.file.suffix=.CBL -Dsonar.lanaguage=cobol -Dsonar.host.url=https******* -Dsonar.login=*******
I have around 15k COBOL source to be scan, considering the number of source, I have split the source 5k*3 and trying to scan 5k programs. When i executed above command to scan, scan failed with below error
INFO: Calculating CPD for 5000 Files
INFO: 0/5000 - current file: ABCDE.CBL
INFO: 0/5000 - current file: ABCDE.CBL
INFO: 0/5000 - current file: ABCDE.CBL
INFO: 0/5000 - current file: ABCDE.CBL
INFO: 0/5000 - current file: ABCDE.CBL
INFO:
INFO:--------------------------------
INFO: EXECUTION FAILURE
INFO:--------------------------------
INFO: Total Time: 47:44:66s
INFO: FINAL MEMORY: 17/2760M
INFO:--------------------------------
ERROR: Error During SonarQube Scanner Execution
Error: Fail during the detection of duplication of ABCDE.CBL
ERROR: Caused by: java.lang.OutOfMemoeryError: GC overhead limit exceeded
ERROR: Caused by: GC overhead limit exceeded
So i incased the heap size and skiping package design and executing below command which is now running for more than 24 hours.
Command-2:
java -Djava.awt.headless=true -Xmx8192m -classpath .jar -Dscanner.home= ** -Dproject.homr = ** -Dsonar.skipPackageDesign=true -Dsonar.skipDesign=true -Dsonar.ws.timeout=960 -Dsonar.projectkey=**** -Dsonar.source=. -Dsonar.cobol.file.suffix=.CBL -Dsonar.lanaguage=cobol -Dsonar.host.url=https******* -Dsonar.login=*******
Please advice if anything is wrong in the command, also is there any way to scan all 15k COBOL programs.