New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Large memory usage when downloading large files #84
Comments
Hm, interesting! How do you download a file with gostatic? |
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. |
Okay, but how is gostatic involved in that? |
You must have missunderstood what I said. The entire server side part of the download is handled by gostatic. The purple line in the graph above is the memory usage of my gostatic docker container, not FTP or other services. This leads me to think that gostatic is handling something weird, like reading the entire file into memory. To reproduce: run Place large zip file in Navigate to localhost:1935/largeFile.zip Observe memory usage. |
I think you are looking for https://github.com/PierreZ/goStatic :-) |
Whoops, my mistake! |
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.
The text was updated successfully, but these errors were encountered: