From bcbbf1944b55eb213a43d7d501533e65182c8f6a Mon Sep 17 00:00:00 2001 From: Tom Hughes Date: Tue, 28 Apr 2009 14:07:51 +0000 Subject: [PATCH] Don't bother running GC as it doesn't seem to get as much memory back anyway plus the run_gc! method in the fastcgi dispatcher is a disaster as it disables GC completely except for when it is forced by making a call to the run_gc! method. --- public/dispatch.fcgi | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/public/dispatch.fcgi b/public/dispatch.fcgi index f21c953a6..3a13f230c 100755 --- a/public/dispatch.fcgi +++ b/public/dispatch.fcgi @@ -29,12 +29,8 @@ protected # Restart if we've hit our memory limit if resident_size > 512 - run_gc! - - if resident_size > 512 - dispatcher_log :info, "restarting due to memory limit" - restart! - end + dispatcher_log :info, "restarting due to memory limit" + restart! end end @@ -50,4 +46,4 @@ protected end end -OpenStreetMapFCGIHandler.process! nil, 10 +OpenStreetMapFCGIHandler.process! -- 2.43.2