Quantcast
Channel: All Forums
Viewing all articles
Browse latest Browse all 27852

PHP-CGI.exe memory usage file upload

$
0
0
Hi I noticed that a file upload function uses a lot of memory on the server. I tested with a 200 MB file and the spawning php.cgi.exe used severel times the 200MB in memory at the point when it started to copy the file from the temp folder to the end destination. It seems that the hole uploaded file gets stored inside th RAM and then written to the HDD. Not sure what happens during the copy process since then the php-chi process uses around 3-4 times the memory of the file size. I tried to limit the memory usage setting memory_limit in php.ini. But that actually seems only the crash the php_CGI.exe since it can't get enough memory to finish the transaction. Is there any way to set things up so that file uploads do not use that much RAM?
Something like a streeming Transfer to the HDD either from start or after reaching a specified amount of RAM.

Viewing all articles
Browse latest Browse all 27852

Trending Articles