Background task stuck

I’m using the following setup

  • sonar-scanner v1.1.0
  • Bitbucket pipelines
  • Angular 10 project

The analysis is stuck for more than one day, queuing up all subsequent analysis. The error details are java heap out of memory. Screenshot:

Many of us experiencing the same problem, please consolidate in this thread: