For one of the requests made to sonarqube as below we are seeing a response of 500 from sonar server. Iam seeing an OOM error on sonar server at the time of request. The response code 500 could be because of OOM on sonar server.
The OOM seen is as below
Java::JavaLang::OutOfMemoryError (Java heap space):
The error seems to be coming from jruby.
I do not see a heap dump (Option HeapDumpOnOutOfMemoryError is present for "org.sonar.server.app.WebServer").
The below are the questions,
Are Jruby operations are spawned as separate processes ?
What is the default heap used by Jruby and how to change it ?
Any debug flags to enable to determine the root cause ?
Unfortunately that's a known limitation with our JRuby on Rails web services. Responses can't be streamed. That will be fixed when all our JRuby web services will be replaced by pure Java implementations. I can't give you release date of this pending task.