Hello,
<div><br></div><div>I am using file uploads with nginx 1.0.12, php5-fpm and php 5.3.10.</div><div><br></div><div>Currently, big file uploads (~1300 MB) do take about 30 seconds to process after the file is being uploaded, and the CPU load spikes. Is there a way to prevent that?</div>
<div><br></div><div>I am using a very simple script (just a var_dump($_FILES), nothing more, just debugging) and the config looks like the following:</div><div><div><span class="Apple-tab-span" style="white-space:pre"> </span>location ~ \.php$ {</div>
<div><span class="Apple-tab-span" style="white-space:pre"> </span>fastcgi_pass <a href="http://127.0.0.1:9000">127.0.0.1:9000</a>;</div><div><span class="Apple-tab-span" style="white-space:pre"> </span>fastcgi_pass_request_body off;</div>
<div><span class="Apple-tab-span" style="white-space:pre"> </span>client_body_in_file_only clean;</div><div><span class="Apple-tab-span" style="white-space:pre"> </span>fastcgi_param REQUEST_BODY_FILE $request_body_file; </div>
<div><span class="Apple-tab-span" style="white-space:pre"> </span>fastcgi_send_timeout 120;</div><div><span class="Apple-tab-span" style="white-space:pre"> </span>fastcgi_read_timeout 120;</div><div><span class="Apple-tab-span" style="white-space:pre"> </span>fastcgi_index index.php;</div>
<div><span class="Apple-tab-span" style="white-space:pre"> </span>include fastcgi_params;</div><div><span class="Apple-tab-span" style="white-space:pre"> </span>}</div></div><div><br></div><div>Hope that someone can shed light into this…</div>
<div><br></div><div>Thank you.</div><div><br></div><div>Adrian</div>