I am using SonarQube community version, 9.3.0.51899 on Windows 10. It got installed and I was able to scan some projects and see the results.
I logged out of the UI (http://localhost:9000/) and closed chrome browser. I stopped wrapper.exe as well by closing “cmd” window.
When I run StartSonar.bat again, it usually runs and it worked for many days in the past. But now it is giving error with callstack saying some processes are using “\Sonar-config-plugin.jar” in temp directory.
I identified 3 java processes which are still running corresponding to port:9000, 9001 and 9092.
Can I safely kill these java processes? or is there any another way I should do it?
The server I am using is a build server and it is being used across the organization, so I am little hesitant in doing any action in it. Could anyone please confirm?
Note: I experimented killing the java processes in my laptop locally. It worked.
First, yes it was safe to shut down those processes. In fact, they should have shut down along with SonarQube so it sounds like the server didn’t shut down cleanly. Rather than simply closing the command window, it would be better next time to call the stop script.
I downloaded the community version, sonarqube-9.3.0.51899.zip from Download | SonarQube and unzipped it.
Then I started StartSonar.bat from “…\bin\windows-x86-64\ folder.
It launches wrapper.exe and five other java services.
When I close cmd window where StartSonar.bat is run, It closes wrapper.exe and two other java services. What are these two service?
I do not see any other option expect closing cmd window as command prompt is not available once after running “StartSonar.bat” in cmd window. 3 java services related to ports, 9000, 9001 and 9092 are still running and it is consistent behavior. These 3 java services are not getting closed automatically.
Earlier in my post, I mentioned that these 3 services are closed. It is not true as I used to start StartSonar.bat in the beginning of the day and I used to close cmd window just before shutting down my laptop at the end of day of my work. It looks like these 3 java services stopped during laptop shutdown process.