Hi,
After upgrading from 5.6.7 to 6.7.1 I started getting 500 errors when the sonar scanner tried to upload analysis to our sonarqube server.
I worked through a couple server / mysql configuration tweaks based on exceptions found in web.log.
- Increased max_allowed_packet to 1GB
- increased the innodb redo log size
- increased the RAM of the system
- increased the java heap size allocated to the compute engine
Nothing seemed to help.
Watching the scanner run, I noticed that one of our files took at least 10 minutes to analyze.
So I went and looked into the scanner-report directory while the scanner was running.
The corresponding "issues pb" files was over 550MB - after adding the file to the scanner exclusions list, the analysis started to work again.
Not sure what's wrong with that file - its just some java code.
I'm hoping to save someone else similar problems in the future, so I'm attaching a sample gradle project based on that file.
The 75 lines of code in the sample project take about 6 minutes to analyze and create a large report which makes the CE process on our server crash out.
Crash reports and server config details are enclosed.
Thanks in advance for taking a look.
Sandy