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.

Apache Memory usage

Discussion in 'EasyApache' started by teknowebworks, Jul 25, 2006.

  1. teknowebworks

    teknowebworks Active Member

    Joined:
    Mar 9, 2004
    Messages:
    30
    Likes Received:
    0
    Trophy Points:
    6
    I'm running CentOS 4.2 with the stock kernel, and ever since the last PHP upgrade, i'm having this strange issue where i see HTTPD process all the sudden start going from 10m - 12m to 120m and than gettting killed. I tryed suphpexec, to seperate php from apache, but apache is still doing it, php seems fine. Anyone else have problems like this?

    The main thing is that it's killing my servers, basically eats up all my ram, starts swapping, IO wait goes crazy and which stalls everything and basically renders the server unusable until PRM kills everything.
     
  2. chirpy

    chirpy Well-Known Member

    Joined:
    Jun 15, 2002
    Messages:
    13,475
    Likes Received:
    20
    Trophy Points:
    38
    Location:
    Go on, have a guess
    Sounds like a memory leak. Try changing the following option in httpd.conf to:

    MaxRequestsPerChild 50

    Then restart httpd. That's quite a low figure, but probably the best for an overloaded server.
     
Loading...

Share This Page