[ejabberd] ejabberd & JIT

Дмитрий Сиваченко mitya at cavia.pp.ru
Thu Feb 12 14:59:39 MSK 2004


On Thu, Feb 12, 2004 at 12:58:26AM +0300, Anastasia Gornostaeva wrote:
> 
> > beam and jabberd processes eat 100% CPU.  top(1) shows the following:
> > 48441 mitya     64   0 12960K  8632K RUN      1:49 67.20% 67.19% beam
> > 48439 mitya      2   0  5404K  3044K poll     0:48 27.64% 27.64% jabberd
> > 
> > I use FreeBSD-STABLE, ejabberd and JIT from CVS.
> > 
> > If I use jabberd from jabber.org instead of ejabberd, all works without any 
> > problems.
> > 
> > Any help would be greatly appreciated.
> 
> Maybe jabberd attemps to send its logs to main jabber server (here - ejabberd),
> please turn on in jabberd all logging stuff to write to file.
> By default JIT writes ones to file, hovewer check its config


That helps.

Thank you!


I have one more question though:

I installed erlang-r9c0_5,1 port (I use FreeBSD-STABLE).
Compiled ejabberd from CVS.

I have the following in my ejabberd.cfg:

% Listened ports:
{listen, [{5222, ejabberd_c2s,     [{access, c2s},
                                    {shaper, c2s_shaper}]},
          {5223, ejabberd_c2s,     [{access, c2s},
                                    {ssl, [{certfile, "./ssl.pem"}]}]},
          {5269, ejabberd_s2s_in,  [{shaper, s2s_shaper}]},
          {8888, ejabberd_service, [{access, local},
                                    {hosts,
                                     ["icq.hst.dom.ru"],
                                     [{password, "secret"}]}]}
         ]}.

When I am trying to connect to ejabberd from tkabber (or from Psi), connection
fails and I see the following in ejabberd log:

=INFO REPORT==== 12-Feb-2004::14:55:30 ===
I(<0.237.0>:ejabberd_listener:92): ({sslsocket,5,<0.3916.0>}) Accepted SSL conne
ction {{194,87,2,103},1152} -> {{194,87,2,103},5223}
=INFO REPORT==== 12-Feb-2004::14:55:35 ===
I(<0.237.0>:ejabberd_listener:103): ({sslsocket,4,<0.241.0>}) Failed SSL handsha
ke: esslaccept

ssl.pem file was generated using the following command:

openssl req -x509 -newkey rs:1024 -keyout ssl.pem -out ssl.pem -days 365 -nodes

The same certificate works just fine with jabber.org's jabberd.

What am I doing wrong?

Thanks!


More information about the ejabberd mailing list