Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 3 of 3
  1. #1
    Member Sergiu Tot's Avatar
    Join Date
    Jul 2007
    Location
    Cluj, Romania
    Posts
    63
    cPanel/Enkompass Access Level

    Root Administrator

    Angry Apache process cause huge load

    Hello !

    I have a problem with an apache process that is causing huge load. It starts from time to time - I'm not sure what is making it start beacause there's nothing in cron, but it appears every few minutes - and when it starts is uses a lot of RAM (up to 1.3GB) and create a huge load on server, up to 70 (from 0.5-1.5 which is the average). If I don't kill the processes immediatly it blocks the server. Another interesting thing that I observed is that it starts 2 or 3 paralell processes.

    On strace I get the following result:
    Code:
    Process 14808 attached - interrupt to quit
    write(3, "ffb\r\n\n&\n&\n&=\n&=\n&\n&=\n&\n&\n&=\n&\n&="..., 4098) = 4098
    write(3, "ffb\r\n=\n&\n&=\n&=\n&\n&\n&=\n&=\n&\n&=\n&\n"..., 4098) = 4098
    write(3, "ffb\r\n\n&\n&=\n&=\n&\n&=\n&\n&\n&=\n&=\n&\n&"..., 4098) = 4098
    write(3, "ffb\r\n&=\n&\n&\n&=\n&=\n&\n&\n&=\n&\n&=\n&="..., 4098) = 4098
    write(3, "ffb\r\n=\n&\n&\n&=\n&\n&=\n&=\n&\n&=\n&\n&\n&"..., 4098) = 4098
    write(3, "ffb\r\n\n&\n&\n&=\n&\n&=\n&=\n&\n&=\n&\n&\n&="..., 4098) = 4098
    write(3, "ffb\r\n&\n&\n&=\n&\n&=\n&=\n&\n&\n&=\n&=\n&\n"..., 4098) = 4098
    write(3, "ffb\r\n\n&\n&=\n&=\n&\n&\n&=\n&\n&=\n&=\n&\n&"..., 4098) = 4098
    write(3, "ffb\r\n&=\n&\n&=\n&\n&\n&=\n&=\n&\n&\n&=\n&\n"..., 4098) = 4098
    write(3, "ffb\r\n=\n&\n&=\n&\n&\n&=\n&\n&=\n&=\n&\n&\n&"..., 4098) = 4098
    write(3
    On lsof it shows me that it opens a lot (all, I guess) of files from /usr/local/apache/domlogs.

    Does anyone has any idee what the cause may be ?

  2. #2
    Registered User
    Join Date
    Dec 2007
    Posts
    1

    Default

    Try rebuilding apache.

  3. #3
    Member nyjimbo's Avatar
    Join Date
    Jan 2003
    Location
    New York
    Posts
    1,105

    Default

    Quote Originally Posted by Sergiu Tot View Post
    Does anyone has any idee what the cause may be ?
    Well first thing, DO NOT try rebuilding apache at this time.

    Second, you are going to need more info. This could be an attack, if you are right and all the domlogs are getting sudden writing to them there could be an attack to flood apache and cause a buffer overrun. The fact it eats that much ram makes me wonder if its something running on the machine itself, because a normal outside http attack should just keep spawning children and not make one http task grow that big.

    Can you do an apache status in WHM at that time to get a quick snapshot of any weird stuff, look for that pid that is eating all the ram?. Also can you see if some of the apache logs get similiar lines of info, that is see if several of them at the same moment (or within seconds) get huge requests of junk?.

    Do you see pattern to it, that is can you time it within a few seconds or is it fairly random.
    "A dog has raised it’s hind leg on the age of nevermore !"
    -- Rolf

Similar Threads & Tags
Similar threads

  1. Huge Problems with Apache Rebuild | Apache Templates | Apache Conf Caching
    By hodfords in forum cPanel and WHM Discussions
    Replies: 6
    Last Post: 03-15-2010, 07:28 PM
  2. One users spamd process causing huge loads
    By housefire in forum cPanel and WHM Discussions
    Replies: 4
    Last Post: 05-01-2008, 06:58 AM
  3. UPCP huge load
    By JBapt in forum cPanel and WHM Discussions
    Replies: 4
    Last Post: 05-07-2007, 02:58 PM
  4. Apache running as single process in process table
    By btrieve in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 09-22-2003, 10:45 PM
  5. Huge loads, runaway apache process Cpanel 6.0.0-S88
    By ozzi4648 in forum cPanel and WHM Discussions
    Replies: 18
    Last Post: 03-03-2003, 03:10 AM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube