PierreZ / goStatic

A really small static web server for Docker
GNU General Public License v2.0
391 stars 77 forks source link

Large memory usage when downloading large files #12

Open Danielv123 opened 6 years ago

Danielv123 commented 6 years ago

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.

elico commented 4 years ago

@Danielv123 Is it still the same?