Re: Allowed memory size exhausted (line 130 of "/usr/share/php/Horde/ErrorHandler.php")

Michael J Rubinsky <[email protected]> Thu, 14 Feb 2019 20:18:22 +0000
Newsgroups gmane.comp.horde.user
Message-ID <20190214201822.Horde.O1J3DrGUmAPIC7-fXtmxyup@tarn.theupstairsroom.com>
Quoting Daniel Bareiro <[email protected]>:

> 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

-- 
Horde mailing list
Frequently Asked Questions: http://horde.org/faq/
To unsubscribe, mail: [email protected]
(unnamed) (application/pgp-keys, 9.1 KB) - not displayed
signature.asc (application/pgp-signature, 821 B)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4

iQIcBAABAgAGBQJcZc0OAAoJEJGSgkbRsxbbYL8QAI+/u0N2XuMMn1iD81EvLbJE
4YHMXYXIBj6vmXsC2IJ46whGweA+ayBkAxFkdb27Q/gK3FD349X7AgeulAhA50Yq
3qaLTSuqcqGzzDykiwTjx8v2Ictvg1imUfABTZZIwB8YgEp/xEZVhSR2UVQ2ElAU
31WG8QhDJaIfRcYhUf2lxVmA8x2Fr1TnjVI+i9qEsHDZDhPP2LmlsXLmp7E5ioJB
S1VhODAwQFx5FKgbBT91pxWqOG4Ur1SiLVz5JHd9lmylREoQIiV8SuAXhxZi2Cad
qwyX7SHrHA+HNgdoJRfxCV+qUfV5APyOdim+b1/LGi07YTK/TCIS4zzl7RawORXY
hcbQCnZ4eVfxUkk3OjWvEmeJLa1pG5wNpJk60LvtmoTy3gFIu/mb5ooZ2TEtcZJ3
fkLJMkPHG0fAQajBuQMKAVd6gr/588Q4RcUyxAr2W1W/NSex22EX0ZpDJUoc6L/E
YpI/xutRcJ8ADj2gohk4cNxr6TtFQvejmFVjuu6ScfOriCC43iMlIEQuVg4HYHn8
osM1zYu8kDAHNnSK+M1M/CCKDYKBhI6YLbsyl/eqWqTZ0lLB+PiPwS0qbnLQcA07
Yy3XbzRbNYicHJitJ9T9gPtEvG7xjLQtcsLA3E0A3y8otZHu7MirPzkR4yj6XoJk
/cOW/sl17YP/UNJHTA6A
=ms4e
-----END PGP SIGNATURE-----