hi there,
My ubuntu runs on 1G ram, where chrome always get fronzen or crashed because of flash.
So I want to watch my chrome with god and limit the cpu and memory it occupies.
Normally, I can run a chrome by typing "google-chrome" in terminal, so I write following god script:
God.watch do |w|
w.start = "/opt/google/chrome/chrome"
w.keepalive :cpu_max => 80.percent, :memory_max => 500.megabytes
end
When I start the script above by "god -c chrome.god -D", it just keep opening new chrome.
Doesn't it automatically figure out there is already a chrome running?
What can I do to realize monitoring chrome?