[horde] Allowed memory size exhausted (line 130 of "/usr/share/php/Horde/ErrorHandler.php")

Michael J Rubinsky mrubinsk at horde.org
Thu Feb 14 20:18:22 UTC 2019


Quoting Daniel Bareiro <daniel-listas at gmx.net>:

> Hi, Grouchy.
>
> On 14/2/19 15:38, Grouchy Sysadmin wrote:
>
>>> Some time ago I am observing this error in the syslog:
>>>
>>> ----------
>>> HORDE: Allowed memory size of 134217728 bytes exhausted (tried to
>>> allocate 106430464 bytes) [pid 700 on line 130 of
>>> "/usr/share/php/Horde/ErrorHandler.php"]
>>> ----------
>>>
>>> As I see, the block referred to in the error is the following:
>>>
>>> ----------
>>> 125                 if (is_object($error)) {
>>> 126                     echo '<h3>' .
>>> Horde_Core_Translation::t("Details") . '</h3>';
>>> 127                     echo '<h4>' . Horde_Core_Translation::t("The
>>> full error message is logged in Horde's log file, and is shown below
>>> only to administrators. Non-a    dministrative users will not see error
>>> details.") . '</h4>';
>>> 128                     ob_flush();
>>> 129                     flush();
>>> 130                     echo '<div id="details"><pre>' .
>>> htmlspecialchars(print_r($error, true)) . '</pre></div>';
>>> 131                 }
>>> ----------
>>>
>>> Any information to fix it would be appreciated, since this error appears
>>> approximately every 10 min in the syslog. If there is any way I can
>>> provide more debug information, please let me know.
>>>
>>> I'm using Horde Groupware 5.2.22.
>
>> Adjust the PHP memory_limit to a higher number. For example,
>>
>> memory_limit = 256M
>
> I have tried increasing the memory_limit values to 256M and 512M, but it
> also increases the memory used with the same error:
>
> With memory_limit = 256M:
>
> HORDE: Allowed memory size of 268435456 bytes exhausted (tried to
> allocate 240648192 bytes) [pid 9533 on line 130 of
> "/usr/share/php/Horde/ErrorHandler.php"]
>
> With memory_limit = 512M:
>
> HORDE: Allowed memory size of 536870912 bytes exhausted (tried to
> allocate 510394368 bytes) [pid 10118 on line 130 of
> "/usr/share/php/Horde/ErrorHandler.php"]
>
>
> I'm not sure but could it be that the format of any specific email is
> causing this problem?

If it has a .DAT or .TNEF attachment you probably don't have the  
bcmath php extension installed and are instead using the  
Math_BigInteger package, which is buggy and exhausts memory.


>
> Thanks for your reply.
>
> Kind regards,
> Daniel



-- 
mike
The Horde Project
http://www.horde.org
https://www.facebook.com/hordeproject
https://www.twitter.com/hordeproject
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-keys
Size: 9272 bytes
Desc: PGP Public Key
URL: <https://lists.horde.org/archives/horde/attachments/20190214/8ff8b81c/attachment-0002.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 821 bytes
Desc: PGP Digital Signature
URL: <https://lists.horde.org/archives/horde/attachments/20190214/8ff8b81c/attachment-0003.bin>


More information about the horde mailing list