ERROR: Error during SonarScanner execution java.lang.OutOfMemoryError: Java heap space

Hello,
I’ve installed sonarqube developer edition on ubuntu running on aws t3.medium, and configured my bitbucket cloud pipeline to run on pull request.
When the pipeline runs I get the following error. Can you please help?

ERROR: Error during SonarScanner execution

java.lang.OutOfMemoryError: Java heap space

I managed to make it work by analyzing some directories only. Locally I didn’t need to do that though

Hi,

Welcome to the community!

It sounds like this is a question of the resources available on your build agent, especially if you didn’t have to make any exceptions/extra configurations

 
HTH,
Ann