Search
Get RSS Posts / Comments

Out of memory error on horde

Posted by kire on July 20, 2010

This one’s here because I spent the better half of an hour troubleshooting this for a customer.

The error:

Fatal error: Out of memory (allocated 47448064) (tried to allocate 13472326 bytes) in
/usr/local/cpanel/3rdparty/lib/php/Net/SMTP.php on line 821

The cause:

Sending messages through Webmail with attachments larger than 10MB.

Incorrect diagnosis:

If you’ve stumbled upon this post as a result of furious internet searching for similar issues, you’ve likely found thousands of posts regarding the error indicating the problem lies in the php.ini file of cPanel or Horde. While the PHP memory limit for cPanel and Horde are defined in their own php.ini, this does not actually alleviate the error seen here. cPanel itself will actually kill off applications consuming more than what is defined in Tweak Settings.

The Fix:

WHM (as root) ->Tweak Settings > The maximum memory a cPanel process can use before it is killed off.

Change this to 512M or 0 to disable memory limits all together.

Done.

Related posts:

  1. force a horde update and reset databases Sometimes you may need to update Horde forcefully due to...
  2. imapd: Error: Input/output error So your IMAP mail is failing. Your e-mail client disconnects...
  3. Error: Failed opening ‘Net/SMTP.php’ for inclusion Warning: send(Net/SMTP.php) [function.send]: failed to open stream: No such file...
  4. cPanel error: language cache is out of date During an upcp, or visible on cPanel WHM you may...

Related posts brought to you by Yet Another Related Posts Plugin.

Leave a Reply