[Tickets #4753] Re: Attachment rewrites causing HUGE memory bloat

bugs at bugs.horde.org bugs at bugs.horde.org
Thu Oct 4 11:21:36 UTC 2007


DO NOT REPLY TO THIS MESSAGE. THIS EMAIL ADDRESS IS NOT MONITORED.

Ticket URL: http://bugs.horde.org/ticket/?id=4753
-----------------------------------------------------------------------
 Ticket             | 4753
 Updated By         | tosca at cs.aau.dk
 Summary            | Attachment rewrites causing HUGE memory bloat
 Queue              | IMP
 Version            | HEAD
 Type               | Bug
 State              | Resolved
 Priority           | 2. Medium
 Owners             | Horde Developers, Michael Slusarz
-----------------------------------------------------------------------


tosca at cs.aau.dk (2007-10-04 04:21) wrote:

I would recommend that you reopen this bug, we experience problems
downloading an 36 mb attachment with a 128 mb memory limit.
With a 256 mb memory limit it is ok.

Running latest stable horde / imp and php.

It seems that allot of the memory is consumed by the str_replace calls
in lib/MIME/Contents.php -- One could wonder if a unix/windows line shift
conversion is really nessecery in a binary attachment, eg. zip file. - One
might also think it would be smarter streaming the attachment directly to
the client at download and not drag it through php memory?

I haven't looked much into this as other things take priority at the
moment, does anyone experience similar problems?

Best regards, Martin





More information about the bugs mailing list