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.

Server load issues causing fatal error out of memory

Discussion in 'Workarounds and Optimization' started by spyr05, Nov 7, 2011.

  1. spyr05

    spyr05 Member

    Joined:
    Nov 7, 2011
    Messages:
    5
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Reseller Owner
    Processor:<br>
    <br>
    Code:
    Processor #1VendorGenuineIntel [TABLE="class: datatable brick, width: 100%, align: center"]
    [TR]
    [TD="class: cell, align: left"]NameIntel(R) Xeon(R) CPU           L5609  @ 1.87GHz Speed1862.043 MHz Cache12288 KB
    
    Processor #8VendorGenuineIntel [TABLE="class: datatable brick, width: 100%, align: center"]
    [TR]
    [TD="class: cell, align: left"]NameIntel(R) Xeon(R) CPU           L5609  @ 1.87GHz Speed1862.043 MHz Cache12288 KB
    [/TD]
    [/TR]
    [/TABLE]
    
    [/TD]
    [/TR]
    [/TABLE]
    
    RAM
    Code:
              total       used       free     shared    buffers     cached
    Mem:       2097152     360124    1737028          0          0          0
    -/+ buffers/cache:     360124    1737028
    Swap:            0          0          0
    Total:     2097152     360124    1737028
    
    Im receiving a high server load more than the 8cpus i have and its causing me a lot of memory errors. Any help will be appreciated as i am new to the whole virtual server scheme.

    By the way i have 10 joomla site installed with one of the getting a relevantly good traffic as much as 1500 visitors a day. I have installed a joomla cache component and didnt have any problems until yesterday that i have added another account website on the server.
     
  2. cPanelTristan

    cPanelTristan Quality Assurance Analyst
    Staff Member

    Joined:
    Oct 2, 2010
    Messages:
    7,623
    Likes Received:
    21
    Trophy Points:
    38
    Location:
    somewhere over the rainbow
    cPanel Access Level:
    Root Administrator
    Can you please specify the exact error you are receiving and where you are receiving that error for us to know what might be the cause.
     
  3. spyr05

    spyr05 Member

    Joined:
    Nov 7, 2011
    Messages:
    5
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Reseller Owner
    I am receiving high server loads overcoming my cpu usage. The errors i receive are fatal out of memory errors different kinds. sometimes its extension.php sometimes language.php. but as i can see in the server they are caused by mysql
     
  4. spyr05

    spyr05 Member

    Joined:
    Nov 7, 2011
    Messages:
    5
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Reseller Owner
    ive identified the exact error in one of my websites error log here it is

    Cannot allocate memory: couldn't create child process: /opt/suphp/sbin/suphp for /home/public_html/index.php
     
  5. cPanelTristan

    cPanelTristan Quality Assurance Analyst
    Staff Member

    Joined:
    Oct 2, 2010
    Messages:
    7,623
    Likes Received:
    21
    Trophy Points:
    38
    Location:
    somewhere over the rainbow
    cPanel Access Level:
    Root Administrator
    The CPU usage isn't the issue but memory per the error. Can you check WHM > Daily Process Logs to see which account is showing the highest memory usage?

    Next, can you check the following in the Apache error logs:

    Code:
    grep -i maxclient /usr/local/apache/logs/error_log
    Also, can you provide the memory_limit value in your php.ini file?

    Code:
    grep ^memory /usr/local/lib/php.ini
    Finally, can we see if you have any rlimits set in Apache?

    Code:
    grep -i rlimit /usr/local/apache/conf/httpd.conf
     
  6. spyr05

    spyr05 Member

    Joined:
    Nov 7, 2011
    Messages:
    5
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Reseller Owner
    Seeing the daily process log i can see that the top processes are

    User Domain % CPU % MEM MySQL Processes
    fygas fygas.net 2.74 2.64 2.8
    mysql 1.02 0.94 0.0
    snwebdes snwebdesigns.com 0.63 0.30 0.2
    root 0.22 4.57 2.0

    Apache server log gives me this:

    [Tue Jul 19 09:07:22 2011] [error] server reached MaxClients setting, consider raising the MaxClients setting
    [Tue Aug 16 15:11:08 2011] [error] server reached MaxClients setting, consider raising the MaxClients setting
    [Tue Aug 16 15:29:59 2011] [error] server reached MaxClients setting, consider raising the MaxClients setting
    [Tue Aug 16 15:40:56 2011] [error] server reached MaxClients setting, consider raising the MaxClients setting

    Memory limit: memory_limit = 384M

    RLimitMEM 178956970
    RLimitCPU 240

    This is the info
     
Loading...

Share This Page