projects
/
rails.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1bd3710
)
Run GC if we hit the memory limit, and only restart if we are still too big.
author
Tom Hughes
<tom@compton.nu>
Sun, 26 Apr 2009 17:01:59 +0000
(17:01 +0000)
committer
Tom Hughes
<tom@compton.nu>
Sun, 26 Apr 2009 17:01:59 +0000
(17:01 +0000)
public/dispatch.fcgi
patch
|
blob
|
history
diff --git
a/public/dispatch.fcgi
b/public/dispatch.fcgi
index af8434a76dead81c4d50ba756f9bac3aeec3b662..d3f9adf20d488d663ae2d60bfc2c46475f3fc3d9 100755
(executable)
--- 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