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.

CPU load and apache

Discussion in 'EasyApache' started by NihaoHst, May 15, 2007.

  1. NihaoHst

    NihaoHst Member

    Joined:
    Aug 8, 2006
    Messages:
    6
    Likes Received:
    0
    Trophy Points:
    1
    For some reason, I recently have been getting random huge CPU load due to apache.
    When it happends noone can connect to the server, if I'm lucky I can make a httpd stop via ssh after many minutes of waiting and hoping the connection wont be timout due to cpu being crazy. Otherwise I'm forced to ask my host for a hard reboot and the problem only happends hours or days later again...

    I don't understand whats causing it since my config is updated I have an average of 50 users on Vbulletin and a couple personal blogs/sites with low trafic.

    I changed my httpd.conf and it helped lowering the number of times the cpu goes crazy but I got a new issue today and I dont the source of all these issues.

    Full log is attached with about a 100 httpd sessions by user nobody.

    If anyone has suggestions I'd be happy to listen.

    Thanks in advance.
     

    Attached Files:

    • log.txt
      File size:
      24.2 KB
      Views:
      34
    #1 NihaoHst, May 15, 2007
    Last edited: May 15, 2007
  2. useradmin

    useradmin Well-Known Member

    Joined:
    Oct 8, 2004
    Messages:
    107
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    INDIA
    apche eating memory.

    hi,


    there are all apache process stuck..
    for example
    date
    Tue Jun 5 05:39:59 PDT 2007

    nobody 1926 2.7 1.9 57772 41244 ? S 05:35 0:07 /usr/local/apache/bin/httpd -DSSL

    mostly prcess show status = S
    it means sleep mode..
    as per id info

    lrwxrwxrwx 1 root root 0 Jun 5 05:40 cwd -> //
    -r-------- 1 root root 0 Jun 5 05:40 environ
    lrwxrwxrwx 1 root root 0 Jun 5 05:40 exe -> /usr/local/apache/bin/httpd*

    there are many such process.

    free -m
    total used free shared buffers cached
    Mem: 2025 1952 72 0 149 953
    -/+ buffers/cache: 849 1175
    Swap: 8001 92 7908

    we are not sure who is eating memory.. we tried to adjust httpd.conf and all everything but no use...

    what to do in such case?

    :confused:
     
  3. eNetHosts

    eNetHosts Well-Known Member

    Joined:
    Apr 21, 2007
    Messages:
    195
    Likes Received:
    0
    Trophy Points:
    16
    Have you tried restarting cPanel and killing any background processes that you don't need, including using the WHM option to kill background processes that users shouldn't be running?
     
  4. Epademic

    Epademic Active Member

    Joined:
    Nov 21, 2003
    Messages:
    39
    Likes Received:
    0
    Trophy Points:
    6
    Hi,

    I'm experiencing the exact same problem http://forums.cpanel.net/showthread.php?t=63942

    Been having this problem for the past few months, however very rarely can i not regain control either by restarting apache or its automatically killed by the process monitor.

    From what I can tell its completely random. If i can be of any help troubleshooting let me know.

    Cheers,

    James
     
  5. vagsoftware

    vagsoftware Active Member

    Joined:
    Oct 20, 2006
    Messages:
    27
    Likes Received:
    0
    Trophy Points:
    1
    Wassup!

    Be carreful about iroffer, eggdrop and other shits like this. There are irc channel clients with sharing possibilities. That means that even if you have quota on user x, you can use quota on nobody :mad:. Permanent check quota on user nobody:

    quota -v nobody

    I discovered myself and bust them all. You can run this processed with nobody user and hide with xsh for example with other names and owners. The result, even if you write "ps aux" you are blind. Use detectors for nobody processing like nobody_check. Search on google. It is a powerful script that can monitor and destroy any kind of processes that are suspicios. It send alerts on email. Put it in cron. Use an email2sms service and you are a god!

    Guys from cPanel! Solve this fucking problem with nobody user and virtual hosts (not using safe_mod in php, cause you can run perl also :D)!

    Respekt.

    PS: rkhunter also is a good scanning tool. Power to the people!
     
Loading...

Share This Page