]> git.openstreetmap.org Git - rails.git/blobdiff - public/dispatch.fcgi
Make CTs full width in slim mode
[rails.git] / public / dispatch.fcgi
index d3f9adf20d488d663ae2d60bfc2c46475f3fc3d9..3a13f230c24c709bc51a7f8fbf0dbaa9a4a5fcf8 100755 (executable)
@@ -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
 
@@ -48,7 +44,6 @@ protected
     # Return resident size in megabytes
     return fields[1].to_i / 256
   end
-
 end
 
-OpenStreetMapFCGIHandler.process! nil, 10
+OpenStreetMapFCGIHandler.process!