• Sign In
  • Join

IIS
  • Home
  • Downloads
  • Learn
  • Reference
  • Solutions
    • Technologies
    • .NET Framework
    • ASP.NET
    • PHP
    • Media
    • Windows Server
    • SQL Server
    • Web App Gallery
    • Windows Azure
    • Tools
    • Visual Studio
    • Expression Studio
    • Windows Internet Explorer
    • WebMatrix
    • Web Platform Installer
    • Get Help:
    • Ask a Question in our Forums
    • More Help Resources
  • Blogs
  • Forums

Home IIS.NET Forums PHP Community PHP-CGI.exe memory usage file upload PHP-CGI.exe memory usage file upload

Complete Thread
    • Reply
    Deatheye

    Deatheye

    10 Posts

    PHP-CGI.exe memory usage file upload

    Nov 02, 2012 10:55 PM|LINK

    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.
    • Edited by Deatheye on Nov 03, 2012 12:20 AM
  • This site is managed for Microsoft by Neudesic, LLC. | © 2013 Microsoft. All rights reserved.
  • Privacy Statement
  • Terms of Use
  • Contact Us
  • Advertise With Us
  • Follow us on:
  • Twitter
  • Facebook
  • Feedback on IIS
  • Powered by IIS8
Microsoft