[ejabberd] Beam 100% CPU usage

Jeffrey Rogiers jeffrey.rogiers at gmail.com
Tue Feb 9 17:40:54 MSK 2010


Try running etop, this helped me find a CPU Spin of my own.

Q: http://lists.jabber.ru/pipermail/ejabberd/2010-January/005725.html

A: http://lists.jabber.ru/pipermail/ejabberd/2010-January/005726.html

My end result looked a little different but given the two examples it
should help you get started.

Also keep in mind this is apart of my init script. I attached an ARG
to run this etop command.

etop ()
{
    echo "--------------------------------------------------------------------"
    echo ""
    echo "IMPORTANT: we will attempt to attach a running ejabberd node"
    echo "If an ERROR is printed, it means the connection was not succesful."
    echo ""
    echo "To detach this shell from ejabberd, press:"
    echo "  control+c, control+c"
    echo ""
    echo "--------------------------------------------------------------------"
    echo ""
    /sbin/runuser -s /bin/bash - ejabberd -c \
    "$ERL \
      $NAME ${NODE}etop \
      -hidden \
      -s etop \
      -s erlang halt \
      -output text \
      -tracing off \
      -node $ERLANG_NODE"
}

-------


Thanks,
Jeffrey Rogiers



On Tue, Feb 9, 2010 at 7:52 AM, Emmanuel Lacour <elacour at easter-eggs.com> wrote:
>
> Feedback on our problem, that's a problem with mod vcard ldap, when we
> stopped using it and now CPU is ok.
>
> _______________________________________________
> ejabberd mailing list
> ejabberd at jabber.ru
> http://lists.jabber.ru/mailman/listinfo/ejabberd
>


More information about the ejabberd mailing list