aws

http://status.aws.amazon.com/ https://www.expeditedssl.com/aws-in-plain-english
kenny 2020-07-08T16:08:02.325400Z

When using aws-api, does :PutObject end up bringing :Body fully into memory?

ghadi 2020-07-08T16:08:14.325600Z

yes

ghadi 2020-07-08T16:08:19.325900Z

currently

kenny 2020-07-08T16:08:37.326300Z

Hmm, yeah I thought so. Getting OOMs. Any workarounds?

ghadi 2020-07-08T16:09:01.326500Z

multipart uploads

1
ghadi 2020-07-08T16:10:04.327100Z

are you uploading from a File source?

kenny 2020-07-08T16:10:25.327600Z

Is there an existing example for doing that? If not, will figure it out.

kenny 2020-07-08T16:10:28.327800Z

Yes

ghadi 2020-07-08T16:10:43.328300Z

there is not an existing example

1
ghadi 2020-07-08T16:11:02.329Z

there's an API to start an upload, then to upload pieces, then to complete the upload

ghadi 2020-07-08T16:11:20.329500Z

pieces parts can be uploaded concurrently

1
kenny 2020-07-08T16:12:11.330400Z

Somewhat amusingly, our system uses the -XX:+HeapDumpOnOutOfMemoryError jvm flag. When the app reboots, it will upload the heap dump to s3. The heap dumps are so large that they oom the app again while uploading 😆

😂 2
ghadi 2020-07-08T16:13:17.330700Z

heh, whoops

Aron 2020-07-08T17:58:34.331300Z

same feature implemented twice? 🙂

kenny 2020-07-08T23:09:00.331400Z

For those interested in an example for a multipart upload...

👍 3