Sonar Stopped : WARNING: System::setSecurityManager has been called by org.sonar.process.PluginSecur

Sonar Stopped giving a warning

WARNING: A terminally deprecated method in java.lang.System has been called
WARNING: System::setSecurityManager has been called by org.sonar.process.PluginSecurityManager (file:/opt/sonarqube-9.9.1.69595/lib/sonar-application-9.9.1.69595.jar)
WARNING: Please consider reporting this to the maintainers of org.sonar.process.PluginSecurityManager
WARNING: System::setSecurityManager will be removed in a future release

Sonar version - 9.9.1.69595
Deployed on on premise using zip file

Hi,

This warning is not a cause for the SonarQube server to stop. You’ll need to check all log files.

1 Like

Thanks Felipe for going through the issue

I saw there were no errors in sonar.log, web.log, es.log but getting this warning in web.log

2023.08.21 11:43:58 INFO web[o.s.p.ProcessEntryPoint] Hard stopping process
2023.08.21 11:43:58 INFO web[o.s.s.n.NotificationDaemon] Notification service stopped
2023.08.21 11:43:58 INFO web[c.z.h.HikariDataSource] HikariPool-1 - Shutdown initiated…
2023.08.21 11:43:58 INFO web[c.z.h.HikariDataSource] HikariPool-1 - Shutdown completed.
2023.08.21 11:43:58 WARN web[o.a.c.l.WebappClassLoaderBase] The web application [ROOT] appears to have started a thread named [OkHttp TaskRunner] but has failed to stop it. This is very likely to create a memory leak. Stack trace of thread:\n java.base@17.0.6/java.lang.Object.wait(Native Method)\n java.base@17.0.6/java.lang.Object.wait(Object.java:472)\n app//okhttp3.internal.concurrent.TaskRunner$RealBackend.coordinatorWait(TaskRunner.kt:294)\n app//okhttp3.internal.concurrent.TaskRunner.awaitTaskToRun(TaskRunner.kt:218)\n app//okhttp3.internal.concurrent.TaskRunner$runnable$1.run(TaskRunner.kt:59)\n java.base@17.0.6/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136)\n java.base@17.0.6/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635)\n java.base@17.0.6/java.lang.Thread.run(Thread.java:833)
2023.08.21 11:43:58 WARN web[o.a.c.l.WebappClassLoaderBase] The web application [ROOT] appears to have started a thread named [Okio Watchdog] but has failed to stop it. This is very likely to create a memory leak. Stack trace of thread:\n java.base@17.0.6/java.lang.Object.wait(Native Method)\n java.base@17.0.6/java.lang.Object.wait(Object.java:472)\n app//okio.AsyncTimeout$Companion.awaitTimeout$okio(AsyncTimeout.kt:318)\n app//okio.AsyncTimeout$Watchdog.run(AsyncTimeout.kt:183)

Hi @yashvanth ,

Can you attach the full set of logs from $SQ_HOME/logs here for us to review? It’s hard to review only a snippet of the log so we need to see the full context of what could cause your problem.