While executing an external tool, if its timeout is exceeded, the analysis crashes:
Caused by: Timeout exceeded: 1800000 ms [command: php D:\JI1\workspace\Nemo-php\.sonar\phpunit-3.7.20.phar --log-junit=D:\JI1\workspace\Nemo-php\.sonar\phpunit.xml --coverage-clover=D:\JI1\workspace\Nemo-php\.sonar\phpunit.coverage.xml --configuration=phpunit.xml.dist]
For all the external tools, the default value for the timeout is 30 minutes. It can be tuned:
# Value to set in minutes sonar.phpCodesniffer.timeout=30 sonar.phpDepend.timeout=40 sonar.phpPmd.timeout=50 sonar.phpUnit.timeout=60
If you are able to have several versions of these tools on the same machine, just make sure that the correct one will be used.
You also have to make sure that the output file log is compatible with the one specified by the version of the tool you want to use.
PHP executable may have reached its maximum allocated memory. Increase the memory_limit value in your php.ini file. For example the file is located in /etc/php5/cli/php.ini on Ubuntu.
; Maximum amount of memory a script may consume (128MB) ; http://php.net/memory-limit memory_limit = 512M
Increase the maximum heap memory allocated for Maven by setting the environment variable MAVEN_OPTS.
Increase the maximum number of nested levels by editing your php.ini files and setting a value greater than 100 (which is default). You may also need to increase the maximum amount of memory that a script can consume.
; Maximum input variable nesting level ; http://php.net/max-input-nesting-level max_input_nesting_level = 200 xdebug.max_nesting_level = 200 ; Maximum amount of memory a script may consume (128MB) ; http://php.net/memory-limit memory_limit = 1024M