cancel
Showing results for 
Search instead for 
Did you mean: 
jeesshnasree
Flight Engineer
Flight Engineer
  • 7,157 Views

unable kill the process ID and how resolve the issue

Jump to solution
 
0 Kudos
1 Solution

Accepted Solutions
Scott
Starfighter Starfighter
Starfighter
  • 7,114 Views

@jeesshnasree,

RHEL 4 is End of Support as of March 2017, you really need to look into migrating this system (and apps) to a more current RHEL.

kill -9 is likely the way to go, but realize that sigkill (-9) is not sent to the process, but instead denotes that the kernel should terminate this process.  When the kernel terminates a process, it just wipes it off the system.  Because of that, files that are open may still be open the next time the OS goes to access them, someone earlier mentioned corrupted data, that's possible, but as long as the disk writes were put into the OS buffer, that'll still be honored.  However, any active transactions (to like a database) that were occuring would only be partially done as the process doing them was destroyed in the middle of it's operation.  You want to use -9 as infrequently as possible.

-STM

--
Manager, Technical Marketing
Red Hat Enterprise Linux
Red Hat Certified Engineer (100-000-264)

View solution in original post

0 Kudos
7 Replies
oldbenko
Moderator
Moderator
  • 7,145 Views

Hey, @jeesshnasree,

Please tell us a bit more if you want us to help you.

Provide at least the following:

  • what do you want to achieve?
  • what did you do?
  • what happened?
  • what did you expect to happen?

It's kind of difficult to help if one doesn't know at least some of the above.

Cheers,
Grega

A black cat crossing the street signifies that the animal is going somewhere.
[don't forget to kudo a helpful post or mark it as a solution!]
jeesshnasree
Flight Engineer
Flight Engineer
  • 7,135 Views

Actually it’s related to java process ID and unable to kill (RHEL OS 4), finally  not able to stop JVM .,could you please provide solution . Could you please let me know if more details required 

0 Kudos
kubeadm
Flight Engineer Flight Engineer
Flight Engineer
  • 7,130 Views

Try:

sudo  kill -9 <PID>  

Keep in mind that if you forcefully kill a process, it may cause data corruption.

0 Kudos
jeesshnasree
Flight Engineer
Flight Engineer
  • 7,105 Views

I think "sudo kill -9 <PID>"  with running non-root user for kill  and  not sure  with "sudo kill -9 PID . if execute kill -9 <PID> ( i think only stop the particular process id related JVM and not sure about corrept data . if I wrong about this message , please correct me

0 Kudos
jthiatt
Flight Engineer Flight Engineer
Flight Engineer
  • 7,117 Views

What kind of state is the proces in?  You can check the state of the process with the ps command.

ps aux | grep <PID>

You may not be able to kill the process depending on the processes state (zombie (Z) or uninterruptable (D))

 

 

0 Kudos
Scott
Starfighter Starfighter
Starfighter
  • 7,115 Views

@jeesshnasree,

RHEL 4 is End of Support as of March 2017, you really need to look into migrating this system (and apps) to a more current RHEL.

kill -9 is likely the way to go, but realize that sigkill (-9) is not sent to the process, but instead denotes that the kernel should terminate this process.  When the kernel terminates a process, it just wipes it off the system.  Because of that, files that are open may still be open the next time the OS goes to access them, someone earlier mentioned corrupted data, that's possible, but as long as the disk writes were put into the OS buffer, that'll still be honored.  However, any active transactions (to like a database) that were occuring would only be partially done as the process doing them was destroyed in the middle of it's operation.  You want to use -9 as infrequently as possible.

-STM

--
Manager, Technical Marketing
Red Hat Enterprise Linux
Red Hat Certified Engineer (100-000-264)
0 Kudos
jeesshnasree
Flight Engineer
Flight Engineer
  • 7,107 Views

thanks Scott

0 Kudos
Join the discussion
You must log in to join this conversation.