Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

Server Runs out of Memory

Discussion in 'General Discussion' started by stu567blue, Nov 28, 2018.

  1. stu567blue

    stu567blue Member

    Joined:
    Nov 2, 2015
    Messages:
    12
    Likes Received:
    1
    Trophy Points:
    3
    Location:
    United Kingdom
    cPanel Access Level:
    Website Owner
    Hi There,

    I'm hoping someone might be able to help me, I currently have a server that is running CentOS6, it has 2GB ram, 40GB HDD.

    The server is reliable, bar one small problem, every now and then for a period of around 5 minutes or so the server will go offline. I will then be sent a notification from the server saying

    Out of memory, the process php-cgi was terminated because the system is low on memory, this is then often accompanied by mysql, nameserver and spamd also failing.

    Classic example, I carried out a search on one of our websites, its quite large, but this caused the server to crash.

    I'm a bit of a noob when it comes to Linux Administration, to any pointers would be brill.

    Cheers.

    Rob
     
  2. webhostuk

    webhostuk Well-Known Member

    Joined:
    Sep 11, 2013
    Messages:
    149
    Likes Received:
    15
    Trophy Points:
    18
    Location:
    UK
    cPanel Access Level:
    Website Owner
    Twitter:
    I feel you have a VPS and not dedicated server, does the server goes down at the same time everyday? if so in that case it can be due to some cron process, backup anything.. for this need to check server logs to confirm exactly which process is causing the memory issue.
    Also one important point if its VPS confirm which technology they are using ,are this VPS Xen server, KVM etc. This can confirm if its your server issue or the complete node problem.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
    stu567blue likes this.
  3. stu567blue

    stu567blue Member

    Joined:
    Nov 2, 2015
    Messages:
    12
    Likes Received:
    1
    Trophy Points:
    3
    Location:
    United Kingdom
    cPanel Access Level:
    Website Owner
    Hi,

    Many thanks for your response.

    It is a VPS, and it goes down at various times of the day. Initially it was being caused by traffic targeting xmlrpc.php on WordPress websites, but we secured this using WordFence.

    Classic example if you carry out a search on one of the websites, it causes the server to hang, almost like its having major difficulty handling the query.

    I'll check what technology we're using on the server.

    Cheers

    Rob
     
  4. ES - George

    ES - George Well-Known Member PartnerNOC

    Joined:
    Jun 12, 2011
    Messages:
    177
    Likes Received:
    23
    Trophy Points:
    68
    Location:
    UK
    cPanel Access Level:
    DataCenter Provider
    Twitter:
    Aside from purchasing more memory/RAM, you may like to optimize your server, disabling any services that you do not need or do not use. As two quick examples, if no email is hosted on this server, consider disabling SpamAssassin. Or, if DNS is handled externally, you most likely won't want BIND (DNS Server). You can find more information on doing so at the below link:

    Service Manager - Version 76 Documentation - cPanel Documentation

    You may also like to look the below tutorial, which should help you to better determine what's using up your RAM:

    Tutorial - Troubleshooting high server loads on Linux servers
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  5. cPanelMichael

    cPanelMichael Technical Support Community Manager Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    47,503
    Likes Received:
    2,179
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Twitter:
    Hello Rob,

    The information quoted above is likely the source of problem. The following link (included in the response above) is the best place to start when troubleshooting issues like this:

    Tutorial - Troubleshooting high server loads on Linux servers

    Let us know if this helps.

    Thank you.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice