Fatal error: Out of memory in cpanel horde

johnburk

Well-Known Member
Jun 23, 2006
241
0
166
When trying to open an attachement I get the following error in the cPanel horde webmail.

Code:
Fatal error: Out of memory (allocated 46399488) (tried to allocate 17309701 bytes) in /usr/local/cpanel/base/horde/lib/Horde/MIME/Part.php on line 1157
This is strange because the allocated memory according to this error is 45M and the file is 17M. Does anyone know why this happens and if it something that can be fixed within cPanel/WHM?

The php.ini limit is set to 256M

and
Code:
grep -i rlimit /usr/local/apache/conf/httpd.conf
shows 512

Solution
If you have had this problem, then most forums will tell you to look at php.ini of httpd.conf, but that does not solve the problem in this case.

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

Default is 256M and you can set it to a higher value. This is the solution.
 
Last edited:

johnburk

Well-Known Member
Jun 23, 2006
241
0
166
WHM -> Tweak Settings > The maximum memory a cPanel process can use before it is killed off.

Default is 256M and you can set it to a higher value. This is the solution.

In my case I set it so 512M and that did the job.
 

StarbuckII

Member
Nov 13, 2009
16
0
51
I don't have this is Horde what ever that is but I get a similar error uploading plugins to wordpress blogs hosted under cPanel. It would seem to me that the errors are the same. I increased the process limit to 512, but that didn't solve it. So I have to stop & restart something?

Am I dealing with the same error issue or is mine different?
 

StarbuckII

Member
Nov 13, 2009
16
0
51
It obviously restarted a number of Daemons when I selected save changes, but I still get the error.
 

cPanelTristan

Quality Assurance Analyst
Staff member
Oct 2, 2010
7,607
43
348
somewhere over the rainbow
cPanel Access Level
Root Administrator
Individual cPAddon installations such as WordPress (those installed using cPanel > Site Software) are bound by either the global php.ini at /usr/local/lib/php.ini or the account's individual php.ini (/home/username/public_html or /home/username/public_html/wordpressfoldername). These do not use the same php.ini as the webmail programs, since webmail is bound by the cPanel process memory limits instead. This means that increasing the Tweak Setting mentioned wouldn't work for WordPress hitting a limit.