6.0.0-beta1
▾
Tasks
New Task
Search
Photos
Wiki
▾
Tickets
New Ticket
Search
dev.horde.org
Toggle Alerts Log
Help
7/26/25
H
istory
A
ttachments
C
omment
W
atch
Download
Comment on [#5913] Lower memory usage while downloading files
*
Your Email Address
*
Spam protection
Enter the letters below:
.__ ..__ .__..__. [__) |[__)[__]| | | \\__|[__)| ||__|
Comment
> Hi Guys, > > > >>> Looking at the sort of files that are being stored in Gollem (and > >>> the same goes for > >>> attachments as well), those wouldn't dynamically change size. > >> > >> I'm not sure what dynamically changing size would have to do with this. > > > > That was a comment on Chuck's remark about often not reading static files. > > > > But, it's really not that hard (from my point of view). Right now, > (it would appear anyhows) the entire file is read into memory, from > whatever source (DB, ftp, smb, etc). Causing memory problems with > large files. > > As opposed to reading the file into RAM, why not copy it to local > disk and then sending it to the client in chuncks, saving heaps on > memory. > > The downside of having to use so much memory is that your webserver > will start swapping to disk sooner. In general, clients sit on > connections that are way slower than average disks can read, so speed > is not an issue here. > > A one GB RAM server will happily serve hundreds of people a 250MB > file when this is done in chuncks, whereas it'll choke on 2 users if > those files are read into memory first. > > > > BTW, I live in Australia, so you might not get quick responses when > you guys are half way through the day... :-) > > > > Cheers! Olger.
Attachment
Watch this ticket
N
ew Ticket
M
y Tickets
S
earch
Q
uery Builder
R
eports
Saved Queries
Open Bugs
Bugs waiting for Feedback
Open Bugs in Releases
Open Enhancements
Enhancements waiting for Feedback
Bugs with Patches
Enhancements with Patches
Release Showstoppers
Stalled Tickets
New Tickets
Horde 5 Showstoppers