Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
/bin/sh running 100% after a few days
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
vtrac
Tux's lil' helper
Tux's lil' helper


Joined: 16 Apr 2004
Posts: 86

PostPosted: Sun Oct 30, 2005 8:30 am    Post subject: /bin/sh running 100% after a few days Reply with quote

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
View user's profile Send private message
dgaffuri
Advocate
Advocate


Joined: 05 Jun 2005
Posts: 2078
Location: Italy

PostPosted: Sun Oct 30, 2005 8:50 am    Post subject: Reply with quote

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
View user's profile Send private message
mens
Guru
Guru


Joined: 27 Aug 2003
Posts: 392
Location: Belgium

PostPosted: Sun Oct 30, 2005 8:55 am    Post subject: Reply with quote

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
Code:
gdb -p 29351
or check what files it's using with
Code:
lsof | grep 29351
.
Back to top
View user's profile Send private message
vtrac
Tux's lil' helper
Tux's lil' helper


Joined: 16 Apr 2004
Posts: 86

PostPosted: Sun Oct 30, 2005 6:50 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum