Suppose when u r running a server and an Java IDE and lets say the IDE is hanged and u want to kill it. But if we see the Task Manager there will be multiple java.exe's. We need to find out which process kills the program u want to terminate.
In that case, we have a handy tool named JPS. JPS is Java Virtual Machine Process Status Tool, which comes by default with the Java Installation.
First of all we need to find out the Process Identifier(PID) of the corresponding programs. Lets say if we run a server and IDE . We want to terminate the IDE.
** Type jps in the command prompt which will list all the Java processes running on the machine with the corresponding PIDs.
**Now we got the PID of the process which we want to kill. Lets say PID of server is 5080 and IDE is 3936.
**Now the next question is how to map this PID with the java process that is shown in the Task Manager.
**Open the Task Manager, Go to View>Select Columns> check PID.
Now the Task Manager will list all the PID's along with the process.
**Now kill the corresponding java.exe process with the correct PID given by JPS. i.e. Kill 3936, which kills the IDE process without interupting any other java processes.
So, now we can be pretty sure which process we r going to terminate !!!!
3 comments:
Thanks for the useful info !!
Thanks for your useful suggestion. I am facing the same problem. With your info my prob was solved.
Post a Comment