-
Notifications
You must be signed in to change notification settings - Fork 20
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
memfix.rb kills download process #348
Comments
Hi @padmassun. I thought you submitted a fix for this off your branch? Did I miss something? Nick |
Hello @nllong , Re #347
I thought the downloads were not working because the expire was not set to max, But, it seems that it was not the issue. After digging a bit deeper, I found that the passenger was the main culprit, which is killing process which are responsible for sending the download file. |
Hello, It seems the main culprit is the memfix.rb from https://github.com/NREL/OpenStudio-server/blob/develop/docker/server/memfix.rb#L3 The PID killed by the memfix.rb corresponds to the Passenger's message. Please see the log output below. From
From
|
The memfix.rb kills processes if any of the ruby process in the web container exceeds the given limit of The rail's send_data uses memory greater than the specified limit of As the process is killed, this triggers phusion passenger, which identifies that the PID does not exist and logs it in the error.log file, So I have commented out the memfix.rb for now, which is a protection against Out of Memory (OOM) issue. I am looking into methods to reduce memory consumption while transferring/streaming larger files. |
well done with the investigation. @henryHorsey FYI |
For now I have commented out the part of the code (72e8098) which calls the memfix.rb as a temporary workaround. So this issue is atleast solved on the nrcan's branch. |
removing this for P+W in this branch |
Please see #348 (comment) for more details.
The file is being sent using Rail's send_file https://github.com/NREL/OpenStudio-server/blob/pad_nrcan_2.4.3/server/app/controllers/analyses_controller.rb#L732
nginx.conf file: https://github.com/NREL/OpenStudio-server/blob/pad_nrcan_2.4.3/docker/server/nginx.conf
The download file is about 930 MB, and it is being killed after approximately 10 to 12 minutes.
From nginx error log from
var/log/nginx/error.log
nginx access log from
/var/log/nginx/access.log
The text was updated successfully, but these errors were encountered: