Skip to main content

Confused by "Out of memory" alerts

Comments

9 comments

  • cPanelMichael
    Load Information 97.29 45.97 17.92

    Hello :) The following thread is a good place to get started when troubleshooting load and memory usage: Troubleshooting high server loads on Linux servers Thank you.
    0
  • tdsm
    Thanks so much cPanelMichael and sorry for the slow response I will definitely have a good look over this tutorial when I have more time. I wonder if you could help me on more time... I'm on a VPS and my RAM is quite low, all sites on the VPS are Wordpress installs. I've looking into MPM Prefork/ITK to see if I can limit memory usage as this is what keeps throwing up problems. I have found some very conflicting advice! It seems to indicate that Prefork spawns a new PHP process per request and that ITK is kinder on memory. I'm sure I also read somewhere that you can limit the number of PHP processes through WHM if you use ITK... is this true as it might help me guard against spawning of loads of processes? Easy Apache gives me 4 recommended profiles; Basic Apache 2.2 (MPM Prefork) Basic Apache 2.4 (MPM Prefork) MPM ITK Mod Ruid2 Which would be most suitable in this case? Tom
    0
  • cPanelMichael
    Our documentation team has created the following document to help explain the pros and cons of each MPM option: MPM Options - EasyApache 4 - cPanel Documentation
    all sites on the VPS are Wordpress installs

    I found the following third-party URL that offers advice on optimizing WordPress on cPanel servers: WordPress Optimization - cPanel WordPress Optimization Guide using PHP-FPM, OPcache, Memcached, Varnish and Apache Event Thank you.
    0
  • CrazySerb
    In addition to the original post, I am confused as to why is cPanel sending out hundreds and hundreds of these Out of Memory emails every second once a process hits the ceiling, thus adding more gasoline onto the fire and having all those emails being sent add to the issue, resource usage and clogging up the system?! I've had my tech guys look into it and they said it's a bug/issue with cPanel and you should fix it... but I haven't seen anything yet from your end. Any idea how to tweak this, or limit those emails to just one per minute (I don't need to know every single time the process gets blocked/terminated, just let me know once a minute or something whether it's still happening or not), in WHM or something?
    0
  • Infopro
    You can adjust email notifications here: WebHost Manager "Server Contacts "Contact Manager, Notifications tab. And you can adjust various system settings here you might like to know about: WebHost Manager "Server Configuration "Tweak Settings, System tab.
    0
  • CrazySerb
    I am aware of that. But nowhere in those settings is there an option to limit how many "Out of Memory" notifications I receive per minute or anything close to that.... as those are sent every single time one of the websites causes the PHP or something to hit the ceiling of sorts. And for busy websites that's been happening like 50 times a second, so that my inbox (and Exim on the server) are clogged up in a matter of minutes.
    0
  • Infopro
    I think I'd be more inclined to want to know what the issue is and fix it, rather than how I can disable the system alerts about it.
    0
  • CrazySerb
    Well, the tech guys are working on it... but they also noticed that once this happens, these email notices start firing off like crazy, and short of disabling them all together (not an option, as then I have no idea that there's a problem), they add to the problem itself, increasing the server resource usage and such. So I'd like to see you guys look into that as well - prevent something like this from pouring more gas onto the fire once the fire breaks out...
    0
  • Infopro
    Please feel free to open a ticket directly to cPanel Technical Support if needed.
    0

Please sign in to leave a comment.