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 is not using available ram

Discussion in 'EasyApache' started by lorio, Feb 20, 2015.

  1. lorio

    lorio Well-Known Member

    Joined:
    Feb 25, 2004
    Messages:
    243
    Likes Received:
    3
    Trophy Points:
    18
    cPanel Access Level:
    Root Administrator
    Any idea where to look when apache 2.2 prefork is not using RAM. 8GB or 16GB available.

    8GB and 16GB and only 900MB RAM are used. Centos 6 x64
    Apache 2.2 Prefork + SuPHP.

    Even when putting a lot of connection on php applications.

    Looks like a bottleneck somewhere else.
     
    #1 lorio, Feb 20, 2015
    Last edited: Feb 20, 2015
  2. Skamasle

    Skamasle Member

    Joined:
    Mar 18, 2012
    Messages:
    22
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
    Maybe apache not need more ?

    If there is no errors on error_log, apache not need more memory...

    Or maybe you have setup apache limits under "Apache Configuration"
     
  3. lorio

    lorio Well-Known Member

    Joined:
    Feb 25, 2004
    Messages:
    243
    Likes Received:
    3
    Trophy Points:
    18
    cPanel Access Level:
    Root Administrator
    Thanks for your response.

    The limit is set to:
    RLimitMEM 1462711978

    Error.log apache shows nothing relevant. Business as usual.

    Might be the case that Apache in combination with SuPHP and MySQL is not the bottleneck.
    Higher load but no change in RAM above 9XX MB of 16XXX MB is a bit strange. Swapspace is not used at all.
    Running on a VPS 16 GB RAM 8 CPU Cores under SSD RAID

    In that situation Apache is showing already "..reading.. " on the status screen.

    I am overlooking something simple.

    Just a sar output to get a picture about the system resource usage.

    Beside the ..reading.. apache status I haven't found a real issue. suPHP is always a CPU hog.
    I wonder what is possible when sticking to suPHP in combination to prefork.
     
    #3 lorio, Feb 20, 2015
    Last edited: Feb 20, 2015
  4. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,675
    Likes Received:
    648
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    Hello :)

    To clarify, are you experiencing any actual slowness or reduced performance, or are you simply concerned that RAM is not utilized?

    Thank you.
     
  5. lorio

    lorio Well-Known Member

    Joined:
    Feb 25, 2004
    Messages:
    243
    Likes Received:
    3
    Trophy Points:
    18
    cPanel Access Level:
    Root Administrator
    There where a few problems in terms of performance. I used the time to pinpoint the issues.

    From time to time I just get tricked by the different top tools like atop and htop,

    htop uses a different memory display method.
    So RAM is used when taking a look at top as a comparism.

    Mem: 16442108k total, 9337636k used, 7104472k free, 493572k buffers
    Swap: 1048572k total, 0k used, 1048572k free, 8112172k cached

    The main issue on the VPS seems to be suPHP and it's demand for CPU power.
    I wonder what hardware is needed to allow e.g. 100 concurrent connections to a php script (e.g. forum) under suPHP. DSO seems to be no option in terms of security.

    Is there a heavy traffic (in terms of concurrent users) site which still sticks to suPHP? I cannot believe it.
     
  6. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,675
    Likes Received:
    648
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
  7. lorio

    lorio Well-Known Member

    Joined:
    Feb 25, 2004
    Messages:
    243
    Likes Received:
    3
    Trophy Points:
    18
    cPanel Access Level:
    Root Administrator
    #7 lorio, Feb 25, 2015
    Last edited: Feb 25, 2015
  8. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,675
    Likes Received:
    648
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
Loading...

Share This Page