View previous topic :: View next topic |
Author |
Message |
vtrac Tux's lil' helper
Joined: 16 Apr 2004 Posts: 86
|
Posted: Sun Oct 30, 2005 8:30 am Post subject: /bin/sh running 100% after a few days |
|
|
About a week or two ago I did a full "emerge world" and caught my dual opteron server up to date. A few days later, my server wasn't responding, and so I had the datacenter do a reboot, which brought it back online. About 4-5 days later, I was logged into the system and noticed that there were 10 or so sh processes in top that were taking 100% of both CPUs. I rebooted the system and they were gone. Today, which is about 4-5 days after I last reboot the system, I logged in and noticed there are currently two sh entries sharing 100% of both CPUs. I have no idea what is spawning them, or what they're doing. Here are the entries:
Code: | PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
29351 root 25 0 4436 588 452 R 99.9 0.0 777:13.75 sh
29360 root 25 0 4436 588 452 R 99.9 0.0 778:06.79 sh
|
Here's output from ps -C sh -f:
Code: | root 29351 29348 99 Oct29 ? 12:58:17 /bin/sh -c (hostname)
root 29360 29357 99 Oct29 ? 12:59:10 /bin/sh -c (hostname)
|
Anyone have a clue what this is coming from or how I can track this down? |
|
Back to top |
|
|
dgaffuri Advocate
Joined: 05 Jun 2005 Posts: 2078 Location: Italy
|
Posted: Sun Oct 30, 2005 8:50 am Post subject: |
|
|
Have you checked the parent processes (29348 and 29357) with ps -f? _________________ Adopt an unanswered post
If you feel that your problem has been solved please edit the top post and add [solved] to the subject |
|
Back to top |
|
|
mens Guru
Joined: 27 Aug 2003 Posts: 392 Location: Belgium
|
Posted: Sun Oct 30, 2005 8:55 am Post subject: |
|
|
No idea where it's coming from, the PPID should already give you a hint. If this doesn't help, you could try a few other things:
hook a debugger to one of them or check what files it's using with . |
|
Back to top |
|
|
vtrac Tux's lil' helper
Joined: 16 Apr 2004 Posts: 86
|
Posted: Sun Oct 30, 2005 6:50 pm Post subject: |
|
|
Thanks for the suggestions, guys. I killed them after making this post, and they haven't come back yet, but as soon as they come back I'll check the parent processes and the debugger. |
|
Back to top |
|
|
|