Skip to content

fatal error: runtime: out of memory #3

Open
@thelebdev

Description

@thelebdev

I'm trying to perform a multipart upload of a file that is 5.5 GB large, with a memory of around 4 GB.
In line 42 of the code, we have to create a slice of bytes (buffer := make([]byte, size). So in my case, I'd be creating a buffer whose size is 5.5 GB, which is breaking the code since it's running out of memory.

Is there a workaround you might suggest to solve this problem?

Update: The solution I'd be ideally looking for is
1- Being able to make my slice of bytes in chunks, and then somehow glue things together with the multipart upload
2- Being able to store my slice of bytes in storage rather than RAM.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions