ejabberd - Comments for "erlang freezes our server" https://www.ejabberd.im/node/1465 en Several comments, I hope https://www.ejabberd.im/node/1465#comment-3625 <p>Several comments, I hope some of them help you.</p> <ul> <li>'-heart' is not required to run ejabberd. Try to remove it from your script. </li><li>Check the disk has enought free space. Check the log files are not of big size (larger than 1 gig, for example). </li><li>ejabberd logs indicate users login/logout. Maybe comparing the last messages of several crashed logs will hint you a direction to look for. </li><li>logs should be stored on /var/log/ejabberd/ejabberd.log and /var/log/ejabberd/sasl.log </li></ul> <p>You want to know what action triggers the server crash. It may be one or several of those ones:</p> <ul> <li>After 20-24 hours of being started, even if nobody logins at all </li><li>After several hundreds of users login and logout </li><li>When the server is overloaded by other processes and ejabberd also wants CPU </li><li>When a specific user logins to his account, regardless of the client he uses </li><li>When a specific client and client options is used to login </li><li>When a user makes a specific action </li></ul> <p>A way to isolate the problem, you should determine if crash is triggered only by time, or by a specific action.<br /> Start ejabberd on a friday night, configure it to listen on strange ports (9991 instead of 5222...) so NOBODY logins on it. Wait 24 hours to see if it crashes.</p> <p>Another test: start ejabberd, let people login. Put the server to compress files, so CPU is overloaded.</p> <p>If the crash is user-triggered, and it's always the same user, you can ask him which client does he use, and what options.</p> <p>Good luck :)</p> Sat, 28 Apr 2007 21:20:02 +0000 mfoss comment 3625 at https://www.ejabberd.im gcc-3.3 https://www.ejabberd.im/node/1465#comment-3617 <p>what for you install gcc-3.3 ? etch using gcc-4.1</p> <p>if you want install ejabberd on etch you can install from apt, apt-get install ejabberd. apt will install all dependencies.</p> Fri, 27 Apr 2007 08:50:38 +0000 kakuz comment 3617 at https://www.ejabberd.im I am looking for Erlang https://www.ejabberd.im/node/1465#comment-3606 <p>I am looking for Erlang logs... don't know where they are ..</p> <p>Do you know ?</p> <p>thanks<br /> luc</p> Tue, 24 Apr 2007 06:18:31 +0000 alook comment 3606 at https://www.ejabberd.im don't know if it help but https://www.ejabberd.im/node/1465#comment-3605 <p>don't know if it help but here is the script with which I lunch ejabberd</p> <p>#!/bin/sh<br /> ERL=erl<br /> NAME=ejabberd<br /> case "$1" in<br /> start)<br /> echo "Starting $NAME."<br /> cd /usr/src/ejabberd/src/<br /> $ERL -pa /var/lib/ejabberd/ebin \<br /> -sname ejabberd \<br /> -s ejabberd \<br /> -ejabberd config \"/etc/ejabberd/ejabberd.cfg\" \<br /> log_path \"/var/log/ejabberd/ejabberd.log\" \<br /> -sasl sasl_error_logger \{file,\"/var/log/ejabberd/sasl.log\"\} \<br /> -mnesia dir \"/var/lib/ejabberd/spool\" \<br /> -heart \<br /> -detached \<br /> ;;<br /> stop)<br /> echo "Stopping $NAME."<br /> echo "rpc:call('ejabberd@`hostname -s`', init, stop, [])." | $ERL -sname ejabberdstop<br /> ;;<br /> status)<br /> echo "Not implemented yet."<br /> ;;<br /> restart|reload)<br /> $0 stop<br /> sleep 3<br /> $0 start<br /> ;;<br /> *)<br /> echo "Usage: $0 {start|stop|status}"<br /> exit 1<br /> esac</p> Tue, 24 Apr 2007 05:53:15 +0000 alook comment 3605 at https://www.ejabberd.im bad luck... the Erlang https://www.ejabberd.im/node/1465#comment-3603 <p>bad luck... the Erlang installation by sources didn't solve the problem...<br /> our server freezed again. Erlang/ejabberd must be the reason but how to debug without any log (server freezed so doesn't write anything else in logs) ?<br /> everything seems ok once we kill "beam" process...</p> <p>any help, solution or just idea of some test to make, is very wellcome!!!</p> <p>thanks<br /> luc</p> Mon, 23 Apr 2007 16:47:05 +0000 alook comment 3603 at https://www.ejabberd.im this problem is maybe https://www.ejabberd.im/node/1465#comment-3519 <p>this problem is maybe solved...<br /> I have uninstall erlang/ejabberd and reinstall erlang via sources...<br /> Now, I have to wait 1 or 2 days to confirm that it is ok or not.</p> <p>luc</p> Thu, 12 Apr 2007 19:24:44 +0000 alook comment 3519 at https://www.ejabberd.im