# 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
# Return resident size in megabytes
return fields[1].to_i / 256
end
-
end
-OpenStreetMapFCGIHandler.process! nil, 10
+OpenStreetMapFCGIHandler.process!