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:

  1. Stop JIRA.

  2. 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
      1. List all java processes using: ps -ef | grep java 
      2. Note down the process id of JIRA / RMsis processes from the output of above command.
      3. 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
      1. Open a command prompt window (as Administrator) 
        • From "Start\Search box" Enter "cmd" then right-click on "cmd.exe" and select "Run as Administrator"
      2. 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"

      3. Note down the process id of the process 

      4. Then Kill the process by Process ID: taskkill /F /PID 12345, where 12345 is the process ID.

  3. Restart JIRA.
  4. Try to access RMsis again.

Sample run on *nix server:


Sample run on windows server: