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.
This commit is contained in:
parent
bf31791f65
commit
bcbbf1944b
1 changed files with 3 additions and 7 deletions
|
@ -29,12 +29,8 @@ protected
|
||||||
|
|
||||||
# Restart if we've hit our memory limit
|
# Restart if we've hit our memory limit
|
||||||
if resident_size > 512
|
if resident_size > 512
|
||||||
run_gc!
|
dispatcher_log :info, "restarting due to memory limit"
|
||||||
|
restart!
|
||||||
if resident_size > 512
|
|
||||||
dispatcher_log :info, "restarting due to memory limit"
|
|
||||||
restart!
|
|
||||||
end
|
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -50,4 +46,4 @@ protected
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
OpenStreetMapFCGIHandler.process! nil, 10
|
OpenStreetMapFCGIHandler.process!
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue