Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 9 of 9
  1. #1
    Member
    Join Date
    Jun 2004
    Posts
    38

    Default Apache using 700+ Mb Memory

    Hi,

    I have a Dual xeon 2.4 (Hyerthreading so thats 4 virtual)

    1gig ECC Ram.

    Running latest firmware of Cpanel/WHM

    last pid: 67597; load averages: 0.13, 0.22, 0.24 up 4+11:54:14 13:25:44
    115 processes: 2 running, 112 sleeping, 1 zombie
    CPU states: 0.2% user, 0.0% nice, 0.0% system, 0.0% interrupt, 99.8% idle
    Mem: 679M Active, 79M Inact, 194M Wired, 40M Cache, 112M Buf, 9524K Free
    Swap: 1536M Total, 620M Used, 916M Free, 40% Inuse


    I only host about 10-15 sites that arent very big in size..

    I found apache was using that much memory by using

    ps auxf | grep http | cut -c 31-37

    then i added all the numbers up in a php script i quickly made (RRS is the memory usage right?)

    I added it up to 700MB+ ..

    apache config =

    #-
    #Rlimit added by apachelimits.pl
    #-
    RLimitMEM 0
    RLimitCPU 240
    MaxKeepAliveRequests 100
    KeepAliveTimeout 15
    MinSpareServers 32
    MaxSpareServers 64
    StartServers 5
    MaxClients 400
    MaxRequestsPerChild 0


    any ideas?

  2. #2
    Member
    Join Date
    Jun 2004
    Posts
    38

    Default

    Reason im worried is its started to use SWAP space.. alot of it.. like 200MB worth..

    this is a new server that i got 2 weeks ago, testing it atm b4 i make it go live with real hostinf clients.

  3. #3
    Member
    Join Date
    Jun 2004
    Posts
    38

    Default

    most of them dont get many.. one site gets alot but the thing is


    i had all the same sites running on another box 512MB ram amd xp 1900..

    it had like 100-150Mb free on that server..

    thats why im confusessed.

  4. #4
    Member
    Join Date
    Jun 2004
    Posts
    38

    Default

    Tried that..

  5. #5
    Member
    Join Date
    Jun 2004
    Posts
    38

    Default

    im gonna do more testing to find out what it is myself.. just thought id ask here before i start

  6. #6
    Member
    Join Date
    Feb 2004
    Posts
    124

    Default

    You may or may have not found the problem. I find my memory usage peeks when I have tons of connections. Try running:
    netstat -na

    and see how many connections you have...if you have alot...then more than likely that is your issue..

  7. #7
    Registered User
    Join Date
    Aug 2004
    Posts
    4

    Default Did you solved this issue?

    I'm having exactly the same problem that you had with apache using all your memory and start swapping.
    Please help me because i'm lost here and don't know what to do.
    Did you solve this? What whas the issue?
    Thanks so much for sharing.

  8. #8
    Member
    Join Date
    Jul 2004
    Posts
    108

    Default

    one thing you can do is go into whm and go into Modify Apache Memory Usage
    It will put a peak of what apache can take for memory.

    Have you looked if you aren't having a kind of DOS attack to your apache?

  9. #9
    Member
    Join Date
    Jun 2004
    Posts
    38

    Default

    Apache Limiter by J. Nick Koston
    Checking for BSD Accounting ....
    Calculating Memory Limit .......0..
    ..0..
    Largest Webserver child cgi/ssi/php is now limited to 0 meg



    isent that bad..?

Similar Threads & Tags
Similar threads

  1. Apache High Load and Apache Memory Limits
    By bsasninja in forum cPanel and WHM Discussions
    Replies: 0
    Last Post: 07-25-2007, 03:20 PM
  2. files all at 700 by default???
    By Snowman30 in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 10-15-2005, 06:03 AM
  3. apache using like 50% memory
    By Malik in forum cPanel and WHM Discussions
    Replies: 3
    Last Post: 01-28-2005, 05:33 PM
  4. apache using like 50% memory?
    By Sinewy in forum cPanel and WHM Discussions
    Replies: 0
    Last Post: 10-10-2004, 07:37 AM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube