Hi Tobias,
Thanks for the details on this , I will check with Datadog team on this , But I have an another question here , In order to activate JMX remote connection I have followed the documentation (Monitoring | SonarQube Docs) And I have even updated sonar.properties file as below
For Web server:
sonar.web.javaAdditionalOpts=-Dcom.sun.management.jmxremote=true -Dcom.sun.management.jmxremote.ssl=false -Dcom.sun.management.jmxremote.authenticate=true -Dcom.sun.management.jmxremote.port=10443 -Dcom.sun.management.jmxremote.rmi.port=10444 -Dcom.sun.management.jmxremote.password.file=/opt/sonarsource/sonar/conf/jmxremote.password -Dcom.sun.management.jmxremote.access.file=/opt/sonarsource/sonar/conf/jmxremote.access
And I feel There is no changes required regarding for compute Engine as you have mentioned There is no specific javaAdditionalOpts entry, simply amend sonar.ce.javaOpts, So I guess there was nothing I have done .
And I have even created password and access file in the below location /opt/sonarsource/sonar/conf/jmxremote.password and even gave CHMOD 600 for password file as mentioned in Docs , But After that When I restart Sonarqube , It is giving me the below error
Error: Password file not readable: /opt/sonarsource/sonar/conf/jmxremote.password
jvm 1 | sun.management.AgentConfigurationError
jvm 1 | at sun.management.jmxremote.ConnectorBootstrap.checkPasswordFile(ConnectorBootstrap.java:567)
jvm 1 | at sun.management.jmxremote.ConnectorBootstrap.startRemoteConnectorServer(ConnectorBootstrap.java:426)
jvm 1 | at sun.management.Agent.startAgent(Agent.java:262)
jvm 1 | at sun.management.Agent.startAgent(Agent.java:452)
jvm 1 | 2021.02.11 10:28:53 WARN app[o.s.a.p.AbstractProcessMonitor] Process exited with exit value [web]: 1
jvm 1 | 2021.02.11 10:28:53 INFO app[o.s.a.SchedulerImpl] Process [web] is stopped
jvm 1 | 2021.02.11 10:28:53 INFO app[o.s.a.SchedulerImpl] Process [es] is stopped
jvm 1 | 2021.02.11 10:28:53 WARN app[o.s.a.p.AbstractProcessMonitor] Process exited with exit value [es]: 143
jvm 1 | 2021.02.11 10:28:53 INFO app[o.s.a.SchedulerImpl] SonarQube is stopped
Can you please tell us what we are doing wrong here ?
And one more thing is that if I will set Jmx.remoteauthenticate=false as below , It is working fine and there was No issues.
sonar.web.javaAdditionalOpts=-Dcom.sun.management.jmxremote=true -Dcom.sun.management.jmxremote.ssl=false -Dcom.sun.management.jmxremote.authenticate=false -Dcom.sun.management.jmxremote.port=10443 -Dcom.sun.management.jmxremote.rmi.port=10444
Can you please let me Why I am getting the error as per details from sonarqube Docs , DO I need to update anything else ?? or Do I need to apply any permissions ?
if Not Is It ok if I mention Jmx.remoteauthenticate=false. Please let me know if you need any additional details on this .