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 hangs.

Discussion in 'CloudLinux' started by vixon, Jan 23, 2012.

  1. vixon

    vixon Active Member

    Joined:
    Sep 23, 2009
    Messages:
    32
    Likes Received:
    0
    Trophy Points:
    6
    Location:
    Estonia
    cPanel Access Level:
    Root Administrator
    Hello,

    From time to time our servers hang due to Apache memory leak on some websites (basically gallery sites).
    Also this same sites, which cause the overloading can normally work for weeks but then suddenly crash the server. Average load of the servers is not high ~2.30.

    As I have understand CloudLinux Memory limit doesn't affect Apache processes and there is no any option to prevent such kind of swapping in "LVE Manager". Am I correct ? What server settings should we check and how to solve the issue ?

    Please see the screenshot to get the better view of the trouble.

    ffs.png

    Kernel version: 2.6.18-374.3.1.el5.lve0.8.44

    Apache modules:
    Any help will be highly appreciated!
     
    #1 vixon, Jan 23, 2012
    Last edited: Jan 23, 2012
  2. Eric

    Eric Administrator
    Staff Member

    Joined:
    Nov 25, 2007
    Messages:
    746
    Likes Received:
    11
    Trophy Points:
    18
    Location:
    Texas
    cPanel Access Level:
    Root Administrator
    Howdy,

    I recommend opening a ticket on this.

    Thanks!
     
  3. 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
    I did want to mention that if you use DSO + mod_ruid2 for Apache (only currently available in EDGE 11.31 EasyApache for mod_ruid2), then all processes being run by the user even images or basic html pages will show up as that user when viewing processes. Additionally, they would then show up in WHM's Daily Process Log and be able to be limited by CloudLinux.

    If the basic gallery is overloading due to images being loaded frequently (possibly very large images or even flash-based content), then the choices via cPanel itself are to limit requests using mod_qos (in EasyApache), to use mod_deflate (in EasyApache) to reduce file content sizes (once enabled you can then add it for an account in cPanel > Optimize Website area), or to use mod_ruid2.
     
  4. Jay M

    Jay M Active Member
    PartnerNOC

    Joined:
    Oct 10, 2011
    Messages:
    43
    Likes Received:
    0
    Trophy Points:
    6
    cPanel Access Level:
    Root Administrator
    Hi vixon,

    Could you please keep us updated on how you go with this?
    I believe we saw similiar issues when we were running CL 5.7 with memory limiting enabled, when we disabled it this issue went away.

    Cheers
     
  5. vixon

    vixon Active Member

    Joined:
    Sep 23, 2009
    Messages:
    32
    Likes Received:
    0
    Trophy Points:
    6
    Location:
    Estonia
    cPanel Access Level:
    Root Administrator
    Thanks for your replies!

    We are using suphp handler for many years already and wouldn't like to switch it with dso. We will try to turn "Website's optimization" next time and investigate the issue over again.

    CL memory limit was disabled during the crash and we keep it disabled on all of our servers.

    Another question, may be should we decrease the value of RLimitMEM ? Currently it's 2357604352.
     
  6. storminternet

    storminternet Well-Known Member

    Joined:
    Nov 2, 2011
    Messages:
    462
    Likes Received:
    0
    Trophy Points:
    16
    cPanel Access Level:
    Root Administrator
    RLimitMEM value seems to be set very high on your server. Please decrease it and test the performance.
    Additionally you can also run /scripts/apachelimits that will set limit according to /proc/meminfo
     
  7. vixon

    vixon Active Member

    Joined:
    Sep 23, 2009
    Messages:
    32
    Likes Received:
    0
    Trophy Points:
    6
    Location:
    Estonia
    cPanel Access Level:
    Root Administrator
    I have rechecked and RLimitMEM 2357604352 / RLimitCPU 240 values are set by running the /scripts/apachelimits command.
     
Loading...

Share This Page