Downloads Section Updated

Mick

Administrator
Staff member
Administrator
Joined
Jan 19, 1999
Messages
32,154
Reaction score
9,223
I have rewrote the vbulletin.org downloads2 modification (the section with all our satellite / cable images etc - NOT the new private webspace i have made).

Basically the existing download section eats away at memory (its not been updated since 2009 this vbulletin.org mod), when someone downloads a 100mb file it stores that file into memory while it is being downloaded.

I noticed this performance problem before there could be 10 people downloading 150MB files that is 1.5GB in ram taken while this happens, imagine that with 100 people downloading on crappy 1mb isps etc in peak time... it could be a disaster for any server.

This only happens when downloading

I wrote a new function that would give the files to you (your browser) at 1MB at a time (chunked)...

allowing php to flush the memory after 1mb each time.

This should also speed up your download too as browsers I believe (do not quote me), can multi thread, passing you many chunks at a time...

However like everything, I only downloaded one file after writing this, so if you could all keep an eye out and let me know if anyone has problems, I especially would like to hear from IE users.

Thank you
Mick
 
Last edited:
I have rewrote the vbulletin.org downloads2 modification (the section with all our satellite / cable images etc - NOT the new private webspace i have made).

Basically the existing download section eats away at memory (its not been updated since 2009 this vbulletin.org mod), when someone downloads a 100mb file it stores that file into memory while it is being downloaded.

I noticed this performance problem before there could be 10 people downloading 150MB files that is 1.5GB in ram taken while this happens, imagine that with 100 people downloading on crappy 1mb isps etc in peak time... it could be a disaster for any server.

This only happens when downloading

I wrote a new function that would give the files to you (your browser) at 1MB at a time (chunked)...

allowing php to flush the memory after 1mb each time.

This should also speed up your download too as browsers I believe (do not quote me), can multi thread, passing you many chunks at a time...

However like everything, I only downloaded one file after writing this, so if you could all keep an eye out and let me know if anyone has problems, I especially would like to hear from IE users.

Thank you
Mick

Well no complaints since I updated the vbulletin downloadsii Modification so I guess it has been stable... I am sure there would of been some complaints had the downloads been broken lol.

This is a first though... I cant remember the last time I updated something and it broke lol, must be getting better :)

Mick
 
Back
Top