goStatic icon indicating copy to clipboard operation
goStatic copied to clipboard

Large memory usage when downloading large files

Open Danielv123 opened this issue 7 years ago • 1 comments

I have a folder on my site called "archive", where I store large zips of data. Navigating to http://site/archive gives me a nice interface by default for downloading files, much like how FTP is handled. Every time a download of a large file is initiated (~800 mb) goStatic consumes large amounts of ram for a while.

Every time a request is initiated shows up as red in the top graph. The bottom graph is container memory usage in a range of 0 - 1 GB.

Image

To reproduce:

run sudo docker run -d -p 1935:8043 -v /srv/goStatic:/srv/http --name goStatic pierrezemb/gostatic

Place large zip file in /srv/goStatic

Navigate to localhost:1935/largeFile.zip

Observe memory usage.

Danielv123 avatar Mar 20 '18 06:03 Danielv123

@Danielv123 Is it still the same?

elico avatar Feb 20 '20 08:02 elico