I am using a SonarQube CLI Scanner started from a TFS instance on a Windows Build Agent (Windows 10 Datacenter 64bit) to analyze a (rather large) PHP/JS project.
This used to work well, lately the jobs fail with the SonarQube Scanner reporting:
Could not reserve enough space for 3135488KB object heap
I tried setting
SONAR_SCANNER_OPTS = -Xmx4G
this didn't seem to have any effect though.
Could this be connected to the Java VM (which is 32bit, latest version)? Also, the latest SonarQube runner used by the TFS is listed as version 3.1.1 and seems to have been installed when the problems started. Coincidence?
Is it possible/should I use a 64bit Java VM?
Any advice on how to get this running again would be greatly appreciated.