Kill Orphan RMsis Process
On some (rare) occasions, the installer is not able to stop the Java Process related to the instance of RMsis already running on your system.
For example, after RMsis upgrade, sometimes this issue is observed.
Symptoms:
You may see the following error:
RMsis log files will have following error:
com.optimizory.rmsis.plugin.exception.RMsisPluginException: An application is already running on port 3060.
To fix this problem, either change the port for RMsis or close the application which is listening on port 3060.
Steps to resolve this issue:
Stop JIRA.
- Kill all processes related to JIRA / RMsis (they are typically named as Tomcat*, java). This is important because sometimes stopping JIRA does not terminate all the processes.
- On linux server, you can use the following commands
- List all java processes using: ps -ef | grep java
- Note down the process id of JIRA / RMsis processes from the output of above command.
- Use Kill command to kill the processes (related to JIRA / RMsis), if any. Example: kill -9 12345, where 12345 is the process ID.
- On Windows server, you can use the following commands
- Open a command prompt window (as Administrator)
- From "Start\Search box" Enter "cmd" then right-click on "cmd.exe" and select "Run as Administrator"
Find Process ID of process that is using the port on which RMsis in configured to run (e.g. port:"3060") using: netstat -aon | find "3060"
Note down the process id of the process
Then Kill the process by Process ID: taskkill /F /PID 12345, where 12345 is the process ID.
- Open a command prompt window (as Administrator)
- On linux server, you can use the following commands
- Restart JIRA.
- Try to access RMsis again.
Sample run on *nix server:
Sample run on windows server:
Command References:
ps: https://en.wikipedia.org/wiki/Ps_(Unix)
netstat: https://en.wikipedia.org/wiki/Netstat
kill & taskkill: https://en.wikipedia.org/wiki/Kill_(command)
Related articles