X-Git-Url: https://git.openstreetmap.org/rails.git/blobdiff_plain/1bd37101347e59473b77d3a71fc4f35090db0dc5..e3d20bd607cee68750046375b63637d37e75cd7c:/public/dispatch.fcgi diff --git a/public/dispatch.fcgi b/public/dispatch.fcgi index af8434a76..d3f9adf20 100755 --- a/public/dispatch.fcgi +++ b/public/dispatch.fcgi @@ -29,8 +29,12 @@ protected # Restart if we've hit our memory limit if resident_size > 512 - dispatcher_log :info, "restarting due to memory limit" - restart! + run_gc! + + if resident_size > 512 + dispatcher_log :info, "restarting due to memory limit" + restart! + end end end