Insufficient memory for Java Runtime Environment to continue when running Spotbugs in GitLab

Most likely you exceeded the runner limits, see this post:

If the runner has 4gb limit, then you can’t exceed that - if using - otherwise you can install and configure your own runners and connect them to or your own Gitlab instance if you are running it.

EDIT: new link from the docs: SaaS runners on Linux | GitLab

So your only real option is create your own runner with sufficient memory resources and connect it to or your own Gitlab instance: Install GitLab Runner | GitLab and if using you can disable shared runners to force your project to use your own personal runner.

1 Like