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.

each apache process is using 12,5% memory

Discussion in 'EasyApache' started by perica, Jan 21, 2009.

  1. perica

    perica Member

    Joined:
    Jan 12, 2005
    Messages:
    6
    Likes Received:
    0
    Trophy Points:
    1
    Hi, I have a strange top output. Each apache process is using 12,5% of memory. Server: apache 2.2, PHP 5.2.6, suPHP.

    Does anyone know what is the problem? Thanks...

    Code:
     3856 internet  25   0 30032  18m 5400 R   23  1.8   0:00.69 /usr/bin/php /home/internet/public_html/forum/viewtopic.php
    28055 root      25   0  133m 126m 2836 S   11 12.5   0:12.40 /usr/local/apache/bin/httpd -k start -DSSL
     3724 nobody    15   0  133m 126m 2036 S    2 12.5   0:00.22 /usr/local/apache/bin/httpd -k start -DSSL
     2551 nobody    15   0  133m 126m 2048 S    2 12.5   0:04.01 /usr/local/apache/bin/httpd -k start -DSSL
     3836 nobody    18   0  133m 126m 2000 S    2 12.5   0:00.05 /usr/local/apache/bin/httpd -k start -DSSL
     3853 nobody    22   0  133m 126m 1992 S    2 12.5   0:00.05 /usr/local/apache/bin/httpd -k start -DSSL
      610 nobody    15   0  133m 126m 2056 S    1 12.5   0:07.18 /usr/local/apache/bin/httpd -k start -DSSL
     3693 nobody    15   0  133m 126m 2040 S    1 12.5   0:00.78 /usr/local/apache/bin/httpd -k start -DSSL
     3720 nobody    15   0  133m 126m 2036 S    1 12.5   0:00.22 /usr/local/apache/bin/httpd -k start -DSSL
     3777 nobody    19   0  133m 126m 2000 S    1 12.5   0:00.04 /usr/local/apache/bin/httpd -k start -DSSL
     3778 nobody    18   0  133m 126m 2004 S    1 12.5   0:00.04 /usr/local/apache/bin/httpd -k start -DSSL
     3779 nobody    20   0  133m 126m 2000 S    1 12.5   0:00.04 /usr/local/apache/bin/httpd -k start -DSSL
     3780 nobody    20   0  133m 126m 2000 S    1 12.5   0:00.04 /usr/local/apache/bin/httpd -k start -DSSL
     3781 nobody    24   0  133m 126m 2000 S    1 12.5   0:00.04 /usr/local/apache/bin/httpd -k start -DSSL
     3782 nobody    22   0  133m 126m 2000 S    1 12.5   0:00.04 /usr/local/apache/bin/httpd -k start -DSSL
     3783 nobody    25   0  133m 126m 1972 S    1 12.5   0:00.04 /usr/local/apache/bin/httpd -k start -DSSL
     3784 nobody    21   0  133m 126m 1972 S    1 12.5   0:00.04 /usr/local/apache/bin/httpd -k start -DSSL
     3840 nobody    20   0  133m 126m 2000 S    1 12.5   0:00.04 /usr/local/apache/bin/httpd -k start -DSSL
     3848 nobody    21   0  133m 126m 2000 S    1 12.5   0:00.04 /usr/local/apache/bin/httpd -k start -DSSL
     4728 mysql     15   0  124m  27m 4864 S    1  2.7  45:01.92
     
  2. perica

    perica Member

    Joined:
    Jan 12, 2005
    Messages:
    6
    Likes Received:
    0
    Trophy Points:
    1
    bump .......
     
  3. cPanelDavidG

    cPanelDavidG Technical Product Specialist

    Joined:
    Nov 29, 2006
    Messages:
    11,279
    Likes Received:
    8
    Trophy Points:
    38
    Location:
    Houston, TX
    cPanel Access Level:
    Root Administrator
    That looks like the Apache process rather than EasyApache (/scripts/easyapache). The Apache process will routinely use memory as part of its duties of serving web pages.

    You mention it is using 12.5% of your memory. How much memory do you have on your server? Is it a VPS or dedicated server?
     
  4. perica

    perica Member

    Joined:
    Jan 12, 2005
    Messages:
    6
    Likes Received:
    0
    Trophy Points:
    1
    Hi, thanks for you reply.

    server is PowerEdge 2650, xeon 2,4 GHz, 1 GB DDR ECC.
    I also have few other servers, but on them apache process are using around0.1, 0.3. 0.5 etc.

    I tried upgrade apache to 2.2, downgrade PHP to 5.2.5 but results are still same.
     
  5. cPanelStephen

    cPanelStephen Active Member
    Staff Member

    Joined:
    Aug 7, 2007
    Messages:
    25
    Likes Received:
    0
    Trophy Points:
    1
    These processes aren't all actually using 12.5% of your system's available memory, but instead are accessing the same chunk of shared memory.

    For a more accurate depiction of how much memory is actually being consumed by httpd, you could run free, stop httpd, then run free again and calculate the difference. This is by no means 100% accurate, but can give you a good ball park figure (and assure you that httpd is not actually using the amount of memory you're observing in ps).
     
  6. noisetheory

    noisetheory Registered

    Joined:
    Aug 23, 2004
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    1
    I am also seeing the same issues on two completely seperate cPanel servers we have, both recent/new builds. Load time on web addresses is extremely slow however it "appears" as though there is minimal CPU/memory usage.
     
  7. Arun

    Arun Active Member

    Joined:
    Jan 28, 2006
    Messages:
    27
    Likes Received:
    0
    Trophy Points:
    1
    I am seeing the same in a new VPS with couple of not-much-traffic-yet websites. It is a VPS and there isn't any load at all in the VPS and in the node. Apache seems to be taking up the RAM after a few minutes (some times after a couple of hours). I have checked it using the method cpanelstephen mentioned above. I tried upgrading to Apache 2.2 and 5.2.8, but I do not see a difference yet.
     
Loading...

Share This Page