On 7/20/10 9:57 AM, Michael Dale wrote:
> * The reason for the 100meg limit has to do with php and apache and how
> it stores the uploaded POST in memory so setting the limit higher would
> risk increasing chances of apaches hitting swap if multiple uploads
> happened on a given box.

I've heard others say that -- this may have been true before, but I'm 
pretty sure it's not true any in PHP 5.2 or greater.

I've been doing some tests with large uploads (around 50MB) and I don't 
observe any Apache process getting that large. Instead it writes a 
temporary file. I checked out the source where it handles uploads and 
they seem to be taking care not to slurp the whole thing into memory. 
(lines 1061-1106)

http://svn.php.net/viewvc/php/php-src/trunk/main/rfc1867.c?view=markup

So, there may be other reasons not to upload a very large file, but I 
don't think this is one of them.

-- 
Neil Kandalgaonkar  |) <[email protected]>

_______________________________________________
Wikitech-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikitech-l

Reply via email to