nexus3-cli icon indicating copy to clipboard operation
nexus3-cli copied to clipboard

OOM Exception during large file upload

Open slackwar opened this issue 5 years ago • 2 comments

During large file(9+Gb) upload nexus3-cli crashes with OOM exception.

slackwar avatar Jun 14 '19 03:06 slackwar

We fixed this in 7ace4b43661a7abb4d392362edb1e7176effe1c1 for downloads. It's the same fix for uploads (should be anyway).

bt-thiago avatar Jun 14 '19 03:06 bt-thiago

Looking at this again, the same fix is not enough for uploads because of this:

https://github.com/thiagofigueiro/nexus3-cli/blob/9360a84796033b35f498be28cf5af64f8480e018/src/nexuscli/api/repository/upload.py#L25

which loads the entire contents of the file to be uploaded in memory

bt-thiago avatar Aug 08 '19 03:08 bt-thiago