![]() |
|
#1
|
||||
|
||||
[Linux] Finding a runaway or locked programRight now I have 2 runaway or locked processes on the web server...
Here's what I did: SSH in to my webserver (linux), type: Code:
Now, how do I know which one is the runaway process? Is it anything with more than 00:00:00 in the line? __________________
J de Silva Learning Journal | GIDForums™ | GIDNetwork™ | GIDWebhosts™ | GIDSearch™ |
|
#2
|
||||
|
||||
|
First of all, make sure that you are root. You most likely can't kill the process unless you are root.
Next, the command should be: ps -xa This should list *all* of the pids as well as the status for each. You may want to do a man of ps as it will give you a list of the state codes. D: uninterruptible sleep R: runnable S: sleeping T: traced or stopped Z: zombie (defunct) process. Telling which one you want to kill is a bit more tricky. Some processes take alot of cycles and are supposed to. Things like kswapd and bdflush, as well as kdm take alot of cycles. Also, killing a parent will take down all of the child processes as well, so use it with caution. Hope this helps... |
|
#3
|
||||
|
||||
|
Quote:
Oh Yeah... found that out just as soon as I finished posting this and actually trying it... ![]() Thanks for the confirmation / correction though. __________________
J de Silva Learning Journal | GIDForums™ | GIDNetwork™ | GIDWebhosts™ | GIDSearch™ |
Recent GIDBlog
Toyota - 2008 July Promotion by Nihal
| Thread Tools | Search this Thread |
| Rate This Thread | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| [Linux] How to run a program under another username | Allowee | Computer Software Forum - Linux | 4 | 23-Jan-2004 08:09 |
Network Sites: GIDNetwork · GIDWebHosts · GIDSearch · Learning Journal by J de Silva, The