[ejabberd] Status statistics

Peter Viskup skupko.sk at gmail.com
Wed Aug 19 15:23:39 MSD 2009


Hello all,
we had one 'temporary' issue on our ejabberd server. Command ejabberdctl was
generating timeout errors when querying for status statistics for last four
days (see http://stats.jabber.sk/jabber-ejabberd_statuses-week.png).
During the execution of 'ejaberdctl status-list status' or 'ejaberdctl vhost
hostname [status-num|status-list] status' we have got these error messages:
=ERROR REPORT==== 2009-08-14 21:46:15 ===
E(<0.18434.21>:ejabberd_hooks:205) : {timeout,
  {gen_fsm,sync_send_all_state_event,
  [<0.25459.1>,{get_presence},1000]}}
running hook: {ejabberd_ctl_process,["jabber.sk",["status-num","xa"]]}

All of other statistics were reported without ejabberdctl error messages -
only status statistics were affected. Since yesterday afternoon the
ejabberdctl report the status statistics without any intervention from our
side. Does anybody have an opinion what could be the root cause and how to
proceed next time (without restart of ejabberd)? Could it be something with
mensia DB?
Environment: ejabberd 2.0.1-6+lenny1 (GNU/Linux Debian stable), internal
Mnesia data storage 4.4.3.
Regards,
Peter
Here is traced output of ejabberdctl script:
######################################################
jabber:/etc/munin/plugins# /bin/sh -x /usr/sbin/ejabberdctl vhost
jabber.skstatus-num xa
+ ERLANG_NODE=ejabberd
+ '[' -f /etc/default/ejabberd ']'
+ . /etc/default/ejabberd
++ POLL=true
++ SMP=enable
++ ERL_MAX_PORTS=64000
++ PROCESSES=350000
++ ERL_FULLSWEEP_AFTER=4096
+ '[' -r /var/lib/ejabberd/.erlang.cookie ']'
+ HOME=/var/lib/ejabberd
+ export HOME
+ ERL=/usr/bin/erl
+ EBIN_DIR=/usr/lib/ejabberd/ebin
+ '[' 4 -ne 0 ']'
+ case $1 in
+ '[' ejabberd = ejabberd ']'
+ SNAME=-sname
++ date +%s%N
+ SUFFIX=1250510056268541928
+ case $1 in
+ exec /usr/bin/erl -sname ejabberdctl1250510056268541928 -pa
/usr/lib/ejabberd/ebin -s ejabberd_ctl -noinput -extra ejabberd vhost
jabber.sk status-num xa
Usage: ejabberdctl [--node nodename] vhost hostname command [options]

Available commands in this ejabberd node and this vhost:
status-list status list the logged users with status
status-num status number of logged users with status
ban-account username [reason] ban account: kick sessions and change password
registered-users list all registered users
num-active-users days number of users active in the last 'days'
stats onlineusers number of logged users
stats registeredusers number of registered users

Examples:
ejabberdctl vhost jabber.sk registered-users
######################################################
And the output of manual execution of ERL:
jabber:~# su ejabberd -c "exec /usr/bin/erl -sname
ejabberdctl1250510514609747484 -pa /usr/lib/ejabberd/ebin -s ejabberd_ctl
-noinput -extra ejabberd vhost jabber.sk status-num xa"

Usage: ejabberdctl [--node nodename] vhost hostname command [options]

Available commands in this ejabberd node and this vhost:
status-list status list the logged users with status
status-num status number of logged users with status
ban-account username [reason] ban account: kick sessions and change password
registered-users list all registered users
num-active-users days number of users active in the last 'days'
stats onlineusers number of logged users
stats registeredusers number of registered users

Examples:
ejabberdctl vhost jabber.sk registered-users

=ERROR REPORT==== 17-Aug-2009::14:05:35 ===
E(<4196.19831.26>:ejabberd_hooks:205) : {timeout,
{gen_fsm,sync_send_all_state_event,
[<4196.25459.1>,
{get_presence},
1000]}}
running hook: {ejabberd_ctl_process,["jabber.sk",["status-num","xa"]]}
at node ejabberd at localhost **
######################################################
The ejabberd node was started and running well.
jabber:~# ejabberdctl status
Node ejabberd at localhost is started. Status: started
ejabberd is running
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.jabber.ru/pipermail/ejabberd/attachments/20090819/75d2b643/attachment.html>


More information about the ejabberd mailing list