Pablo Caro Revuelta wrote:
> Memmon doesn't work for me.
> I am using user and password in "unix_http_server" and "inet_http_server"
> sections and i have memmon configuration in a include file like this:
>
> {{{
> [eventlistener:memmon]
> command=bin/memmon -a 70MB
> events=TICK_60
> }}}
>
> I can see memmon process running but it doesn't restat any process when
> memory
> grows over the limits.
>
> I have seen two errors (this doesn't allways happens) in logs.
>
> 1) I have seen (this doesn't allways happens) an exception in memom standard
> error indicating an error in RPC calling to supervisor.
> I can see in "childutils.py" it uses enviroment variables but if I put a
> print
> statement, that variables values are empty.
>
> {{{
>
> def getRPCTransport(env):
> u = env.get('SUPERVISOR_USERNAME', '')
> p = env.get('SUPERVISOR_PASSWORD', '')
> return SupervisorTransport(u, p, env['SUPERVISOR_SERVER_URL'])
>
> }}}
> When this error happens I can see such errors in memmon stderr as READY in
> stdout
>
> Must I set that variables?
Unfortunately, yes, right now, within the program section that starts memmon:
[eventlistener:memmon]
command=bin/memmon -a 70MB
events=TICK_60
environment=SUPERVISOR_USERNAME=foo,SUPERVISOR_PASSWORD=bar
This should have been documented, but it wasn't.
> 2) I found "ERRO pool memmon event buffer overflowed, discarding event 3"
> When this error happens I can see a only line with READY in stdout
This is likely because all the memmon processes have crashed or are hung up.
This may be due toe the xmlrpc error you were getting as a result of not having
the username and password set within the child.
- C
_______________________________________________
Supervisor-users mailing list
[email protected]
http://lists.supervisord.org/mailman/listinfo/supervisor-users