cPanel Out of Memory Errors

cPanel Out of Memory Errors
4.5 (90%) 2 votes

I’ve seen several features of cPanel appear to malfunction, and upon reviewing /usr/local/cpanel/logs/error_log, I’d see something similar to this:

Out of memory during request for 2180 bytes, total sbrk() is 130234368 bytes!

Common places this has been known to occur:

  • In Webmail (Horde and Roundcube) when opening large attachments
  • Using cPanel’s perl module installer

You could legitimately be out of RAM, but most likely the cause is cPanel’s internal memory limit. You can raise this in WHM > Tweak Settings:

“The maximum memory a cPanel process can use before it is killed off (in megabytes). Values less than 128 megabytes can not be specified. A value of “0” will disable the memory limits.”

Or you can adjust the maxmem setting in /var/cpanel/cpanel.config.

Don't be selfish, share!Tweet about this on TwitterShare on RedditShare on TumblrBuffer this pageDigg thisShare on FacebookFlattr the authorEmail this to someoneShare on Google+Pin on PinterestPrint this pageShare on LinkedInShare on StumbleUpon

4 Comments

  1. Presoon Reply

    Thank you…. that worked well..
    I faced the issue with the update now button in Awstats. It give a blank page. The cPanel error log showed out of memory issue.

    This fix really helped me. 🙂

  2. Antonie Reply

    Very useful, thank you.

    We had these “Out of memory” issues when trying to restore cPanel accounts from cpmove-xxx.tar.gz files and changing this to unlimited resolved the problem.

Leave a Reply

Your email address will not be published. Required fields are marked *

Log in