[horde] attachment problem
Michael M Slusarz
slusarz at horde.org
Wed Jan 26 19:27:05 UTC 2011
Quoting Paras pradhan <pradhanparas at gmail.com>:
> Rick ,
>
> You are right. I see the following in log
>
> --
> PHP Fatal error: Allowed memory size of 134217728 bytes exhausted
> (tried to allocate 11581821 bytes) in
> /var/www/html/h/lib/Horde/Serialize.php on line 278
> --
>
> But I don't understand why it is failing since allowed memory is
> greater than tried to allocate bytes.
Because the "allocated X bytes" reported in the log is the amount PHP
attempted to allocate *in addition* to whatever memory was already
being used. e.g. in the log entry above, PHP may have already been
using 134217728 bytes; allocating 1 additional byte is what triggers
the error.
> And I have 128M memory limit. Trying to keep it down since my server
> has really high number of web server child processes :)
Then you have to accept the fact that you can't send large attachments.
FYI, IMP 5 solves (most) of these issues as it handles message data
entirely via streams, automatically spooling to disk once memory usage
goes above 2 MB. Unfortunately this is not available in IMP 4/Horde 3
since these streams are a relatively recent addition to PHP.
michael
--
___________________________________
Michael Slusarz [slusarz at horde.org]
More information about the horde
mailing list