Skip to main content

Out of memory! Message in Error Log

Comments

12 comments

  • cPanelMichael
    Hello :) I am happy to see you were able to address the issue. Thank you for updating us with the outcome.
    0
  • HostCenter IL
    I just had the same problem. Is there any way to fix it other than restarting MySQL? (This is not a really good idea on a shared hosting server.)
    0
  • cPanelMichael
    [quote="HostCenter IL, post: 1731611">I just had the same problem. Is there any way to fix it other than restarting MySQL? (This is not a really good idea on a shared hosting server.)
    Are you taking a specific action when you notice the "Out of Memory" message in the cPanel error log? Have you tried increasing the value for "Max cPanel process memory" in "Tweak Settings"? Thank you.
    0
  • Tool Outfitters
    This issue began for me back in June. The way I fixed the issue is I added more swap (was 1GB, now 3GB). My question is why all of a sudden did cpanel functions (update, backup, etc...) begin (and continues) to consume a great deal of memory? The reason I ask is I feel that cpanel is consuming so much memory that it is taking away from the normal daily operation. For example, I can reboot my server and during the day I will be using about half of my 3.4GB physical memory with MySql utilizing about 14% and no swap being used. After/during cpanel cron runs the update, bincheck, or backup, all of my physical memory is consumed and swap has to be utilized. Also MySql memory drops to about 11%. At the time I did open a support ticket but the response was try this or that. Instead of suggesting "this or that" why not find out the cause and fix it? Before this all occurred, my backups used to take no longer than 30 minutes and now they take almost 3 hours. Attached is a graph of the last 24 hours and last 7 days that show the spike in memory everyday that cpanel cron occurs.
    0
  • cPanelMichael
    Please ensure you read the following post to fully understand how memory usage works: Memory Usage Higher Than Expected That's not to say your memory usage is normal, especially with SWAP usage, but it's import to post that link for others that may see this thread. [QUOTE]Before this all occurred, my backups used to take no longer than 30 minutes and now they take almost 3 hours.
    Feel free to open a support ticket if you want us take a closer look at the backup generations on your system to see if we notice anything out of the ordinary. You can post the ticket number here so we can update this thread with the outcome. Thank you.
    0
  • Tool Outfitters
    Thanks for the reply Michael. Yes, I have read that post numerous times and I still do not fully understand how memory works. To tell you the truth, I cannot even see the excessive memory usage in top when it occurs but I can certainly see it in the graphs. I just wanted to post how I remedied (not "fix" as I stated before) the issue so others would know. I did not get anywhere with the ticket I submitted so I am not sure I want to revisit it. All I know is that there is excessive memory usage when cpanel runs any type of function. It seems to me that it is using very little CPU thus putting a strain on memory usage.? The spikes you see in the above graphs are only from cpanel updates. I ended up doing backups once a week instead of the usual every other day because it was interfering with other crons that I have set up to run in the middle of the night. I am going to turn off updates and backups for a while and see what the results are. [COLOR="silver">- - - Updated - - - I meant to post this in my previous post but it appears that I am unable to edit my posts. Here is my current memory usage. Current Memory Usage total used free shared buffers cached Mem: 3572736 3070692 502044 0 0 2001520 -/+ buffers/cache: 1069172 2503564 Swap: 3572736 192512 3380224 Total: 7145472 3263204 3882268
    0
  • Tool Outfitters
    Well unfortunately there is no way to completely disable cpanel updates. The update check still runs and still consumes a great amount of memory. So again, my question is why does cpanel consume so much memory? It did not used to and even the documentation still states that the default cpanel max memory is 128MB.
    0
  • cPanelMichael
    [quote="Tool Outfitters, post: 1734851">I did not get anywhere with the ticket I submitted so I am not sure I want to revisit it. All I know is that there is excessive memory usage when cpanel runs any type of function. It seems to me that it is using very little CPU thus putting a strain on memory usage.?
    Could you let us know the ticket number so we can take a closer look? Thank you.
    0
  • Tool Outfitters
    Support Request Id 5202305 - Cron Backups The subjuect is Cron Backups but that was before I realized it was updates that was causing high memory usage as well.
    0
  • cPanelMichael
    Hello :) Just to clarify, are you experiencing actual performance issues (e.g. websites down, slowness), or is it just the statistics that show memory is utilized that concerns you? Thank you.
    0
  • Tool Outfitters
    Performance (slowness, responsiveness). I can reboot the server and my websites will run great all day long but after updates/backups run, my sites become slow. It would also be nice if my backups only took 30 minutes to backup like they used to instead of 3 hours. [COLOR="silver">- - - Updated - - - Why can't anyone explain why cPanel utilizes at least 1GB of memory?
    0
  • cPanelMichael
    [quote="Tool Outfitters, post: 1736212">Why can't anyone explain why cPanel utilizes at least 1GB of memory?
    Essentially, what you are saying is that the cPanel memory limit for cPanel-related processes is not being properly enforced, and that cPanel is using more memory than it should. It's not something we can answer because it's not something that's been reported or is a known issue. This would be something that we would have to look into by examining your server. You would have to open a support ticket so we can take a closer look, as it was not brought up in the previous ticket you referenced. Thank you.
    0

Please sign in to leave a comment.