Unhandled exception in driver loop - (Errno::ENOMEM)

107 views
Skip to first unread message

AssimovT

unread,
Jun 17, 2008, 11:25:09 PM6/17/08
to god.rb
Hello!

Did anyone see this kind of error? The first is about unhandled
exception and another is usage of "ps".

I have it on Solaris running, so could anyone tell if there is a way
to correct these errors?

Thanks,

Tair.


---------------
F [2008-06-18 03:17:47] FATAL: Unhandled exception in driver loop -
(Errno::ENOMEM): Not enough space - ps -o rss= -p 2222
/opt/local/lib/ruby/gems/1.8/gems/god-0.7.7/bin/../lib/god/system/
portable_poller.rb:25:in ``'
/opt/local/lib/ruby/gems/1.8/gems/god-0.7.7/bin/../lib/god/system/
portable_poller.rb:25:in `ps_int'
/opt/local/lib/ruby/gems/1.8/gems/god-0.7.7/bin/../lib/god/system/
portable_poller.rb:9:in `memory'
/opt/local/lib/ruby/gems/1.8/gems/god-0.7.7/bin/../lib/god/system/
process.rb:17:in `memory'
/opt/local/lib/ruby/gems/1.8/gems/god-0.7.7/bin/../lib/god/conditions/
memory_usage.rb:67:in `test'
/opt/local/lib/ruby/gems/1.8/gems/god-0.7.7/bin/../lib/god/task.rb:
317:in `handle_poll'
/opt/local/lib/ruby/gems/1.8/gems/god-0.7.7/bin/../lib/god/driver.rb:
68:in `handle_event'
/opt/local/lib/ruby/gems/1.8/gems/god-0.7.7/bin/../lib/god/driver.rb:
41:in `initialize'
/opt/local/lib/ruby/gems/1.8/gems/god-0.7.7/bin/../lib/god/driver.rb:
36:in `loop'
/opt/local/lib/ruby/gems/1.8/gems/god-0.7.7/bin/../lib/god/driver.rb:
36:in `initialize'
/opt/local/lib/ruby/gems/1.8/gems/god-0.7.7/bin/../lib/god/driver.rb:
35:in `new'
/opt/local/lib/ruby/gems/1.8/gems/god-0.7.7/bin/../lib/god/driver.rb:
35:in `initialize'
/opt/local/lib/ruby/gems/1.8/gems/god-0.7.7/bin/../lib/god/task.rb:
28:in `new'
/opt/local/lib/ruby/gems/1.8/gems/god-0.7.7/bin/../lib/god/task.rb:
28:in `initialize'
/opt/local/lib/ruby/gems/1.8/gems/god-0.7.7/bin/../lib/god/watch.rb:
19:in `initialize'
/opt/local/lib/ruby/gems/1.8/gems/god-0.7.7/bin/../lib/god.rb:241:in
`new'
/opt/local/lib/ruby/gems/1.8/gems/god-0.7.7/bin/../lib/god.rb:241:in
`task'
/opt/local/lib/ruby/gems/1.8/gems/god-0.7.7/bin/../lib/god.rb:226:in
`watch'
/home/fraced/web/shared/config/config.god:9
/home/fraced/web/shared/config/config.god:8:in `each'
/home/fraced/web/shared/config/config.god:8
/opt/local/lib/ruby/gems/1.8/gems/god-0.7.7/bin/../lib/god/cli/run.rb:
161:in `load'
/opt/local/lib/ruby/gems/1.8/gems/god-0.7.7/bin/../lib/god/cli/run.rb:
161:in `load_god_file'
/opt/local/lib/ruby/gems/1.8/gems/god-0.7.7/bin/../lib/god/cli/run.rb:
154:in `load_config'
/opt/local/lib/ruby/gems/1.8/gems/god-0.7.7/bin/../lib/god/cli/run.rb:
65:in `default_run'
/opt/local/lib/ruby/gems/1.8/gems/god-0.7.7/bin/../lib/god/cli/run.rb:
76:in `run_in_front'
/opt/local/lib/ruby/gems/1.8/gems/god-0.7.7/bin/../lib/god/cli/run.rb:
19:in `dispatch'
/opt/local/lib/ruby/gems/1.8/gems/god-0.7.7/bin/../lib/god/cli/run.rb:
8:in `initialize'
/opt/local/lib/ruby/gems/1.8/gems/god-0.7.7/bin/god:117:in `new'
/opt/local/lib/ruby/gems/1.8/gems/god-0.7.7/bin/god:117
/opt/local/bin/god:19:in `load'
/opt/local/bin/god:19
I [2008-06-18 03:17:47] INFO: gravatar2-mongrel-9002 [ok] memory
within bounds [35668kb] (MemoryUsage)
ps: unknown output format: -o %cpu
usage: ps [ -aAdefHlcjLPyZ ] [ -o format ] [ -t termlist ]
[ -u userlist ] [ -U userlist ] [ -G grouplist ]
[ -p proclist ] [ -g pgrplist ] [ -s sidlist ] [ -z zonelist ]
[-h lgrplist]
'format' is one or more of:
user ruser group rgroup uid ruid gid rgid pid ppid pgid sid
taskid ctid
pri opri pcpu pmem vsz rss osz nice class time etime stime
zone zoneid
f s c lwp nlwp psr tty addr wchan fname comm args projid
project pset lgrp
I [2008-06-18 03:17:47] INFO: gravatar2-mongrel-9004 [ok] cpu within
bounds [0.0%] (CpuUsage)
ps: unknown output format: -o %cpu
usage: ps [ -aAdefHlcjLPyZ ] [ -o format ] [ -t termlist ]
[ -u userlist ] [ -U userlist ] [ -G grouplist ]
[ -p proclist ] [ -g pgrplist ] [ -s sidlist ] [ -z zonelist ]
[-h lgrplist]
'format' is one or more of:
user ruser group rgroup uid ruid gid rgid pid ppid pgid sid
taskid ctid
pri opri pcpu pmem vsz rss osz nice class time etime stime
zone zoneid
f s c lwp nlwp psr tty addr wchan fname comm args projid
project pset lgrp
I [2008-06-18 03:17:47] INFO: gravatar2-mongrel-9002 [ok] cpu within
bounds [0.0%] (CpuUsage)
I [2008-06-18 03:17:47] INFO: gravatar2-mongrel-9001 moved 'up' to
'up'
I [2008-06-18 03:17:47] INFO: gravatar2-mongrel-9001 [ok] process is
running (ProcessRunning)
I [2008-06-18 03:17:47] INFO: gravatar2-mongrel-9003 moved 'up' to
'up'
I [2008-06-18 03:17:47] INFO: gravatar2-mongrel-9003 [ok] process is
running (ProcessRunning)
I [2008-06-18 03:17:47] INFO: gravatar2-mongrel-9001 [ok] memory
within bounds [35668kb] (MemoryUsage)
ps: unknown output format: -o %cpu
usage: ps [ -aAdefHlcjLPyZ ] [ -o format ] [ -t termlist ]
[ -u userlist ] [ -U userlist ] [ -G grouplist ]
[ -p proclist ] [ -g pgrplist ] [ -s sidlist ] [ -z zonelist ]
[-h lgrplist]
'format' is one or more of:
user ruser group rgroup uid ruid gid rgid pid ppid pgid sid
taskid ctid
pri opri pcpu pmem vsz rss osz nice class time etime stime
zone zoneid
f s c lwp nlwp psr tty addr wchan fname comm args projid
project pset lgrp
I [2008-06-18 03:17:47] INFO: gravatar2-mongrel-9003 [ok] memory
within bounds [35668kb] (MemoryUsage)
ps: unknown output format: -o %cpu
usage: ps [ -aAdefHlcjLPyZ ] [ -o format ] [ -t termlist ]
[ -u userlist ] [ -U userlist ] [ -G grouplist ]
[ -p proclist ] [ -g pgrplist ] [ -s sidlist ] [ -z zonelist ]
[-h lgrplist]
'format' is one or more of:
user ruser group rgroup uid ruid gid rgid pid ppid pgid sid
taskid ctid
pri opri pcpu pmem vsz rss osz nice class time etime stime
zone zoneid
f s c lwp nlwp psr tty addr wchan fname comm args projid
project pset lgrp
I [2008-06-18 03:17:47] INFO: gravatar2-mongrel-9001 [ok] cpu within
bounds [0.0%] (CpuUsage)
I [2008-06-18 03:17:47] INFO: gravatar2-mongrel-9003 [ok] cpu within
bounds [0.0%] (CpuUsage)
I [2008-06-18 03:17:52] INFO: gravatar2-mongrel-9001 [ok] process is
running (ProcessRunning)
I [2008-06-18 03:17:52] INFO: gravatar2-mongrel-9003 [ok] process is
running (ProcessRunning)
.
.
.

LeonB

unread,
Jun 22, 2008, 5:00:10 PM6/22/08
to god.rb
I think the only way is to patch god. I've tried rescueing exceptions
in my configuration file, but that didn't work.
Maybe Tom's willing to build in some more advanced exception handling.
Reply all
Reply to author
Forward
0 new messages