Giter Club home page Giter Club logo

Comments (6)

jerryhalstead avatar jerryhalstead commented on July 2, 2024

Running on a device with more memory I'm able to upload and capture the memory footprint. The zipped file is around 130MB. After calling putObjectWithFile the memory shoots up, roughly 3x the file size.

Stepping through what code I can:

  • sendSynchronousRequest in setObjectWithMethod causes memory to shoot up to ~150MB
  • request.HTTPBody = data; copies it and memory use is now ~280MB.
  • letting it run after that, memory goes up to about ~500MB

It seems that uploading should use some kind of stream so that the whole NSData doesn't have to be loaded into memory. I found this, no idea if it is useful: http://stackoverflow.com/a/18352296

screen shot 2015-02-12 at 7 49 26 am

from afamazons3manager.

mattt avatar mattt commented on July 2, 2024

Use postObjectWithFile:... instead, which uses an HTTP body stream.

from afamazons3manager.

jerryhalstead avatar jerryhalstead commented on July 2, 2024

Hi Matt,
Sorry, should have mentioned that I've tried that. It transfers 32k, stalls and fails with a Error Domain=NSURLErrorDomain Code=-1001 "The request timed out."

Doesn't matter the file size.

from afamazons3manager.

fitch avatar fitch commented on July 2, 2024

postObjectWithFile:.. seems to stall and fail with error code -1001 for me as well.

from afamazons3manager.

adammordas avatar adammordas commented on July 2, 2024

I'm having the same problem too.

from afamazons3manager.

dzana avatar dzana commented on July 2, 2024

I'm having the same problem.
I am using only AFNetworking and I created POST exactly the same as in this link:
http://stackoverflow.com/questions/20551548/timeout-posting-to-s3-from-ios-using-signed-urls
Upload fails: Error Domain=NSURLErrorDomain Code=-1001

We never noticed similar problem from windows and browser apps - only mac fails.

Also found few similar problem on the web and stackoverflow- mulitpart fails with timeout when uploading large files.
Unfortunately I cannot find solution how to fix this.

from afamazons3manager.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.