The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

-bash command using 95% CPU

Discussion in 'General Discussion' started by Blink2, Jul 30, 2005.

  1. Blink2

    Blink2 Member

    Joined:
    Jan 13, 2005
    Messages:
    8
    Likes Received:
    0
    Trophy Points:
    1
    Looking in the CPU usage area, I see nobody using a -bash command that is overloading my CPU, killing the process brings it back.

    What is this doing and how can I stop it sapping my server's life away?
     
  2. AndyReed

    AndyReed Well-Known Member
    PartnerNOC

    Joined:
    May 29, 2004
    Messages:
    2,222
    Likes Received:
    3
    Trophy Points:
    38
    Location:
    Minneapolis, MN
    You need to identify the "nobody" process to see what program they are using to exahust the resources of your server.
     
  3. Blink2

    Blink2 Member

    Joined:
    Jan 13, 2005
    Messages:
    8
    Likes Received:
    0
    Trophy Points:
    1
    How would I do that?
     
  4. kris1351

    kris1351 Well-Known Member

    Joined:
    Apr 18, 2003
    Messages:
    963
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Lewisville, Tx
    If you have a bash command being run by nobody then someone has a php script running something on your box. You need to secure your box up. I suggest hiring someone like Chirpy to help you.
     
  5. chirpy

    chirpy Well-Known Member

    Joined:
    Jun 15, 2002
    Messages:
    13,475
    Likes Received:
    20
    Trophy Points:
    38
    Location:
    Go on, have a guess
    You'll need to login to the root shell, identify the PID using ps and then find out what files it has open using lsof. If you don't know how to do that, you'll either need to teach yourself or hire a server administrator or ask your datacentre for help. A good place to start learning server administration is:
    http://www.tldp.org
     
Loading...

Share This Page