Results 1 to 8 of 8
  1. #1

    http post tmp file

    Hi,

    I'm running Ubuntu Hardy server in some different servers.
    My new Hardy server has a very different behaviour about the files uploaded using forms (http post).

    For old servers, the temporary file been uploaded was stored on hard disk while it was uploading.
    For the new server, the tmp is stored on memory and dumped to the tmp folder on disk when upload has finished.

    Anybody knows how to change this behaviour ?.
    The upload process memory consumption is very high for large files.

    Thank you
    Last edited by moebius; 02-23-2011 at 09:27 AM.

  2. #2
    Join Date
    Sep 2010
    Location
    Behind you...
    Posts
    355
    Change the tmp location. If you use PHP, edit php.ini and search for tmp
    file1.info :: 50GB secure cloudstorage with filemanager

  3. #3
    Hi,

    Thanks for reply.
    The tmp location was already changed and it's ok.
    The file is stored at the tmp folder 'after' upload finishes, and the php script copies the file to its final location without problem.

    The strange behaviour is that temporary file portions are not stored at the tmp folder until upload finishes.

    My other servers (same Ubuntu Hardy O.S.) do not work that way. I can see how temp file is stored byte by byte at temp folder during uploading...

    Thanks

  4. #4
    Join Date
    Sep 2010
    Location
    Behind you...
    Posts
    355
    Maybe because the memory filesystem does not update filesize count? You can also search the filesystem for files called php*
    file1.info :: 50GB secure cloudstorage with filemanager

  5. #5
    That's the way I discovered the diference between old and new server.
    For old one, the php* tmp file exists inside the tmp folder and grows up accordingly, during the upload.
    For new one, the php* tmp file doesn't exist until the upload is finished. And the ram memory used (logged using top) grows up until the upload is finished.

    The php and apache memory directives are properly set.
    Is there some system global 'max memory usage per thread' ?.

    Thx

  6. #6
    Join Date
    Sep 2010
    Location
    Behind you...
    Posts
    355
    Don't think so but you can simply change the tmp location from memory to a presistent (disk) location to solve this.
    file1.info :: 50GB secure cloudstorage with filemanager

  7. #7
    The tmp location is not memory, the tmp location is disk.
    That's the problem.

    php upload_tmp_dir=/tmp
    System TMPDIR=/tmp

    /tmp is located at the disk.

  8. #8
    Ok, I've found the problem and it's solved now.
    Thank you

Similar Threads

  1. File: /tmp/sessionv nobody:nobody (99:99)
    By monitor2000com in forum Hosting Security and Technology
    Replies: 10
    Last Post: 01-18-2011, 04:08 AM
  2. /tmp file
    By Fortunehosting in forum Hosting Security and Technology
    Replies: 5
    Last Post: 06-25-2009, 06:05 PM
  3. file found in tmp
    By Philco in forum Hosting Security and Technology
    Replies: 6
    Last Post: 08-12-2005, 09:23 PM
  4. Strange File In /tmp (What is it?)
    By sonixi in forum Hosting Security and Technology
    Replies: 4
    Last Post: 09-23-2004, 05:19 PM
  5. Strange file in /tmp... I think
    By BeerHandle in forum Hosting Security and Technology
    Replies: 5
    Last Post: 05-21-2004, 06:45 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •